<p>(First mail seems to get lost so here I go again...)</p>
<p>Hi !</p>
<p>I'm struggling to get VDPAU HW acceleration with VLC and OSS radeon driver on a Radeon HD6250 (r600).</p>
<p>I'm testing latest VLC git (which include VDPAU pass-through by Rémi Denis-Courmont) on an Ubuntu Raring 13.04 system, with kernel 3.10 from Saucy (13.10) repository and a couple of PPA for git versions of MESA-Xorg bits and libav (previously also testing on an Archlinux system).</p>

<p>From dmesg and Xorg log all seems OK and vdpauinfo told me:</p>
<p>#> export VDPAU_DRIVER="r600"<br>
#> vdpauinfo<br>
display: :0   screen: 0<br>
API version: 1<br>
Information string: G3DVL VDPAU Driver Shared Library version 1.0</p>
<p>Video surface:</p>
<p>name   width height types<br>
-------------------------------------------<br>
420    16384 16384  NV12 <br>
422    16384 16384  NV12 <br>
444    16384 16384  NV12 </p>
<p>Decoder capabilities:</p>
<p>name               level macbs width height<br>
-------------------------------------------<br>
MPEG1                16  9216  2048  1152<br>
MPEG2_SIMPLE         16  9216  2048  1152<br>
MPEG2_MAIN           16  9216  2048  1152<br>
H264_BASELINE        16  9216  2048  1152<br>
H264_MAIN            16  9216  2048  1152<br>
H264_HIGH            16  9216  2048  1152<br>
VC1_SIMPLE           16  9216  2048  1152<br>
VC1_MAIN             16  9216  2048  1152<br>
VC1_ADVANCED         16  9216  2048  1152<br>
MPEG4_PART2_SP       16  9216  2048  1152<br>
MPEG4_PART2_ASP      16  9216  2048  1152</p>
<p>Output surface:</p>
<p>name              width height nat types<br>
----------------------------------------------------<br>
B8G8R8A8         16384 16384    y  NV12 <br>
R8G8B8A8         16384 16384    y  NV12 <br>
R10G10B10A2      16384 16384    y  NV12 <br>
B10G10R10A2      16384 16384    y  NV12 </p>
<p>Bitmap surface:</p>
<p>name              width height<br>
------------------------------<br>
B8G8R8A8         16384 16384<br>
R8G8B8A8         16384 16384<br>
R10G10B10A2      16384 16384<br>
B10G10R10A2      16384 16384<br>
A8               16384 16384</p>
<p>Video mixer:</p>
<p>feature name                    sup<br>
------------------------------------<br>
DEINTERLACE_TEMPORAL             -<br>
DEINTERLACE_TEMPORAL_SPATIAL     -<br>
INVERSE_TELECINE                 -<br>
NOISE_REDUCTION                  y<br>
SHARPNESS                        y<br>
LUMA_KEY                         -<br>
HIGH QUALITY SCALING - L1        -<br>
HIGH QUALITY SCALING - L2        -<br>
HIGH QUALITY SCALING - L3        -<br>
HIGH QUALITY SCALING - L4        -<br>
HIGH QUALITY SCALING - L5        -<br>
HIGH QUALITY SCALING - L6        -<br>
HIGH QUALITY SCALING - L7        -<br>
HIGH QUALITY SCALING - L8        -<br>
HIGH QUALITY SCALING - L9        -</p>
<p>parameter name                  sup      min      max<br>
-----------------------------------------------------<br>
VIDEO_SURFACE_WIDTH              y        48     2048<br>
VIDEO_SURFACE_HEIGHT             y        48     1152<br>
CHROMA_TYPE                      y  <br>
LAYERS                           y         0        4</p>
<p>attribute name                  sup      min      max<br>
-----------------------------------------------------<br>
BACKGROUND_COLOR                 y  <br>
CSC_MATRIX                       y  <br>
NOISE_REDUCTION_LEVEL            y      0.00     1.00<br>
SHARPNESS_LEVEL                  y     -1.00     1.00<br>
LUMA_KEY_MIN_LUMA                y  <br>
LUMA_KEY_MAX_LUMA                y  </p>
<p>Testing an H264 sample HD video (LG Four Seasons / Under The Sea -> from <a href="http://www.demo-world.eu/trailers/high-definition-trailers.php">http://www.demo-world.eu/trailers/high-definition-trailers.php</a>), works fine with mplayer:</p>

<p>#> mplayer -vo vdpau -vc ffh264vdpau -nosound /mnt/hd_other_lg_four_seasons_under_the_sea.m2ts <br>
MPlayer svn r34540 (Ubuntu), built with gcc-4.7 (C) 2000-2012 MPlayer Team<br>
mplayer: could not connect to socket<br>
mplayer: No such file or directory<br>
Failed to open LIRC support. You will not be able to use your remote control.</p>
<p>Playing /mnt/hd_other_lg_four_seasons_under_the_sea.m2ts.<br>
libavformat version 53.21.1 (external)<br>
Mismatching header version 53.19.0<br>
TS file format detected.<br>
VIDEO H264(pid=4113) NO AUDIO! (try increasing -tsprobe) NO SUBS (yet)!  PROGRAM N. 1<br>
FPS seems to be: 29.969999<br>
Load subtitles in /mnt/<br>
==========================================================================<br>
Forced video codec: ffh264vdpau<br>
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family<br>
libavcodec version 53.35.0 (external)<br>
Mismatching header version 53.32.2<br>
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))<br>
==========================================================================<br>
Audio: no sound<br>
Starting playback...<br>
[VD_FFMPEG] Trying pixfmt=0.<br>
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.<br>
VO: [vdpau] 1920x1080 => 1920x1080 H.264 VDPAU acceleration <br>
[VD_FFMPEG] XVMC-accelerated MPEG-2.<br>
V:4201.5  75/ 75  6% 43%  0.0% 0 0 </p>
<p>MPlayer interrupted by signal 2 in module: sleep_timer<br>
V:4201.5  76/ 76  6% 43%  0.0% 0 0 </p>
<p>Exiting... (Quit)</p>
<p>But VLC (after selecting VDPAU video output from interface) only shows a black window:</p>
<p>#> vlc -vvv --no-audio /mnt/hd_other_lg_four_seasons_under_the_sea.m2ts<br>
(...)<br>
[0xb5e12d30] main input debug: `file:///mnt/hd_other_lg_four_seasons_under_the_sea.m2ts' successfully opened<br>
[0xb5700df8] ts demux debug: pid[4097] unknown<br>
[0xb5e12d30] main input debug: Buffering 0%<br>
[0xb5700df8] ts demux warning: first packet for pid=4113 cc=0x1<br>
[0xb5700df8] ts demux warning: first packet for pid=4352 cc=0x1<br>
[0xb5e12d30] main input debug: Buffering 32%<br>
[0xb5e12d30] main input debug: Buffering 64%<br>
[0xb5e12d30] main input debug: Buffering 96%<br>
[0xb5e12d30] main input debug: Stream buffering done (385 ms in 1 ms)<br>
[0xb5760d00] packetizer_h264 packetizer debug: found NAL_SPS (sps_id=0)<br>
[0xb5760d00] packetizer_h264 packetizer debug: found NAL_PPS (pps_id=0 sps_id=0)<br>
[0xb5768eb0] main spu text debug: looking for text renderer module matching "any": 3 candidates<br>
[0xb5768eb0] freetype spu text debug: Building font databases.<br>
[0xb5768eb0] freetype spu text debug: Took 2 microseconds<br>
[0xb5768eb0] freetype spu text debug: Using Serif Bold as font from file /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf<br>
[0xb5768eb0] freetype spu text debug: using fontsize: 2<br>
[0xb5768eb0] main spu text debug: using text renderer module "freetype"<br>
[0xb57d6060] main scale debug: looking for video filter2 module matching "any": 59 candidates<br>
[0xb57d6060] swscale scale debug: 32x32 chroma: YUVA -> 16x16 chroma: RGBA with scaling using Bicubic (good quality)<br>
[0xb57d6060] main scale debug: using video filter2 module "swscale"<br>
[0xb57eb1b8] main scale debug: looking for video filter2 module matching "any": 59 candidates<br>
[0xb57eb1b8] yuvp scale debug: YUVP to YUVA converter<br>
[0xb57eb1b8] main scale debug: using video filter2 module "yuvp"<br>
[0xb57681a8] main video output debug: Deinterlacing available<br>
[0xb57681a8] main video output debug: deinterlace 1, mode blend, is_needed 0<br>
[0xb57681a8] main video output debug: Opening vout display wrapper<br>
[0xb5949de8] main vout display debug: looking for vout display module matching "vdpau_display": 12 candidates<br>
[0xb594a300] main window debug: looking for vout window xid module matching "qt4,any": 4 candidates<br>
[0xb594a300] qt4 window debug: requesting video window...<br>
[0x8b49fb8] qt4 interface debug: Video was requested 0, 0<br>
[0xb594a300] main window debug: using vout window xid module "qt4"<br>
[0xb594cad8] main inhibit debug: looking for inhibit module matching "any": 2 candidates<br>
[0xb594cad8] dbus_screensaver inhibit error: cannot connect to session bus: //bin/dbus-launch terminated abnormally without any error message<br>
[0xb594cad8] main inhibit debug: using inhibit module "xdg_screensaver"<br>
[0xb5949de8] vdpau_display vout display debug: connected to X11.0 server<br>
[0xb5949de8] vdpau_display vout display debug:  vendor : The X.Org Foundation<br>
[0xb5949de8] vdpau_display vout display debug:  version: 11303000<br>
[0xb5949de8] vdpau_display vout display debug: using screen 0x2ba<br>
[0xb5949de8] vdpau_display vout display debug: using back-end G3DVL VDPAU Driver Shared Library version 1.0<br>
[0xb5949de8] vdpau_display vout display error: source video YCbCr format not supported<br>
[0xb5949de8] main vout display debug: no vout display modules matched<br>
[0xb594cad8] main inhibit debug: removing module "xdg_screensaver"<br>
[0xb594a300] qt4 window debug: releasing video...<br>
[0x8b49fb8] qt4 interface debug: Video is not needed anymore<br>
[0xb57681a8] main video output error: video output creation failed<br>
[0xb5768eb0] main spu text debug: removing module "freetype"<br>
[0xb57eb1b8] main scale debug: removing module "yuvp"<br>
[0xb57d6060] main scale debug: removing module "swscale"<br>
[0xb57530c8] main decoder error: failed to create video output<br>
[0xb57530c8] main decoder warning: can't get output picture<br>
[0xb57530c8] avcodec decoder warning: disabling direct rendering<br>
[0xb5974760] main spu text debug: looking for text renderer module matching "any": 3 candidates<br>
[0xb5974760] freetype spu text debug: Building font databases.<br>
[0xb5974760] freetype spu text debug: Took 2 microseconds<br>
[0xb5974760] freetype spu text debug: Using Serif Bold as font from file /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf<br>
[0xb5974760] freetype spu text debug: using fontsize: 2<br>
[0xb5974760] main spu text debug: using text renderer module "freetype"<br>
[0xb5974c98] main scale debug: looking for video filter2 module matching "any": 59 candidates<br>
[0xb5974c98] swscale scale debug: 32x32 chroma: YUVA -> 16x16 chroma: RGBA with scaling using Bicubic (good quality)<br>
[0xb5974c98] main scale debug: using video filter2 module "swscale"<br>
[0xb594d7d8] main scale debug: looking for video filter2 module matching "any": 59 candidates<br>
[0xb594d7d8] yuvp scale debug: YUVP to YUVA converter<br>
[0xb594d7d8] main scale debug: using video filter2 module "yuvp"<br>
[0xb5973a48] main video output debug: Deinterlacing available<br>
[0xb5973a48] main video output debug: deinterlace 1, mode blend, is_needed 0<br>
[0xb5973a48] main video output debug: Opening vout display wrapper<br>
[0xb5e0cb00] main vout display debug: looking for vout display module matching "vdpau_display": 12 candidates<br>
[0xb5e0cc80] main window debug: looking for vout window xid module matching "qt4,any": 4 candidates<br>
[0xb5e0cc80] qt4 window debug: requesting video window...<br>
[0x8b49fb8] qt4 interface debug: Video was requested 0, 0<br>
[0xb5e0cc80] main window debug: using vout window xid module "qt4"<br>
[0xb5e01c38] main inhibit debug: looking for inhibit module matching "any": 2 candidates<br>
[0xb5e01c38] dbus_screensaver inhibit error: cannot connect to session bus: //bin/dbus-launch terminated abnormally without any error message<br>
[0xb5e01c38] main inhibit debug: using inhibit module "xdg_screensaver"<br>
[0xb5e0cb00] vdpau_display vout display debug: connected to X11.0 server<br>
[0xb5e0cb00] vdpau_display vout display debug:  vendor : The X.Org Foundation<br>
[0xb5e0cb00] vdpau_display vout display debug:  version: 11303000<br>
[0xb5e0cb00] vdpau_display vout display debug: using screen 0x2ba<br>
[0xb5e0cb00] vdpau_display vout display debug: using back-end G3DVL VDPAU Driver Shared Library version 1.0<br>
[0xb5e0cb00] vdpau_display vout display error: source video YCbCr format not supported<br>
[0xb5e0cb00] main vout display debug: no vout display modules matched<br>
[0xb5e01c38] main inhibit debug: removing module "xdg_screensaver"<br>
[0xb5e0cc80] qt4 window debug: releasing video...<br>
[0x8b49fb8] qt4 interface debug: Video is not needed anymore<br>
[0xb5973a48] main video output error: video output creation failed<br>
[0xb5974760] main spu text debug: removing module "freetype"<br>
[0xb594d7d8] main scale debug: removing module "yuvp"<br>
[0xb5974c98] main scale debug: removing module "swscale"<br>
[0xb57530c8] main decoder error: failed to create video output<br>
[0xb57530c8] main decoder warning: can't get output picture<br>
[0xb5e12d30] main input debug: Decoder buffering done in 206 ms<br>
^C[0x8a918f8] main libvlc debug: removing all interfaces<br>
[0x8a918f8] main libvlc debug: exiting<br>
(...)</p>
<p>In particular, the error:<br>
[0xb5e0cb00] vdpau_display vout display error: source video YCbCr format not supported</p>
<p>seems to suggest that my card cannot handle my video colorspace (it's I420/YV12), which in fact doesn't show up in vdpauinfo as well ... but then, why mplayer can play the same video with the same card throught VDPAU without any hiccups ? Where I'm missing something ?</p>

<p>If more logs or info are needed, just ask me. </p>
<p>Forgive me, if I was a bit (too) verbose :-) Thanks to all !</p>