You are not logged in.

#1 2014-05-10 22:18:43

ThePacman
Member
From: Classified
Registered: 2013-09-19
Posts: 127

libvdpau-va-gl or libva-vdpau-driver? [SOLVED]

I've got a Radeon HD 4350 graphics card powered by xf86-video-ati/ati-dri.
I was reading the Wiki articles on VDPAU and VA-API and the differences between the two. What package (libvdpau-va-gl or libva-vdpau-driver) should I install to maximize performance/compatibility? Should I get both?
It seems that one uses VA-API as a backend to provide fake VDPAU, and the other one does the reverse. Will installing them both create a loop that breaks hardware acceleration? Or am I misunderstanding the situation?

Last edited by ThePacman (2014-05-11 19:15:34)


Fedora believes in "software freedom" - that is, restricting user software choices to those deemed appropriately licensed by The Powers That Be.
Arch believes in "freedom", as well - the user has control over his or her system and can do what he wants with it.
https://fedoraproject.org/wiki/Forbidden_items | https://wiki.archlinux.org/index.php/The_Arch_Way

Offline

#2 2014-05-10 22:22:21

ThePacman
Member
From: Classified
Registered: 2013-09-19
Posts: 127

Re: libvdpau-va-gl or libva-vdpau-driver? [SOLVED]

I found this thread and read it.
My question concerning the two packages still stands - of these wrappers/hacks, which (if any) should I install to maximize performance/compatibility?


Fedora believes in "software freedom" - that is, restricting user software choices to those deemed appropriately licensed by The Powers That Be.
Arch believes in "freedom", as well - the user has control over his or her system and can do what he wants with it.
https://fedoraproject.org/wiki/Forbidden_items | https://wiki.archlinux.org/index.php/The_Arch_Way

Offline

#3 2014-05-10 23:53:00

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: libvdpau-va-gl or libva-vdpau-driver? [SOLVED]

You don't need either of them. xf86-video-ati/ati-dri implements VDPAU, so you don't need anything, every application supports VDPAU directly (VLC, mplayer/mplayer2, mpv, gstreamer based players, adobe-flash)

libva-vdpau-driver is never needed, there's no application out there that's VAAPI-only (VLC used to be, but nowadays it supports both VAAPI and VDPAU). libvdpau-va-gl is needed in only one particular case - to get hardware accelerated flash with the intel driver.

Last edited by Gusar (2014-05-11 00:27:12)

Offline

#4 2014-05-11 19:13:13

ThePacman
Member
From: Classified
Registered: 2013-09-19
Posts: 127

Re: libvdpau-va-gl or libva-vdpau-driver? [SOLVED]

Gusar wrote:

You don't need either of them. xf86-video-ati/ati-dri implements VDPAU, so you don't need anything, every application supports VDPAU directly (VLC, mplayer/mplayer2, mpv, gstreamer based players, adobe-flash)

libva-vdpau-driver is never needed, there's no application out there that's VAAPI-only (VLC used to be, but nowadays it supports both VAAPI and VDPAU). libvdpau-va-gl is needed in only one particular case - to get hardware accelerated flash with the intel driver.

Thanks!

VLC lets me choose VDPAU or VA-API. I should choose VDPAU, correct? Basically, my system at the moment has no need of VA-API in any form?


Fedora believes in "software freedom" - that is, restricting user software choices to those deemed appropriately licensed by The Powers That Be.
Arch believes in "freedom", as well - the user has control over his or her system and can do what he wants with it.
https://fedoraproject.org/wiki/Forbidden_items | https://wiki.archlinux.org/index.php/The_Arch_Way

Offline

#5 2015-05-09 14:14:55

beroal
Member
From: Ukraine
Registered: 2009-06-07
Posts: 325
Website

Re: libvdpau-va-gl or libva-vdpau-driver? [SOLVED]

Gusar wrote:

every application supports VDPAU directly (VLC, mplayer/mplayer2, mpv, gstreamer based players, adobe-flash)

GStreamer 1.0 does not play H.264 via VDPAU.


we are not condemned to write ugly code

Offline

#6 2015-05-09 16:21:02

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: libvdpau-va-gl or libva-vdpau-driver? [SOLVED]

beroal wrote:

GStreamer 1.0 does not play H.264 via VDPAU.

There is a vdpau plugin in gst-plugins-bad. Whether is actually works is a different matter, I don't have any personal experience with it.

Edit: This commit says "h264 ported but deactivated", and there aren't any further commits that activate it. So you're right, there's no h264 on gstreamer 1.0 by default.

This means one has to go through gstreamer-vaapi and libva-vdpau-driver. And to that, I can only say "ugh!". Going via wrappers, you often end up with more resource usage than not using hardware decoding at all.

Last edited by Gusar (2015-05-09 16:48:19)

Offline

#7 2015-05-30 11:16:50

beroal
Member
From: Ukraine
Registered: 2009-06-07
Posts: 325
Website

Re: libvdpau-va-gl or libva-vdpau-driver? [SOLVED]

Gusar wrote:
beroal wrote:

GStreamer 1.0 does not play H.264 via VDPAU.

This means one has to go through gstreamer-vaapi and libva-vdpau-driver. And to that, I can only say "ugh!". Going via wrappers, you often end up with more resource usage than not using hardware decoding at all.

BTW, read this answer and "Hardware-accelerated decoding and encoding" on the Pitivi fundraising web page. I guess that using "libva-vdpau-driver" will be the official way for the next decade.


we are not condemned to write ugly code

Offline

#8 2015-05-30 11:26:49

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: libvdpau-va-gl or libva-vdpau-driver? [SOLVED]

It's nice then, that I've always avoided gstreamer smile. mpv is pretty much all I need, it has great support for both VAAPI and VDPAU.

Though the first link you gave talks about radeon. That one has native VAAPI now, so this wrapper stuff isn't needed with it. In theory at least, in practice I've seen reports where it works on the commanline using gst-launch, but not with Totem.

Though I wonder why there isn't more interest in VDPAU form the gstreamer devs. It's supported by the nvidia blob, by nouveau and radeon. That's enough to warrant attention, IMO.

Offline

#9 2015-05-30 12:05:47

beroal
Member
From: Ukraine
Registered: 2009-06-07
Posts: 325
Website

Re: libvdpau-va-gl or libva-vdpau-driver? [SOLVED]

Gusar wrote:

radeon. That one has native VAAPI now

Can you give a link?


we are not condemned to write ugly code

Offline

#10 2015-05-30 19:56:08

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: libvdpau-va-gl or libva-vdpau-driver? [SOLVED]

It's there since mesa-10.4 or maybe 10.5, I'm not entirely sure. I don't know if there's a single link that lays it all out, there were several commits to mesa that added a state tracker and then support for r600 and radeonsi. A quick google search finds this article at phoronix, it contains a link to the commit that added the VAAPI state tracker, radeon support followed soon after.

Nouveau support can happen when someone implements what's described in this comment.

Offline

Board footer

Powered by FluxBB