LinuxMCE Forums

General => Users => Topic started by: nite_man on April 21, 2010, 11:06:06 pm

Title: Hardware acceleration, i.e. VDPAU under 0810 with Xine or mplayer
Post by: nite_man on April 21, 2010, 11:06:06 pm
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:
Code: [Select]
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:
Code: [Select]
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.
Title: Re: Hardware acceleration, i.e. VDPAU under 0810
Post by: skeptic on April 21, 2010, 11:42:39 pm
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... 
Title: Re: Hardware acceleration, i.e. VDPAU under 0810
Post by: 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?
Title: Re: Hardware acceleration, i.e. VDPAU under 0810
Post by: totallymaxed on April 22, 2010, 12:35:39 am
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
Title: Re: Hardware acceleration, i.e. VDPAU under 0810
Post by: Techstyle on April 22, 2010, 06:03:43 am
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)
Title: Re: Hardware acceleration, i.e. VDPAU under 0810
Post by: nite_man on April 22, 2010, 08:52:08 am
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 :)
Title: Re: Hardware acceleration, i.e. VDPAU under 0810 with Xine or mplayer
Post by: 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.
Title: Re: Hardware acceleration, i.e. VDPAU under 0810 with Xine or mplayer
Post by: nite_man on April 22, 2010, 12:42:33 pm
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:
Code: [Select]
apt-cache policy xine
apt-cache policy mplayer
Also what is CPU usage when you play .mkv/.m2ts files?
Title: Re: Hardware acceleration, i.e. VDPAU under 0810 with Xine or mplayer
Post by: purps on April 22, 2010, 02:11:06 pm
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:
Code: [Select]
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?
Title: Re: Hardware acceleration, i.e. VDPAU under 0810 with Xine or mplayer
Post by: purps on April 22, 2010, 02:13:29 pm
Can I ask what changing .mkv to .m2ts is supposed to achieve? Does it force it to use mplayer or something?
Title: Re: Hardware acceleration, i.e. VDPAU under 0810 with Xine or mplayer
Post by: nite_man on April 22, 2010, 02:46:23 pm
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.
Title: Re: Hardware acceleration, i.e. VDPAU under 0810 with Xine or mplayer
Post by: 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.
Title: Re: Hardware acceleration, i.e. VDPAU under 0810 with Xine or mplayer
Post by: nite_man on April 22, 2010, 04:20:44 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 :)
Title: Re: Hardware acceleration, i.e. VDPAU under 0810 with Xine or mplayer
Post by: nite_man on April 23, 2010, 12:24:43 am
Just guessing. Maybe package  nvidia-glx-195 conflicts with nvidia-195-libvdpau?
Title: Re: Hardware acceleration, i.e. VDPAU under 0810 with Xine or mplayer
Post by: joerod on July 16, 2010, 12:37:39 am
Any updates to this topic?
Title: Re: Hardware acceleration, i.e. VDPAU under 0810 with Xine or mplayer
Post by: nite_man on July 16, 2010, 11:24:09 am
Any updates to this topic?

Looks like the rest LinuxMCE users don't have such problems ;)
Title: Re: Hardware acceleration, i.e. VDPAU under 0810 with Xine or mplayer
Post by: joerod on July 16, 2010, 11:36:45 pm
OK, I'm not entirely sure this has anything to do with the problem as I see it probably has more to do with vdpau than xine but here is a conversation I had that may help a bit...

I asked: whats the recommend way to get mkv and other h264 codecs to work?

[Fri Jul 9 2010] [21:00:48] <TSCHAKeee>
first, a correction
what you're experiencing has nothing to do with h.264
we supply h.264 codecs already, as part of ffmpeg
and an appropriate GPU can decode them on-card via VDPAU
with that said, what you're experiencing
is the fact that you're downloading pirated movies off bittorrent
(don't deny it)
which are using a newer MKV encapsulation
MKV is a container format
we do have an updated xine, which niz23 has backported the demuxer from the upcoming xine release
however, we do not currently supply them as part of the build
because they break VDR
at least until we can rebuild vdr-sxfe to properly handle the new xine libs
IF you want the new xine, you will have to forcefully install the debs
they are located here: http://tschak.homelinux.com/deb/ (http://tschak.homelinux.com/deb/)
install them all at the same time, with dpkg
keep in mind however, that you are on your own
we can't provide any support for these packages, as we are still working things out with it relating to what I mentioned above.

if you do not know how to install packages by hand with dpkg
much less how to install a batch of them at the same time
either (a) google it or (b) forget it
the mplayer player will be removed.
we will remove it from the build soon.


This got video and sound to work correctly.... kinda... I'm working on it; but it does seem to work
Title: Re: Hardware acceleration, i.e. VDPAU under 0810 with Xine or mplayer
Post by: niz23 on July 17, 2010, 07:44:00 pm
joerod,

Your problem is related to xine. Not vdpau as demux of audio/video is done i software and not hw.
The demuxed video data is passed to gpu through vdpau and hence offloaded from cpu.

As TSCHAK pointed out we have a version of Xine that is unable to demux newer matroska containers in current release because we are unable to get vdr to run with the my backported version. I have started to look at how to port vdpau to xine 1.1.18.1. It´s a huge job that need to be done manually.
If you do not use vdr your problem can be solved either by installing the updated xine 1.1.16.3 with mkv backports as suggested or by building your own xinelib >1.1.17.
Unfortunately any version newer of xine than 1.1.16.3 do not have vdpau because the Xine devel team decided to focus on upcoming version 1.2 instead.
Before you ask I can say that v1.2 is not a possible road due to so much dependencies on newer libraries and also because 1.2 is not abi compatible with 1.1.x releases.

/niz23
Title: Re: Hardware acceleration, i.e. VDPAU under 0810 with Xine or mplayer
Post by: nite_man on July 19, 2010, 08:49:15 am
Quote
As TSCHAK pointed out we have a version of Xine that is unable to demux newer matroska containers in current release
I understand why the newest versions of MKV files are not played. But what about the old ones? I cannot play files which were played fine under 0710 (with artefacts of course but at least with sound and picture). And mplayer doesn't work at all under 0810. Why do not use it the same way as it was in 0710 till xine will be fixed?
Title: Re: Hardware acceleration, i.e. VDPAU under 0810 with Xine or mplayer
Post by: willow3 on October 27, 2010, 10:34:22 pm
I can not playback m2ts files from my panasonic AVCHD camcorder under MCE 810. The problem seems similar to yours nite_man,  when I read this thread. Did you have any progress? (I did not try the backported xine since I do not want to break VDR) or shall I forget about this?

Regards
Title: Re: Hardware acceleration, i.e. VDPAU under 0810 with Xine or mplayer
Post by: joerod on October 27, 2010, 11:07:09 pm
from what I understand all these problems were fixed; xine was updated/patched and using vdpau with supported nvidia cards ought to play all your mkv contained videos.  What I have noticed is that a few of my recently acquired m2ts files play slow and the video looses sync with the sound.

but all my hd mkv videos work great.