Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-25-09, 10:23 PM   #1
colbert
Registered User
 
Join Date: Jan 2008
Posts: 33
Unhappy Mplayer+vdpau not playing h264

I am using Arch linux, mplayer package info from pacman here:

Code:
Name           : mplayer
Version        : 29776-1
URL            : http://www.mplayerhq.hu/
Licenses       : GPL
Groups         : None
Provides       : None
Depends On     : libxxf86dga  libxv  libmad  giflib  cdparanoia  libxinerama  sdl  lame  libtheora  xvidcore  zlib  libmng  libxss  live-media  libgl  smbclient  aalib  jack-audio-connection-kit  libcaca  x264>=20090416  faac  lirc-utils
                 ttf-dejavu  libxvmc  libjpeg>=7
Optional Deps  : None
Required By    : devede  gmencoder  gnome-mplayer  smplayer-svn
Conflicts With : None
Replaces       : None
Installed Size : 21988.00 K
Packager       : Unknown Packager
Architecture   : i686
Build Date     : Wed 25 Nov 2009 06:51:04 PM EST
Install Date   : Wed 25 Nov 2009 06:51:35 PM EST
Install Reason : Explicitly installed
Install Script : No
Description    : A movie player for linux
Playing an h264 encoded .MKV 720p file that I've played countless times with various versions of mplayer, VLC, xine, Myth internal player, etc. I get this output trying to use the -vc ffh264vdpau:

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

Playing Movie.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_DTS), -aid 0, -alang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  1280x532  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
Opening video filter: [screenshot]
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [libdca] DTS decoding with libdca
AUDIO: 48000 Hz, 6 ch, s16le, 1536.0 kbit/33.33% (ratio: 192000->576000)
Selected audio codec: [dts] afm: libdca (DTS-libdca)
==========================================================================
AO: [alsa] 48000Hz 6ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Error while decoding frame!
[h264_vdpau @ 0x899a360]get_buffer() failed (-1 0 0 (nil))
[h264_vdpau @ 0x899a360]decode_slice_header error
[h264_vdpau @ 0x899a360]no frame!
Error while decoding frame!
[h264_vdpau @ 0x899a360]get_buffer() failed (-1 0 0 (nil))
[h264_vdpau @ 0x899a360]decode_slice_header error
[h264_vdpau @ 0x899a360]no frame!
Error while decoding frame!
[h264_vdpau @ 0x899a360]B picture before any references, skipping
[h264_vdpau @ 0x899a360]decode_slice_header error
[h264_vdpau @ 0x899a360]no frame!
Error while decoding frame!
[h264_vdpau @ 0x899a360]get_buffer() failed (-1 0 0 (nil))
[h264_vdpau @ 0x899a360]decode_slice_header error
[h264_vdpau @ 0x899a360]no frame!
Error while decoding frame!
And those "Error while decoding frame!" bunches repeat until ctrl+c. I also got this a couple times:

Code:
Error while decoding frame!
[h264_vdpau @ 0x899a360]get_buffer() failed (-1 0 0 (nil))
[h264_vdpau @ 0x899a360]decode_slice_header error
[h264_vdpau @ 0x899a360]no frame!
Error while decoding frame!

Too many audio packets in the buffer: (4101 in 8255313 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

FATAL: Could not initialize video filters (-vf) or video output (-vo).


Exiting... (End of file)
While that seems to be an audio error, I will repeat that I have played this file countless times with many versions of mplayer, VLC, xine, Myth internal player, etc. with no problems at all.

Thanks for any help
colbert is offline   Reply With Quote
Old 11-26-09, 05:57 AM   #2
cehoyos
FFmpeg developer
 
Join Date: Jan 2009
Location: Vienna, Austria
Posts: 467
Default Re: Mplayer+vdpau not playing h264

Quote:
Originally Posted by colbert View Post
I am using Arch linux, mplayer package info from pacman here
If you are using Packman's MPlayer version, you have to report problems at Packman.
Here (and on mplayer-users), only latest svn is supported.
(Remember to upload a sample in case the problem is still reproducible or use -demuxer lavf.)

Carl Eugen

Last edited by cehoyos; 11-26-09 at 06:06 AM. Reason: Remove claim the problem was fixed: The version seems much older than the bug I suspected.
cehoyos is offline   Reply With Quote
Old 11-26-09, 06:09 AM   #3
piotrq__
Registered User
 
Join Date: Jan 2006
Posts: 193
Default Re: Mplayer+vdpau not playing h264

Try disabling any possible video filters first by adding -vf-clr to your command line switches.
piotrq__ is offline   Reply With Quote
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
Old 11-26-09, 04:42 PM   #5
uau
Registered User
 
Join Date: Sep 2009
Posts: 45
Default Re: Mplayer+vdpau not playing h264

Currently you can't take screenshots in MPlayer when using hardware decoding. The screenshot filter only works if the video has been decoded before the filter chain, which is not the case with hardware decoding.

I think support for screenshots with VDPAU would not be too hard to implement, and the one-frame delay after pressing 's' could be removed at the same time. However there are a lot of other features missing from MPlayer too so I'm not sure whether I'll actually try to implement this particular one.
uau is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:37 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.