View Single Post
Old 11-26-09, 04:10 PM   #4
colbert
Registered User
 
Join Date: Jan 2008
Posts: 33
Default Re: Mplayer+vdpau not playing h264

Thanks fellas, I actually completely removed the Mplayer from pacman (Arch's package manager). I grabbed the mplayer-svn (I'm at 29968-1) from our AUR (aka DIY) repo and built it with --enable-vdpau. The exact same command did not work, I actually got a tiny bit more helpful output:

Code:
Error while decoding frame!
[VD_FFMPEG] Trying pixfmt=0.
Unsupported PixelFormat -1
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Unsupported PixelFormat -1
[h264_vdpau @ 0x8a12480]decoding to PIX_FMT_NONE is not supported.
[h264_vdpau @ 0x8a12480]decode_slice_header error
[h264_vdpau @ 0x8a12480]no frame!
Error while decoding frame!
I simply took out the "-vf screenshot" option from the command voila, it's playing back with VDPAU perfectly!

Code:
MPlayer SVN-r29968-4.4.2 (C) 2000-2009 MPlayer Team
141 audio & 308 video codecs

Playing The.Dark.Knight.2008.720p-sinners.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_AC3), -aid 0, -alang eng
[mkv] Track ID 3: subtitles (S_TEXT/UTF8), -sid 0, -slang eng
[mkv] Track ID 4: subtitles (S_TEXT/UTF8), -sid 1, -slang rum
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  1280x720  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 6 ch, s16le, 640.0 kbit/13.89% (ratio: 80000->576000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [alsa] 48000Hz 6ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
Unsupported PixelFormat -1
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x720 => 1280x720 H.264 VDPAU acceleration  [fs]
[VD_FFMPEG] XVMC-accelerated MPEG-2.
A:  67.9 V:  67.9 A-V:  0.000 ct: -0.001   0/  0  0% 19%  0.7% 10 0
Pretty incredible to watch a very high-bitrate, HD 720p video and see the CPU bar in conky not even blink I hope this helps anyone else

P.S. Just curious, how do I take screenshots/still images of the video now without -vf screenshot? I checked the man page, but it says to use the "s/S" key for taking a screenshot is with "-vf screenshot only," and I did just hit them during playback and output said "failed (forgot -vf screenshot?)". Thanks for any help

edit: Just to note, I had tried the command sans -vf screenshot with the Mplayer package from pacman, to no avail, so it's a version issue I'm guessing...
colbert is offline   Reply With Quote