On 04/13/2013 11:55 AM, Gwenole Beauchesne wrote:
Hi,

2013/4/9 Gefke M.S.<[email protected]>:
Here is my setup:

ati drivers 12.4
vaapi-driver-xvba-0.8.0
libva 1.0.15

DISPLAY=:0.1 vainfo
libva: VA-API version 0.32.0
libva: User requested driver 'fglrx'
libva: Trying to open /usr/lib/dri/fglrx_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA-API version: 0.32 (libva 1.0.15)
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API -
0.8.0
vainfo: Supported profile and entrypoints
       VAProfileH264High               : VAEntrypointVLD
       VAProfileVC1Advanced            : VAEntrypointVLD

When i trying to play video at DISPLAY=:0 everything is fine . I have
mplayer low CPU usage, below < 10%
There used to be dual-head issues, even "natively" with directly
calling into XvBA. However, that was 2+ years ago.

vainfo is not very representative since the underlying implementation
path won't trigger X window  / rendering. We could assess whether this
is an xvba-driver issue or possibly driver issue by trying with
another player.

I suggest you at least try with:
<http://gitorious.org/hwdecode-demos/hwdecode-demos/>

Then, you could experiment with:
- xvba_h264
- vaapi_h264
with either DISPLAY settings, and report back.

Thanks,
Gwenole.
apparat@key331-7014 root]$ DISPLAY=:0 vaapi_h264
Display type 'x11'
Hardware accelerator 'vaapi'
[hwdecode_demos] VA display 0x8e0d808
libva: VA-API version 0.32.0
libva: User requested driver 'fglrx'
libva: Trying to open /usr/lib/dri/fglrx_drv_video.so
libva: va_openDriver() returns 0
[hwdecode_demos] VA API version 0.32
[hwdecode_demos] 6 display attributes available
[hwdecode_demos] VADisplayAttribDirectSurface (get/---) min 1 max 1 value 0x1 [hwdecode_demos] VADisplayAttribBackgroundColor (get/set) min 0 max 16777215 value 0xffffff [hwdecode_demos] VADisplayAttribBrightness (get/set) min -100 max 100 value 0x0 [hwdecode_demos] VADisplayAttribContrast (get/set) min -100 max 100 value 0x0 [hwdecode_demos] VADisplayAttribHue (get/set) min -100 max 100 value 0x0 [hwdecode_demos] VADisplayAttribSaturation (get/set) min -100 max 100 value 0x0
[hwdecode_demos] Decoded surface size: 320x240
[hwdecode_demos] 2 profiles available
[hwdecode_demos]   VAProfileH264High
[hwdecode_demos]   VAProfileVC1Advanced
[hwdecode_demos] 1 entrypoints available for VAProfileH264High
[hwdecode_demos]   VAEntrypointVLD
press any key to exit

And i see cat

[apparat@key331-7014 root]$ DISPLAY=:0.1 vaapi_h264
Display type 'x11'
Hardware accelerator 'vaapi'
[hwdecode_demos] VA display 0x8c41530
libva: VA-API version 0.32.0
libva: User requested driver 'fglrx'
libva: Trying to open /usr/lib/dri/fglrx_drv_video.so
libva: va_openDriver() returns 0
[hwdecode_demos] VA API version 0.32
[hwdecode_demos] 6 display attributes available
[hwdecode_demos] VADisplayAttribDirectSurface (get/---) min 1 max 1 value 0x1 [hwdecode_demos] VADisplayAttribBackgroundColor (get/set) min 0 max 16777215 value 0xffffff [hwdecode_demos] VADisplayAttribBrightness (get/set) min -100 max 100 value 0x0 [hwdecode_demos] VADisplayAttribContrast (get/set) min -100 max 100 value 0x0 [hwdecode_demos] VADisplayAttribHue (get/set) min -100 max 100 value 0x0 [hwdecode_demos] VADisplayAttribSaturation (get/set) min -100 max 100 value 0x0
[hwdecode_demos] Decoded surface size: 320x240
[hwdecode_demos] 2 profiles available
[hwdecode_demos]   VAProfileH264High
[hwdecode_demos]   VAProfileVC1Advanced
[hwdecode_demos] 1 entrypoints available for VAProfileH264High
[hwdecode_demos]   VAEntrypointVLD
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  1 (X_CreateWindow)
  Serial number of failed request:  75
  Current serial number in output stream:  78

I can't compile xvba_h264

#include <amdpcom.h> is public available?
if i try to compile without <amdpcom.h> i get

./configure --enable-xvba --disable-vdpau --disable-ffmpeg --disable-crystalhd 
--enable-vaapi

..........skip.........

/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2   -o xvba_h264  
xvba_h264-common.o xvba_h264-debug.o xvba_h264-utils.o xvba_h264-image.o 
xvba_h264-buffer.o  xvba_h264-x11.o xvba_h264-utils_x11.o  xvba_h264-xvba.o 
xvba_h264-xvba_gate.o xvba_h264-h264.o xvba_h264-xvba_h264.o  -lcairo    -lX11  
  -lXvBAW -lGL -ldl -lrt -lpthread
gcc -g -O2 -o xvba_h264 xvba_h264-common.o xvba_h264-debug.o xvba_h264-utils.o 
xvba_h264-image.o xvba_h264-buffer.o xvba_h264-x11.o xvba_h264-utils_x11.o 
xvba_h264-xvba.o xvba_h264-xvba_gate.o xvba_h264-h264.o xvba_h264-xvba_h264.o  
-lcairo -lXvBAW /usr/lib/libGL.so -L/usr/X11R6/lib -lm -lXext -lX11 -ldl -lrt 
-lpthread
xvba_h264-common.o: In function `main':
/usr/src/redhat/BUILD/hwdecode-demos/src/common.c:1184: undefined reference to 
`pre'
/usr/src/redhat/BUILD/hwdecode-demos/src/common.c:1189: undefined reference to 
`decode'
/usr/src/redhat/BUILD/hwdecode-demos/src/common.c:1201: undefined reference to 
`display'
/usr/src/redhat/BUILD/hwdecode-demos/src/common.c:1206: undefined reference to 
`post'
collect2: ld returned 1 exit status
make[1]: *** [xvba_h264] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/hwdecode-demos/src'
make: *** [all] Error 2

This functions not defined anywhere and all xvba.* files are 1 byte size.

_______________________________________________
Libva mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libva

Reply via email to