LinuxMCE Forums

General => Users => Topic started by: Viking on March 26, 2009, 10:50:14 am

Title: Will 0810 take advantage of VDPAU ?
Post by: Viking on March 26, 2009, 10:50:14 am
Hi,

there is some talk about VDPAU and it looks promising :)

Is the upcomming 0810 going to use VDPAU - and if yes, what parts of it
- VDR
- MythTV
- (HD)Video/DVD replay

Greetings
Viking
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: posde on March 26, 2009, 02:20:38 pm
No, there are no plans to incorporate VDPAU atm.
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: davegravy on March 26, 2009, 03:05:43 pm
Seems to me this will be a high demand feature, and I hope the dev team fully intends to support it after 810.
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: posde on March 26, 2009, 04:52:32 pm
davegravy,

everybody is looking forward to GPU assisted video decoding.
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: Viking on March 27, 2009, 09:05:22 pm
Hi,
No, there are no plans to incorporate VDPAU atm.

May I ask why not ? ;)

It looks very promising as HDTV can be played with 10% CPU using a cheap GS8400 GPU :) and if I read it right it will also assist on SD TV.

Greetings
Viking
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: posde on March 27, 2009, 09:37:06 pm
Viking,

understaffed people tend to use packages already available to them ;)
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: Viking on March 27, 2009, 10:02:25 pm
Hi,

I could maybe help implementing the patches if I had some sources to test with ...

I am not a programmer, but have a lot of experience with patching and compiling VDR :) So I could maybe extend some (debian) packages with the right patches ...

Greetings
Viking
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: totallymaxed on March 28, 2009, 10:13:04 am
Hi,

I could maybe help implementing the patches if I had some sources to test with ...

I am not a programmer, but have a lot of experience with patching and compiling VDR :) So I could maybe extend some (debian) packages with the right patches ...

Greetings
Viking

All the sources you need are in the svn... libxine for example. If you want to experiment with this get the sources and get started...then come back here and document your success or lack of it.

Andrew
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: Seer on March 28, 2009, 06:29:22 pm
Um, what?  From http://en.wikipedia.org/wiki/VDPAU (http://en.wikipedia.org/wiki/VDPAU)

Software supporting VDPAU

    * MythTV (Linux)[5]
    * Xine (Linux)[6]
    * MPlayer (Linux)
    * VLC media player (Linux)[7]
    * FFmpeg (Linux)[8]
    * XBMC Media Center (Linux)[9][10][11]

Looks like all we'd need to do is use the _current_ version of the apps LMCE already uses and we are in like Flynn. 

Or am I wrong?
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: totallymaxed on March 28, 2009, 08:14:06 pm
Um, what?  From http://en.wikipedia.org/wiki/VDPAU (http://en.wikipedia.org/wiki/VDPAU)

Software supporting VDPAU

    * MythTV (Linux)[5]
    * Xine (Linux)[6]
    * MPlayer (Linux)
    * VLC media player (Linux)[7]
    * FFmpeg (Linux)[8]
    * XBMC Media Center (Linux)[9][10][11]

Looks like all we'd need to do is use the _current_ version of the apps LMCE already uses and we are in like Flynn. 

Or am I wrong?

Well essentially no your not wrong at all. But... and this a pretty big 'But'...you have to satisfy all the dependencies for the packages involved and in as past experience has shown us this is extremely non-trivial. So the current plan for LinuxMCE-0810 is to use the 'stock' 0810 libs/packages initially and to not deviate from this until we are the other side of the release. This might seem frustrating and unreasonably 'conservative' but its the only way to smooth the ride to 0810 out.

If you want to experiment and live dangerously then go right ahead and do so...

All the best

Andrew
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: posde on March 28, 2009, 09:36:44 pm
I also wonder, what happened when a non VDPAU gfx card is used. I played with a patched mplayer once, and it would not run. This would indicate, that an additional layer has to be added based upon gfx card and driver version.
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: totallymaxed on March 28, 2009, 10:16:16 pm
I also wonder, what happened when a non VDPAU gfx card is used. I played with a patched mplayer once, and it would not run. This would indicate, that an additional layer has to be added based upon gfx card and driver version.

Yeah...I think thats very likely.

Andrew
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: Seer on March 28, 2009, 10:47:28 pm
Take a look at http://www.mythtv.org/wiki/VDPAU (http://www.mythtv.org/wiki/VDPAU)

It looks like if (and only if) you have a support cart (also listed on the above link) you can follow the instructions above.  It seems like MythTV and Xine will just work by the time 0810 rolls out.  Seems like MythTV 0.22 will included support, and any binary driver post-180.16 already supports it.

Anyway, it seems like for the most part us LMCE'rs don't have to worry about it much.  It'll either just work or it won't. 

As an aside, ATI (http://en.wikipedia.org/wiki/X-Video_Bitstream_Acceleration (http://en.wikipedia.org/wiki/X-Video_Bitstream_Acceleration)) and Intel (http://en.wikipedia.org/wiki/VaAPI (http://en.wikipedia.org/wiki/VaAPI)) both have their _own_ version of GPU decoding. 

If LMCE should support anything, it should be VaAPI.  It looks like VaAPI already supports nVidia and Intel hardware decoding, and beta support for ATI.  It's designed to replace X's Xv and XvMC.  How awesome is that?  Check out more info here: http://en.wikipedia.org/wiki/VaAPI (http://en.wikipedia.org/wiki/VaAPI)
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: colinjones on March 28, 2009, 11:15:56 pm
Hi,

I could maybe help implementing the patches if I had some sources to test with ...

I am not a programmer, but have a lot of experience with patching and compiling VDR :) So I could maybe extend some (debian) packages with the right patches ...

