Thread: mplayer vdpau
View Single Post
Old 01-27-09, 05:34 AM   #622
jyavenard
MythTV developer
 
Join Date: Mar 2006
Posts: 413
Default Re: mplayer vdpau

Quote:
Originally Posted by Stephen Warren View Post
However, it'd be really great to have as many people use the new version as possible, because it uses VDPAU support that's part of official ffmpeg SVN, and we'd like to make sure that works correctly.
I've built the packages, however, one video that use to play fine, now won't play
Code:
VIDEO:  [avc1]  1920x800  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] VDPAU accelerated codec.
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [libdca] DTS decoding with libdca
Stream with high frequencies VQ coding
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [dts] afm: libdca (DTS-libdca)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 1920 x 800 (preferred colorspace: H.264 HIGH VDPAU acceleration)
VDec: using H.264 HIGH VDPAU acceleration as output csp (no 2)
Movie-Aspect is 2.40:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x800 => 1920x800 H.264 HIGH VDPAU acceleration 
Error 25 at libvo/vo_vdpau.c:990:  0.003   0/  0 ??% ??% ??,?% 8 0
It plays fine with mythtv, and with the previous version of mplayer (though it may have been because it had this patch:
Code:
--- mplayer-vdpau~/libvo/vo_vdpau.c	2009-01-13 04:50:26.000000000 +1100
+++ mplayer-vdpau/libvo/vo_vdpau.c	2009-01-13 04:51:31.000000000 +1100
@@ -701,7 +701,7 @@
             uint32_t round_width = (vid_width + 15) & ~15;
             uint32_t round_height = (vid_height + 15) & ~15;
             uint32_t surf_size = (round_width * round_height * 3) / 2;
-            max_references = (12 * 1024 * 1024) / surf_size;
+            max_references = ((12 * 1024 * 1024) / surf_size) + 11;
             if (max_references > 16) {
                 max_references = 16;
             }
Packages is available in my repository:
Add:
deb http://www.avenard.org/files/ubuntu-repos files/
to your /etc/apt/sources.list
jyavenard is offline   Reply With Quote