[MPlayer-users] VDPAU decoding in MPlayer broken by recent FFmpeg changes

Ilja Sekler ilja_sekler_ at gmx.de
Wed Aug 21 22:23:17 CEST 2013


Am 21.08.2013 20:15, schrieb Reimar Döffinger:

> On Wed, Aug 14, 2013 at 08:26:04PM +0200, Ilja Sekler wrote:
>
>> But I see a very strange effect when playing DivX videos through
>> ffodivxvdpau now: it looks as if every second frame were dropped
>> and the first one instead duplicated (or even worse), all movements
>> look choppy. This is not related to this patch. It doesn't happen
>> with the software decoder and doesn't happen with the VDPAU decoder
>> and r36171 from Fedora repositories.
>
> Hm, my suspicion is that this means there is an issue with decoding
> B-frames (does it say something about "invalid packed B-frames" when
> this issue shows up or does this happen for all files?).

Yes, all files which suffer from choppy playback trigger also a


[mpeg4 @ 0x7fc2cd2758c0]Invalid and inefficient vfw-avi packed B frames
detected


message in the MPlayer console output. Unfortunately, I have managed to
identify only a single video (Xvid encoded) which didn't show this
warning and I can't confirm that all videos which show the warning
necessarily exhibit the choppy playback issue.

> I guess there is no useful output? Maybe you could post it anyway?

Please see the attached log from an affected video. The MPlayer was 
built with your "ensure we exit decode loop" patch to ffmpeg applied, 
otherwise the log would have been full of "marker does not match f_code" 
messages.

Thanks,

-- 
Regards

Ilja
-------------- next part --------------
./mplayer -v -vc ffodivxvdpau ~/Videos/kim_yoona_skating.avi 
MPlayer SVN-r36428-4.8.1 (C) 2000-2013 MPlayer Team
CPU vendor name: AuthenticAMD  max cpuid level: 5
CPU: AMD Athlon(tm) II X2 260 Processor (Family: 16, Model: 6, Stepping: 3)
extended cpuid-level: 27
extended cache-info: 67141952
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNowExt: 1 SSE: 1 SSE2: 1 SSE3: 1 SSSE3: 0 SSE4: 0 SSE4.2: 0 AVX: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowExt SSE SSE2 SSE3 CMOV
get_path('codecs.conf') -> '/home/ilja/.mplayer/codecs.conf'
Reading optional codecs config file /home/ilja/.mplayer/codecs.conf: No such file or directory
Reading optional codecs config file /usr/local/etc/mplayer/codecs.conf: No such file or directory
Using built-in default codecs.conf.
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/ilja/.mplayer/fonts'
Configuration: --disable-vidix --disable-lirc --language=en,de
CommandLine: '-v' '-vc' 'ffodivxvdpau' '/home/ilja/Videos/kim_yoona_skating.avi'
Using nanosleep() timing
get_path('input.conf') -> '/home/ilja/.mplayer/input.conf'
Parsing input config file /home/ilja/.mplayer/input.conf
Input config file /home/ilja/.mplayer/input.conf parsed: 5 binds
get_path('kim_yoona_skating.avi.conf') -> '/home/ilja/.mplayer/kim_yoona_skating.avi.conf'

Playing /home/ilja/Videos/kim_yoona_skating.avi.
get_path('sub/') -> '/home/ilja/.mplayer/sub/'
[file] File size is 100745074 bytes
STREAM: [file] /home/ilja/Videos/kim_yoona_skating.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
libavformat version 55.14.101 (internal)
Configuration: --enable-gpl --enable-postproc
LAVF_check: AVI (Audio Video Interleaved)
AVI file format detected.
list_end=0x1252
======= AVI Header =======
us/frame: 33366  (fps=29.971)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2064) HAS_INDEX TRUST_CKTYPE
frames  total: 14191   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  856 x 480
==========================
list_end=0x8D4
==> Found video stream: 0
[aviheader] Video stream found, -vid 0
====== STREAM Header =====
Type: vids   FCC: divx (78766964)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 30000/1001 = 29.970
Start: 0   Len: 14191
Suggested BufferSize: 80283
Quality 0
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 856
  biHeight 480
  biPlanes 1
  biBitCount 24
  biCompression 808802372='DX50'
  biSizeImage 821760