Greetings
Viking

All the sources you need are in the svn... libxine for example. If you want to experiment with this get the sources and get started...then come back here and document your success or lack of it.

Andrew

Andrew - this is at least the 3rd time I've seen Viking told this.... but he keeps posting (with no responses) that he has looked in the svn for the source code and only the wrapper code is there. I confess I have looked for him as well, and also could only find the wrapper code plus a very old version of VDR. Could you point to where in the svn the full VDR code is?
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: posde on March 28, 2009, 11:26:23 pm
You do not need the old VDR version. Get the latest VDR sources from backports intrepid, and build the binaries
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: totallymaxed on March 29, 2009, 02:59:23 pm
You do not need the old VDR version. Get the latest VDR sources from backports intrepid, and build the binaries


I have also told Viking this too...

Andrew
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: posde on March 29, 2009, 05:13:08 pm
Maybe it helps, if viking receives fire from two sides  ;D
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: Viking on March 30, 2009, 11:20:46 pm
Hi,

Yeah, just fire at me ;)

You do not need the old VDR version. Get the latest VDR sources from backports intrepid, and build the binaries


Now this time I think I have got the information that I was missing  : "latest VDR sources from backports intrepid"
(I have been using RedHat/Suse the last 15 years, so I am not into the Ubuntu/debian versions/differences)
I have found them here :
http://packages.ubuntu.com/intrepid/misc/

But assume that there are alos some apt sources - I will find them now that I know what to look for :)

OK, then I have found the VDR sources, but is the xineliboutput also the same from there ?
I assume not as I found some differences - amongst others vdr-sxfe (I assume) is renamed to plutovdr - see listings below.
How do I change the name in the source package ?
for testing I could just link plutovdr to vdr-sxfe - but is that enough ?

But as I have tried some of the Debian packages already I assume something breaks when the packages are not named "*LMCE0710". Well I will find out ;)

BTW. I am sorry if I am bugging you, but I would just really like to fix the choppy playback :) So just hit me if "I am a pain in the ..."

Code: [Select]
# dpkg -L xineliboutput-sxfe
/.
/usr
/usr/bin
/usr/bin/plutovdr
/usr/share
/usr/share/doc
/usr/share/doc/xineliboutput-sxfe
/usr/share/doc/xineliboutput-sxfe/copyright
/usr/share/doc/xineliboutput-sxfe/changelog.Debian.gz
/usr/share/doc/xineliboutput-sxfe/README.gz
/usr/share/doc/xineliboutput-sxfe/changelog.gz


Code: [Select]
# dpkg --contents xineliboutput-sxfe_1.0.0~rc2+cvs20080223.2030-2etch1_i386.deb
./
./usr/
./usr/bin/
./usr/bin/vdr-sxfe
./usr/share/
./usr/share/doc/
./usr/share/doc/xineliboutput-sxfe/
./usr/share/doc/xineliboutput-sxfe/README.gz
./usr/share/doc/xineliboutput-sxfe/changelog.gz
./usr/share/doc/xineliboutput-sxfe/copyright
./usr/share/doc/xineliboutput-sxfe/changelog.Debian.gz

Greetings
Viking
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: Viking on March 30, 2009, 11:29:35 pm
HI,

back to VDPAU.

I did not test it myself yet as my 7300GT does not support VDPAU, but  I am pretty sure I read that VDR with xinleliboutput only uses VDPAU if it is supported by the graphicscard - if not it just works as normally. But it might be that it needs a Nvidia driver version > 180.xx ... And that ATI cards then don't work. Will have to be tested.

What other things do I don't know either. But before 0810 comes out we probably still have some time, or not ?

Viking
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: Viking on March 30, 2009, 11:45:27 pm
Hi again,

just remebered, for xineliboutput there is a commandline switch for VDPAU.

without VDPAU :
PLUGINLIST=" \"-Pxineliboutput -l sxfe -p \" ... "

With VDPAU :
PLUGINLIST=" \"-Pxineliboutput -l sxfe -V vdpau -p \" ... "


Greetings
Viking
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: Viking on March 30, 2009, 11:47:44 pm
If LinuxMCE should support anything, it should be VaAPI.  It looks like VaAPI already supports nVidia and Intel hardware decoding, and beta support for ATI.  It's designed to replace X's Xv and XvMC.  How awesome is that?  Check out more info here: http://en.wikipedia.org/wiki/VaAPI (http://en.wikipedia.org/wiki/VaAPI)
Is VaAPI really working ? (Did no reasearch yet)

VDPAU is (probably) Nvidia only, but it works right here and now. So later we could go for a common interface when it is ready.

Greetings
Viking
Title: Re: Will 0810 take advantage of VDPAU ?
Post by: totallymaxed on March 31, 2009, 01:38:59 am
If LinuxMCE should support anything, it should be VaAPI.  It looks like VaAPI already supports nVidia and Intel hardware decoding, and beta support for ATI.  It's designed to replace X's Xv and XvMC.  How awesome is that?  Check out more info here: http://en.wikipedia.org/wiki/VaAPI (http://en.wikipedia.org/wiki/VaAPI)
Is VaAPI really working ? (Did no reasearch yet)

VDPAU is (probably) Nvidia only, but it works right here and now. So later we could go for a common interface when it is ready.

Greetings
Viking

VA API is not working with xinelibout currently...so its not an option currently. It actually tells you that in the Wikipedia article you referenced above.

Andrew