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

Hardware acceleration, i.e. VDPAU under 0810 with Xine or mplayer

Started by nite_man, April 21, 2010, 11:06:06 PM

Previous topic - Next topic

nite_man

Hi,

Does somebody use successful VDPAU hardware acceleration under 0810? I set it in the admin page of media director. But when I play MKV file no video or audio are available. Here is a peach of Xine log:
05      04/21/10 21:40:42.313           Xine_Player::CMD_Play_Media() called for id 1003 filename: /home/public/data/videos/Windows Share-Volume_1 [39]/Heat.1995.BD.Rip.720p.h264.Rus.Eng.mkv () with corresponding stream 0x8be7058. <0xb6db3b90>                                                                                                                            
05      04/21/10 21:40:42.344           Opening media without chapters/title position: 'file:///home/public/data/videos/Windows Share-Volume_1 [39]/Heat.1995.BD.Rip.720p.h264.Rus.Eng.mkv'  <0xb6db3b90>                                                                                                                                                                      
05      04/21/10 21:40:42.587           Xine_Stream::changePlaybackSpeed no running seekers found <0xb6db3b90>
05      04/21/10 21:40:42.587           Xine engine set new zoom level to X:100, Y:100 <0xb6db3b90>
05      04/21/10 21:40:42.595           Read media A/V information: []/[] => []/[] <0xb1046b90>
05      04/21/10 21:40:42.595           Xine_Player::EVENT_Playback_Started(streamID=1003) <= AV info <0xb1046b90>
05      04/21/10 21:40:42.597           Read media A/V information: []/[] => []/[] <0xb1046b90>
05      04/21/10 21:40:42.597           Xine_Player::EVENT_Playback_Started(streamID=1003) <= AV info <0xb1046b90>
05      04/21/10 21:40:42.598           Read media A/V information: []/[] => []/[] <0xb1046b90>
05      04/21/10 21:40:42.598           Xine_Player::EVENT_Playback_Started(streamID=1003) <= AV info <0xb1046b90>
05      04/21/10 21:40:52.588           [ID: 1003]  CHAPTER:0 POS:0 TITLE:0 SUBTITLE:-1 AUDIO:-1 TOTAL:0 (seek 0) t.c. ctr 0 freq 1, <0xb02ffb90>
05      04/21/10 21:40:52.588           Read media A/V information: []/[] => []/[] <0xb6db3b90>
05      04/21/10 21:40:52.588           Xine_Player::EVENT_Playback_Started(streamID=1003) <0xb6db3b90>


Also there is a problem with playback m2ts files using mplayer:
5      04/21/10 21:36:47.309           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |[h264_vdpau @ 0x88ae6e0]B picture before any references, skipping| <0xb60dbb90>
05      04/21/10 21:36:47.309           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |[h264_vdpau @ 0x88ae6e0]decode_slice_header error| <0xb60dbb90>
05      04/21/10 21:36:47.309           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |[h264_vdpau @ 0x88ae6e0]B picture before any references, skipping| <0xb60dbb90>
05      04/21/10 21:36:47.309           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |[h264_vdpau @ 0x88ae6e0]decode_slice_header error| <0xb60dbb90>
05      04/21/10 21:36:47.309           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |[h264_vdpau @ 0x88ae6e0]no frame!| <0xb60dbb90>
05      04/21/10 21:36:47.309           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |Error while decoding frame!| <0xb60dbb90>
05      04/21/10 21:36:47.309           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |[VD_FFMPEG] Trying pixfmt=0.| <0xb60dbb90>
05      04/21/10 21:36:47.309           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |Could not find matching colorspace - retrying with -vf scale...| <0xb60dbb90>
05      04/21/10 21:36:47.310           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |Opening video filter: [scale]| <0xb60dbb90>
05      04/21/10 21:36:47.310           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |The selected video_out device is incompatible with this codec.| <0xb60dbb90>
05      04/21/10 21:36:47.310           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |Try appending the scale filter to your filter list,| <0xb60dbb90>
05      04/21/10 21:36:47.310           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |e.g. -vf spp,scale instead of -vf spp.| <0xb60dbb90>
05      04/21/10 21:36:47.310           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |[h264_vdpau @ 0x88ae6e0]decoding to PIX_FMT_NONE is not supported.| <0xb60dbb90>
05      04/21/10 21:36:47.310           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |[h264_vdpau @ 0x88ae6e0]decode_slice_header error| <0xb60dbb90>
05      04/21/10 21:36:47.310           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |[VD_FFMPEG] Trying pixfmt=0.| <0xb60dbb90>
05      04/21/10 21:36:47.310           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |Could not find matching colorspace - retrying with -vf scale...| <0xb60dbb90>
05      04/21/10 21:36:47.310           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |Opening video filter: [scale]| <0xb60dbb90>
05      04/21/10 21:36:47.310           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |The selected video_out device is incompatible with this codec.| <0xb60dbb90>
05      04/21/10 21:36:47.310           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |Try appending the scale filter to your filter list,| <0xb60dbb90>
05      04/21/10 21:36:47.310           MPlayer_Player::Log [EngineOutputReader] Analyzing line: |e.g. -vf spp,scale instead of -vf spp.| <0xb60dbb90>


Any idea howto solve that?

Sure I have integrated GeForce 8300 which supports VDPAU.
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]

skeptic

