Why don't you use 0.5.1? In order to use 0.4.x you would need older mplayer snapshots.
Announcement
Collapse
No announcement yet.
AMD's UVD2-based XvBA Finally Does Something On Linux
Collapse
X
-
@Kano
I'll spell it out for you: IT DOES NOT WORK WITH 0.5.1!
Check the quoted output. Yes, really, just read it and it will all be clear.
That we might need older mplayer snapshots is constructive. What's missing there is which ones would work in combination with it. The last versions are alpha at best I'd say, so the previous ones are probably worse. For all I know we'd need an older version of libva too. Three packages, all with several different versions. That's a lot of combinations to try out...
Comment
-
I have HD4850 card here
Code:non7top@m ~/soft/vaapi/hwdecode-demos-0.7.5/src $ ./vaapi_h264 Display type 'x11' Hardware accelerator 'vaapi' [hwdecode_demos] VA display 0x80644b0 libva: libva version 0.31.0-sds3 libva: va_getDriverName() returns 0 libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so libva: va_openDriver() returns 0 [hwdecode_demos] VA API version 0.31 [hwdecode_demos] 1 display attributes available [hwdecode_demos] VADisplayAttribDirectSurface (get/---) min 0 max 0 value 0x0 [hwdecode_demos] 4 profiles available [hwdecode_demos] VAProfileMPEG2Simple [hwdecode_demos] VAProfileMPEG2Main [hwdecode_demos] VAProfileH264High [hwdecode_demos] VAProfileVC1Advanced [hwdecode_demos] 1 entrypoints available for VAProfileH264High [hwdecode_demos] VAEntrypointVLD [hwdecode_demos] vaPutSurface(): the requested function is not implemented ERROR: display failed non7top@m ~/soft/vaapi/hwdecode-demos-0.7.5/src $ ./vaapi_mpeg2 Display type 'x11' Hardware accelerator 'vaapi' [hwdecode_demos] VA display 0x80664b0 libva: libva version 0.31.0-sds3 libva: va_getDriverName() returns 0 libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so libva: va_openDriver() returns 0 [hwdecode_demos] VA API version 0.31 [hwdecode_demos] 1 display attributes available [hwdecode_demos] VADisplayAttribDirectSurface (get/---) min 0 max 0 value 0x0 [hwdecode_demos] 4 profiles available [hwdecode_demos] VAProfileMPEG2Simple [hwdecode_demos] VAProfileMPEG2Main [hwdecode_demos] VAProfileH264High [hwdecode_demos] VAProfileVC1Advanced [hwdecode_demos] 1 entrypoints available for VAProfileMPEG2Main [hwdecode_demos] VAEntrypointIDCT ERROR: decode failed non7top@m ~/soft/vaapi/hwdecode-demos-0.7.5/src $ ./vaapi_mpeg4 Display type 'x11' Hardware accelerator 'vaapi' [hwdecode_demos] VA display 0x80664b0 libva: libva version 0.31.0-sds3 libva: va_getDriverName() returns 0 libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so libva: va_openDriver() returns 0 [hwdecode_demos] VA API version 0.31 [hwdecode_demos] 1 display attributes available [hwdecode_demos] VADisplayAttribDirectSurface (get/---) min 0 max 0 value 0x0 [hwdecode_demos] 4 profiles available [hwdecode_demos] VAProfileMPEG2Simple [hwdecode_demos] VAProfileMPEG2Main [hwdecode_demos] VAProfileH264High [hwdecode_demos] VAProfileVC1Advanced ERROR: decode failed non7top@m ~/soft/vaapi/hwdecode-demos-0.7.5/src $ ./vaapi_vc1 Display type 'x11' Hardware accelerator 'vaapi' [hwdecode_demos] VA display 0x80664b0 libva: libva version 0.31.0-sds3 libva: va_getDriverName() returns 0 libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so libva: va_openDriver() returns 0 [hwdecode_demos] VA API version 0.31 [hwdecode_demos] 1 display attributes available [hwdecode_demos] VADisplayAttribDirectSurface (get/---) min 0 max 0 value 0x0 [hwdecode_demos] 4 profiles available [hwdecode_demos] VAProfileMPEG2Simple [hwdecode_demos] VAProfileMPEG2Main [hwdecode_demos] VAProfileH264High [hwdecode_demos] VAProfileVC1Advanced [hwdecode_demos] 1 entrypoints available for VAProfileVC1Advanced [hwdecode_demos] VAEntrypointVLD [hwdecode_demos] vaPutSurface(): the requested function is not implemented ERROR: display failed
ok, I've fixed the manifests and will probably add hwdecode demos in overlay soon
Comment
-
I removed all of it, then installed the drivers, libva (and libva-dev) and xvba-video again.
Seems like I made a typo when linking libAMDXvBA.cap in /usr/lib the last time, since now vainfo works. hwdecode-demos always come back with "checking for XvBA... no". Everything else in the configure goes through fine.
When checking out the configure script I noticed these two lines:
#include <amdpcom.h>
#include <amdxvba.h>
Those files are nowhere to be found on my system, nor do I know if they're actually needed.
Compiling mplayer-vaapi now also goes through properly.
mplayer -vo vaapi:gl -va vaapi <file>:
real 2m20.468s
user 0m4.500s
sys 0m2.952s
mplayer -vo gl:yuv=2:rectangle=2 <file>:
real 2m20.454s
user 1m0.936s
sys 0m0.752s
So success!
Comment
Comment