Author Topic: Video files not playing  (Read 6238 times)

alx2k

  • Regular Poster
  • **
  • Posts: 45
    • View Profile
Video files not playing
« on: February 22, 2011, 09:51:28 am »
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.
« Last Edit: February 28, 2011, 08:43:03 pm by alx2k »

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Video files not playing
« Reply #1 on: February 22, 2011, 10:50:50 am »
Please check if you have any coredumps in /home/coredump/<device-id> for Orbiter or Xine_Player

alx2k

  • Regular Poster
  • **
  • Posts: 45
    • View Profile
Re: Video files not playing
« Reply #2 on: February 22, 2011, 12:41:54 pm »
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

  • Regular Poster
  • **
  • Posts: 45
    • View Profile
Re: [kinda solved] Video files not playing
« Reply #3 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.
« Last Edit: February 23, 2011, 09:56:27 am by alx2k »

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: [kinda solved] Video files not playing
« Reply #4 on: February 23, 2011, 01:49:04 pm »
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 http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

pigdog

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1105
    • View Profile
Re: [kinda solved] Video files not playing
« Reply #5 on: February 23, 2011, 01:53:29 pm »
Hi,

See this link - got it working on my MD with HDMI.

http://forum.linuxmce.org/index.php?topic=11415.0

Cheers.

alx2k

  • Regular Poster
  • **
  • Posts: 45
    • View Profile
Re: [kinda solved] Video files not playing
« Reply #6 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!

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: [kinda solved] Video files not playing
« Reply #7 on: February 24, 2011, 12:51:21 am »
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 http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

alx2k

  • Regular Poster
  • **
  • Posts: 45
    • View Profile
Re: [solved] Video files not playing
« Reply #8 on: February 28, 2011, 12:53:23 pm »
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:
Code: [Select]
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

  • Regular Poster
  • **
  • Posts: 45
    • View Profile
Re: [almost solved] Video files not playing
« Reply #9 on: February 28, 2011, 08:42:50 pm »
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.