You are not logged in.

#1 2014-12-25 20:28:05

89c51
Member
Registered: 2012-06-05
Posts: 741

Mesa radeon VA-API.

Latest mesa (10.4) added a VA-API state tracker for Radeon Cards.

How can someone enable that instead of vdpau??

Thanks in advance.

Last edited by 89c51 (2014-12-26 10:24:34)

Offline

#2 2014-12-25 22:37:53

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

Re: Mesa radeon VA-API.

Why? As an academic exercise? Nothing wrong with that (we are geeks after all smile), however VDPAU has better support all around, the only app with good VAAPI support is mpv.

Anyway, install libva-mesa-driver, then run vainfo. If that returns something sensible, do "mpv --hwdec=vaapi --vo=vaapi"

Offline

#3 2014-12-25 22:46:50

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: Mesa radeon VA-API.

Gusar wrote:

Anyway, install libva-mesa-driver, then run vainfo. If that returns something sensible, do "mpv --hwdec=vaapi --vo=vaapi"

You might have to export LIBVA_DRIVER_NAME=gallium to make libva work.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#4 2014-12-25 23:17:40

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: Mesa radeon VA-API.

Thanks. I had missed the libva-mesa-driver package. I only exported the variable thinking that it will work like that.

@Gusar gst-vaapi works fine.

Offline

#5 2014-12-25 23:23:06

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: Mesa radeon VA-API.

edit

Last edited by 89c51 (2014-12-25 23:24:00)

Offline

#6 2014-12-25 23:23:19

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

Re: Mesa radeon VA-API.

89c51 wrote:

@Gusar gst-vaapi works fine.

Does it do direct display or does it copy frames back to system memory? And does it provide something gst-vdpau doesn't?

Offline

#7 2014-12-25 23:34:50

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: Mesa radeon VA-API.

Tried gst-play and consumes very little CPU. I don't think there is a gst-vdpau package or implementation. You can have gst-vaapi working with vdpau by exporting  LIBVA_DRIVER_NAME=vdpau and having the mesa-vdpau package installed.

Also check this > http://www.gearsongallium.com/?p=1580. It has some comparisons.

Offline

#8 2014-12-25 23:45:59

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

Re: Mesa radeon VA-API.

89c51 wrote:

Tried gst-play and consumes very little CPU.

That could mean it's doing direct display, but not necessarily. mpv supports both modes, by passing either vaapi or vaapi-copy to --hwdec

89c51 wrote:

I don't think there is a gst-vdpau package or implementation

There's a vdpau plugin in gst-plugins-bad.

89c51 wrote:

You can have gst-vaapi working with vdpau by exporting  LIBVA_DRIVER_NAME=vdpau and having the mesa-vdpau package installed

mesa-vdpau is a native implementation, the wrapper is in libva-vdpau-driver. But why would you want to use wrappers instead of native implementations.

Offline

#9 2014-12-25 23:55:38

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: Mesa radeon VA-API.

I have no idea why i was using vdpau this way. HW accel. worked and didn't care much about the details. Maybe it was the only way i found while searching.

hmm

Offline

#10 2014-12-26 00:15:53

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

Re: Mesa radeon VA-API.

89c51 wrote:

Maybe it was the only way i found while searching.

Yeah, it's been my feeling that many people aren't aware gstreamer has a VDPAU plugin. Though who knows why it's in gst-plugins-bad.

Well, there's native VAAPI in mesa now, and it seems gst-vaapi works well. That's good to know.

Offline

#11 2014-12-26 10:08:51

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: Mesa radeon VA-API.

As it seems something IS wrong. I get a green video screen today. Yesterday it seemed to work fine (pretty sure a PEBKAC). hmm

Last edited by 89c51 (2014-12-26 11:26:58)

Offline

Board footer

Powered by FluxBB