===========================
Regenerating keyframe table for MPEG-4 video.
list_end=0x1146
==> Found audio stream: 1
[aviheader] Audio stream found, -aid 1
====== STREAM Header =====
Type: auds   FCC: U (55)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 24000/1 = 24000.000
Start: 0   Len: 11363780
Suggested BufferSize: 1594
Quality 0
Sample size: 1
==========================
Found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 24000
Block align: 1
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x4
mp3.nBlockSize=576
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
==========================================================================
list_end=0x5FA518A
Found movie at 0x1800 - 0x5FA518A
Reading INDEX block, 28382 chunks for 14191 frames (fpos=100290962).
AVI index offset: 0x17FC (movi=0x1800 idx0=0x4 idx1=0x228)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=88681243 (14191) audio size=11363780 (11363780)
VIDEO:  [DX50]  856x480  24bpp  29.970 fps  1498.3 kbps (182.9 kbyte/s)
Auto-selected AVI audio ID = 1
[V] filefmt:3  fourcc:0x30355844  size:856x480  fps:29.970  ftime:=0.0334
Load subtitles in /home/ilja/Videos/
get_path('sub/') -> '/home/ilja/.mplayer/sub/'
X11 opening display: :0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1920x1080 with depth 24 and 32 bpp (":0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
==========================================================================
VDec: using MPEG-4 Part 2 VDPAU acceleration as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (856x480->856x480,flags=0,'MPlayer',0x1DC80006)
VO: [vdpau] 856x480 => 856x480 MPEG-4 Part 2 VDPAU acceleration 
VO: Description: VDPAU with X11
VO: Author: Rajib Mahapatra <rmahapatra at nvidia.com> and others
[vdpau] Updating CSC matrix for BT.601
==========================================================================
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 1536000 + 131072 = 1667072 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec "mp3float" init OK!
XXX initial  v_pts=0.000  a_pos=539 (0.022) 
AUDIO: 48000 Hz, 2 ch, floatle, 192.0 kbit/6.25% (ratio: 24000->384000)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
Building audio filter chain for 48000Hz/2ch/floatle -> 0Hz/0ch/??...
[libaf] Adding filter dummy 
[dummy] Was reinitialized: 48000Hz/2ch/floatle
[dummy] Was reinitialized: 48000Hz/2ch/floatle
Trying preferred audio driver 'pulse', options '[none]'
AO: [pulse] 48000Hz 2ch floatle (4 bytes per sample)
AO: Description: PulseAudio audio output
AO: Author: Lennart Poettering
Building audio filter chain for 48000Hz/2ch/floatle -> 48000Hz/2ch/floatle...
[dummy] Was reinitialized: 48000Hz/2ch/floatle
[dummy] Was reinitialized: 48000Hz/2ch/floatle
Starting playback...
Increasing filtered audio buffer size from 0 to 100096
[mpeg4 @ 0x7fa7260a48c0]Invalid and inefficient vfw-avi packed B frames detected
VDec: using MPEG-4 Part 2 VDPAU acceleration as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (856x480->856x480,flags=0,'MPlayer',0x1DC80006)
VO: [vdpau] 856x480 => 856x480 MPEG-4 Part 2 VDPAU acceleration 
VO: Description: VDPAU with X11
VO: Author: Rajib Mahapatra <rmahapatra at nvidia.com> and others
Unicode font: 5179 glyphs.
Unicode font: 5179 glyphs.
A:  12.2 V:  12.2 A-V:  0.001 ct: -0.122 368/368  0%  0%  0.8% 0 0                                                                                                                                                 
Uninit audio filters...
[libaf] Removing filter dummy 
Uninit audio: ffmpeg
vo: uninit ...

Exiting... (Quit)



More information about the MPlayer-users mailing list