I have no idea about your problems but I can confirm that vdpau does in fact work.  Not sure if I tried .mkv files, but .mp4 and MythTV both play great on an ION netbook after enabling VDPAU in the web admin AND in MythTV.  HDTV was unwatchable until I set this, I didn't try any ripped blu-ray movies before turning on VDPAU, but I suspect they would also have sucked.  I also learned if you enable VDPAU in MythTV on a MD with a non-vdpau video card you cannot get into MythTV at all.  LMCE jumps straight to TV, which fails and exits.  I had forgot I swapped an older card into my core/md... 

nite_man

Thanks for your replay, skeptic. But I use VDR and I'm interested to playback MKV and M2TS files. And I have a big problems with it. When I use xv acceleration the MKV is played but with 90% using CPU, and as result, twitching. Even under 0710 the situation is much better because there mplayer takes about 50% of CPU.

My 0810 is up-to-date. So, I have no idea what is the problem. Maybe some codecs are missed?
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]

totallymaxed

Quote from: nite_man on April 21, 2010, 11:52:27 PM
Thanks for your replay, skeptic. But I use VDR and I'm interested to playback MKV and M2TS files. And I have a big problems with it. When I use xv acceleration the MKV is played but with 90% using CPU, and as result, twitching. Even under 0710 the situation is much better because there mplayer takes about 50% of CPU.

My 0810 is up-to-date. So, I have no idea what is the problem. Maybe some codecs are missed?

Sounds like vdr is not using vdpau then.


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]

Techstyle

I was talking with TSCHAK 2 days ago about a similar thing.  I had a m2ts file playing in mplayer, CPU usage was 90+%.  vdpau is set as the driver in Webadmin but doesn't seem to be working (at least with mplayer)
Techstyle UK Ltd
[url=http://www.techstyleuk.co.uk]http://www.techstyleuk.co.uk[/url]

Techstyle US Inc.
[url=http://www.techstyleus.com]http://www.techstyleus.com[/url]

nite_man

Regarding the VDR. I know that under 0810 it doesn't support vdpau. But I know a few people from Russian VDR community who have it enabled under 1.7.X, of course. Currently I'm not going to watch HD TV. The most important for me is possibility to playback MKV/M2TS files with hardware acceleration regardless what player will be used - Xine or mplayer. Currently I cannot playback that kind of files with enabled vdpau acceleration at all. That's why I ask you, guys, about success example of using vdpau and not with mythtv but with Xine or mplayer video playback :)
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]

purps

With my nvidia ion board installed using default settings, .mkv files are jerky and unwatchable.

After changing hardware acceleration to vdpau in webadmin for that MD, the .mkv files play fine (apart from the odd one here and there). So it would appear that it was working in my case.
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: [url="http://wiki.linuxmce.org/index.php/User:Purps"]http://wiki.linuxmce.org/index.php/User:Purps[/url]

nite_man

Quote from: purps on April 22, 2010, 11:00:56 AM
With my nvidia ion board installed using default settings, .mkv files are jerky and unwatchable.

After changing hardware acceleration to vdpau in webadmin for that MD, the .mkv files play fine (apart from the odd one here and there). So it would appear that it was working in my case.

Great! If you can play .mkv files that means Xine does it and not mplayer. Could you, please, try to rename .mkv file to .m2ts and play it? Also I'll be very appreciated if you post an info about your xine and mplayer packages:
apt-cache policy xine
apt-cache policy mplayer

Also what is CPU usage when you play .mkv/.m2ts files?
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]

purps

Quote from: nite_man on April 22, 2010, 12:42:33 PM
Quote from: purps on April 22, 2010, 11:00:56 AM
With my nvidia ion board installed using default settings, .mkv files are jerky and unwatchable.

After changing hardware acceleration to vdpau in webadmin for that MD, the .mkv files play fine (apart from the odd one here and there). So it would appear that it was working in my case.

Great! If you can play .mkv files that means Xine does it and not mplayer. Could you, please, try to rename .mkv file to .m2ts and play it? Also I'll be very appreciated if you post an info about your xine and mplayer packages:
apt-cache policy xine
apt-cache policy mplayer

Also what is CPU usage when you play .mkv/.m2ts files?

No problem, I can do that in slower time (I'm away for a few days). How do I check CPU usage?
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: [url="http://wiki.linuxmce.org/index.php/User:Purps"]http://wiki.linuxmce.org/index.php/User:Purps[/url]

purps

Can I ask what changing .mkv to .m2ts is supposed to achieve? Does it force it to use mplayer or something?
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: [url="http://wiki.linuxmce.org/index.php/User:Purps"]http://wiki.linuxmce.org/index.php/User:Purps[/url]

nite_man

To see CPU usage during playback login to your core or hybrid and type command top. You'll see the percentage of CPU using by mplayer or xine (actually all others programs as well). m2ts files are played by mplayer and not xine. That approach is used since 0710 where xine shows HD video with artefacts. And yes, it forces LinuxMCE to use mplayer instead of xine. The system also sets type Blu-ray instead of Video file. But I'm not sure that last one is true.
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]

skeptic

nite_man - I think you mean to say to log onto the MD that is playing the video, which may be a hybrid but will not be a dedicated core.

nite_man

Quote from: skeptic on April 22, 2010, 04:11:34 PM
nite_man - I think you mean to say to log onto the MD that is playing the video, which may be a hybrid but will not be a dedicated core.

Sure, login to that PC where video is playing. I have core/hybrid only. That's why I didn't tell about dedicated one :)
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]

nite_man

Just guessing. Maybe package  nvidia-glx-195 conflicts with nvidia-195-libvdpau?
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]