News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Video files not playing

Started by alx2k, February 22, 2011, 09:51:28 AM

Previous topic - Next topic

alx2k

Hi all,

I was using an old snapshot (dated last summer) on my system and everything was ok.

Last weekend I decided to update to a newer one, I have tried several ones (23748, 23739, 23579 and 23568) and I have the same problem in all of them, when getting to the Linuxmce setup it doesn't appear Sarah's videos. I finish the install and if I try to play any video file, it flashes a blank screen and returns to the UI.

On the AVWizard I have tried 1080p and 720p via HDMI (blank screen appears at setup and when I press 3, video shows up), HDMI sound.

My video card is a GT220.

Any ideas what I am doing wrong?

BTW pluto-xine-* seems to be installed correctly, but to be sure, I forced a reinstall, but nothing changes.

Marie.O

Please check if you have any coredumps in /home/coredump/<device-id> for Orbiter or Xine_Player
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

alx2k

I've checked and I found that /home/coredump has just one folder, named "1". Also, that "1" folder is empty.

Thanks for your help.

alx2k

#3
I checked some logs and info on the terminal window and it seems that HDMI audio is not working.

Ran installation again with VGA & analog and it started correctly, audio and video worked, the I followed the steps on http://webcache.googleusercontent.com/search?q=cache:iLUwGbZAS9wJ:wiki.linuxmce.org/index.php/NVidia_GT220_HDMI_sound+linuxmce+gt220&cd=1&hl=es&ct=clnk&gl=es&source=www.google.es to try to use the audio on the HDMI port on the GT220 (I use google's cache because that wiki page was modified yesterday), but I had the same error as if I was installing directly with the HDMI port

I belive that since my Motherboard has a snd-hda-intel soundcard integrated, even if I do the patching in that wiki page, I don't get sound (The wiki warned about some unexpected results).

Now the wiki says that GT220 audio is supported on ALSA 1.0.22 and giving a passthought in Xine. http://wiki.linuxmce.org/index.php/NVidia_GT220_HDMI_sound

My alsamixer says 1.0.18, so I guess I must update. do you know an easy and effective way to do it? or should I go to source?

Thank you in advance.

totallymaxed

Quote from: alx2k on February 23, 2011, 09:09:47 AM
I checked some logs and info on the terminal window and it seems that HDMI audio is not working.

Ran installation again with VGA & analog and it started correctly, audio and video worked, the I followed the steps on http://webcache.googleusercontent.com/search?q=cache:iLUwGbZAS9wJ:wiki.linuxmce.org/index.php/NVidia_GT220_HDMI_sound+linuxmce+gt220&cd=1&hl=es&ct=clnk&gl=es&source=www.google.es to try to use the audio on the HDMI port on the GT220 (I use google's cache because that wiki page was modified yesterday), but I had the same error as if I was installing directly with the HDMI port

I belive that since my Motherboard has a snd-hda-intel soundcard integrated, even if I do the patching in that wiki page, I don't get sound (The wiki warned about some unexpected results).

Now the wiki says that GT220 audio is supported on ALSA 1.0.22 and giving a passthought in Xine. http://wiki.linuxmce.org/index.php/NVidia_GT220_HDMI_sound

My alsamixer says 1.0.18, so I guess I must update. do you know an easy and effective way to do it? or should I go to source?

Thank you in advance.

Hi alx2k,

Yeah that wiki page was created yesterday by my colleague to help map out some of the 'twists & turns' of getting the GT220 to work...as you can see its not straightforward at all!


Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses [url="http://forum.linuxmce.org/index.php?topic=14026.0"]http://forum.linuxmce.org/index.php?topic=14026.0[/url]

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: [url="http://wp.me/P4KgIc-5P"]http://wp.me/P4KgIc-5P[/url]

Facebook: [url="https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465"]https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465[/url]

[url="http://www.dianemo.co.uk"]http://www.dianemo.co.uk[/url]

pigdog


alx2k

Thank you both!

I finally got it working, I updated alsa to 1.0.23 and also I followed the old gt220 wiki and now it works!

totallymaxed

Quote from: alx2k on February 23, 2011, 10:01:08 PM
Thank you both!

I finally got it working, I updated alsa to 1.0.23 and also I followed the old gt220 wiki and now it works!


As was pointed out on the new Wiki page referenced above by Uplink your mileage will vary on the GT220 (and above) dependent on what motherboard your using. Some will work under 10.10 right out of the box....and other will not and will need considerable effort currently.

Ion based machines by the way do not suffer this problem its only related to nVidia cards with on-card audio processors.

All the best


Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses [url="http://forum.linuxmce.org/index.php?topic=14026.0"]http://forum.linuxmce.org/index.php?topic=14026.0[/url]

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: [url="http://wp.me/P4KgIc-5P"]http://wp.me/P4KgIc-5P[/url]

Facebook: [url="https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465"]https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465[/url]

[url="http://www.dianemo.co.uk"]http://www.dianemo.co.uk[/url]

alx2k

Continuing with this thread, I noticed that, everytime I power on or reboot the system the file /etc/asound.conf gets modified. It deletes the information I added following the old GT 220 wiki, being more specific, it deletes:
pcm.!hdmi {
       @args [ AES0 AES1 AES2 AES3 ]
       @args.AES0 {
               type integer
               # consumer, not-copyright, emphasis-none, mode=0
               default 0x04
       }
       @args.AES1 {
               type integer
               # original, PCM coder
               default 0x82
       }
       @args.AES2 {
               type integer
               # source and channel
               default 0x00
       }
       @args.AES3 {
               type integer
               # fs=48000Hz, clock accuracy=1000ppm
               default 0x02
       }
       type hooks
       slave.pcm {
               type hw
               card 1
               device 7
       }
       hooks.0 {
               type ctl_elems
               hook_args [
               {
                       name "IEC958 Playback Default"
                       lock true
                       preserve true
                       value [ $AES0 $AES1 $AES2 $AES3 ]
               }
               {
                       name "IEC958 Playback Switch"
                       lock true
                       preserve true
                       value true
               }
               ]
       }
}


Is there a configuration script I could modify so it doesn't change this?
I made a copy of the correct file on /etc/asound.conf.ok, so maybe just adding a "cp /etc/asound.conf.ok /etc/asound.conf" to the servers orbiter bootup script would be enough.
Can someone tell me what script file I would need to put my hands on?

alx2k

Ok, I reply to myself, and maybe someone having my same problem.

I added a line in /etc/rc5.d/S99linuxmce, just before the "exit 0" at the end of the file.

line is "cp /etc/asound.conf.ok /etc/asound.conf"

Note: if you try to play a video or song with the wrong configuration it won't play that media or other you try later even if you add the lines. You will have to restart, change the lines in asound.conf and then try to play whatever.