Bug 63286 - api-driver-xvba problems with dual-head configuration
Summary: api-driver-xvba problems with dual-head configuration
Status: NEW
Alias: None
Product: libva
Classification: Unclassified
Component: xvba (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium critical
Assignee: Gwenole Beauchesne
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-09 03:21 UTC by noeplana
Modified: 2013-04-09 03:21 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description noeplana 2013-04-09 03:21:58 UTC
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%

DISPLAY=:0 mplayer -va vaapi -vo vaapi  -fs /home/apparat/video/brav4ik_1.avi
MPlayer 1.0rc4-4.1.2 (C) 2000-2010 MPlayer Team
Playing /home/apparat/video/brav4ik_1.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [H264]  1280x900  24bpp  25.000 fps  3413.7 kbps (416.7 kbyte/s)
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
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] VA API accelerated codec.
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
[VD_FFMPEG] Trying pixfmt=1.
Movie-Aspect is 1.42:1 - prescaling to correct movie aspect.
VO: [vaapi] 1280x900 => 1280x900 H.264 VA-API Acceleration  [fs]
[VD_FFMPEG] XVMC-accelerated MPEG-2.
A: 360.5 V: 360.4 A-V:  0.011 ct:  0.017 9012/9012  2% 27%  0.5% 19 0

Exiting... (End of file)

When i trying to play video at DISPLAY=:0.1 i have this error

DISPLAY=:0.1 mplayer -va vaapi -vo vaapi  -fs /home/apparat/video/brav4ik_1.avi
MPlayer 1.0rc4-4.1.2 (C) 2000-2010 MPlayer Team
Playing /home/apparat/video/brav4ik_1.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [H264]  1280x900  24bpp  25.000 fps  3413.7 kbps (416.7 kbyte/s)
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
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] VA API accelerated codec.
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
[VD_FFMPEG] Trying pixfmt=1.
Movie-Aspect is 1.42:1 - prescaling to correct movie aspect.
VO: [vaapi] 1280x900 => 1280x900 H.264 VA-API Acceleration  [fs]
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
X11 error: BadMatch (invalid parameter attributes)
X11 error: BadWindow (invalid Window parameter)
X11 error: BadWindow (invalid Window parameter)
X11 error: BadWindow (invalid Window parameter)


MPlayer interrupted by signal 2 in module: flip_page


MPlayer interrupted by signal 2 in module: flip_page

i have to press ctrl-c twice

If i switch -vo to xv for example i can see video, but mplayer CPU usage is too high , 50-100%

Here is some ending output with mplayer -v

[VD_FFMPEG] Trying pixfmt=1.
[ffmpeg] aspect_ratio: 1.422222
VDec: vo config request - 1280 x 900 (preferred colorspace: H.264 VA-API Acceleration)
Trying filter chain: vo
VDec: using H.264 VA-API Acceleration as output csp (no 0)
Movie-Aspect is 1.42:1 - prescaling to correct movie aspect.
VO Config (1280x900->1280x900,flags=1,'MPlayer',0x56410030)
VO: [vaapi] 1280x900 => 1280x900 H.264 VA-API Acceleration  [fs]
VO: Description: VA API with X11
VO: Author: Gwenole Beauchesne <gbeauchesne@splitted-desktop.com>
[VD_FFMPEG] XVMC-accelerated MPEG-2.
*** [vo] Direct Rendering mp_image_t, 1280x902x0bpp RGB packed, 0 bytes
Unicode font: 255 glyphs.
Unicode font: 255 glyphs.
X11 error: BadMatch (invalid parameter attributes)
Type: 0, display: 0xa491ba0, resourceid: 300002, serial: 8e
Error code: 8, request code: 49, minor code: 0
X11 error: BadMatch (invalid parameter attributes)
Type: 0, display: 0xa491ba0, resourceid: 300002, serial: 8f
Error code: 8, request code: 1, minor code: 0
X11 error: BadWindow (invalid Window parameter)
Type: 0, display: 0xa491ba0, resourceid: 300009, serial: 90
Error code: 3, request code: 2, minor code: 0
X11 error: BadWindow (invalid Window parameter)
Type: 0, display: 0xa491ba0, resourceid: 300009, serial: 91
Error code: 3, request code: 8, minor code: 0
X11 error: BadWindow (invalid Window parameter)
Type: 0, display: 0xa491ba0, resourceid: 300009, serial: 92
Error code: 3, request code: c, minor code: 0

MPlayer interrupted by signal 2 in module: flip_page

MPlayer interrupted by signal 2 in module: flip_page


I'v tried everything already:
Libva version from 0.3 to 1.0.15.
vaapi-driver-xvba-0.8.0 and vaapi-driver-xvba-0.7.8
vlc and mplayer
disable wm
Googled that xinerama mode might help, but i don't need xinerama, i need 2 separate X. And i can't switch wires :(


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.