Opened 11 years ago

Closed 11 years ago

#2861 closed defect (fixed)

AVI/XVID: Corrupted playback

Reported by: Underground78 Owned by:
Priority: important Component: avformat
Version: git-master Keywords: avi regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:
Some XVID in AVI files show corrupted frames when decoded using ffmpeg. Old version of ffmpeg seems to work correctly but I can't really tell when it was broken.

How to reproduce:
Play this sample (mirror) using ffplay.

% ffplay.exe "Untitled 16.avi"
ffplay version N-55515-gbbbd959 Copyright (c) 2003-2013 the FFmpeg developers
  built on Aug 13 2013 18:01:31 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 42.100 / 52. 42.100
  libavcodec     55. 27.100 / 55. 27.100
  libavformat    55. 13.102 / 55. 13.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 82.100 /  3. 82.100
  libswscale      2.  4.100 /  2.  4.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100

Change History (4)

comment:1 by Underground78, 11 years ago

Summary: AVI/XVID; Corrupted playbackAVI/XVID: Corrupted playback

comment:2 by llogan, 11 years ago

Component: undeterminedavformat
Keywords: avi regression added
Priority: normalimportant
Reproduced by developer: set
Status: newopen

Appears to be a regression since 6c593f1b671b7725b8c36f92f7c0a23ccf8e7628. Probably related to #2490.

$ ffmpeg -i Untitled\ 16.avi out.mpg
ffmpeg version N-55604-gfaf7c35 Copyright (c) 2000-2013 the FFmpeg developers
  built on Aug 16 2013 14:48:32 with gcc 4.8.1 (GCC) 20130725 (prerelease)
  configuration: --enable-gpl
  libavutil      52. 42.100 / 52. 42.100
  libavcodec     55. 28.100 / 55. 28.100
  libavformat    55. 13.103 / 55. 13.103
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 82.100 /  3. 82.100
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
[avi @ 0x2c49880] non-interleaved AVI
[mpeg4 @ 0x2c4a360] Invalid and inefficient vfw-avi packed B frames detected
[mp3 @ 0x2c4b020] Header missing
    Last message repeated 23 times
Input #0, avi, from 'Untitled 16.avi':
  Duration: 00:01:25.43, start: 0.000000, bitrate: 2256 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 1680x1050 [SAR 1:1 DAR 8:5], 30 fps, 25 tbr, 30 tbn, 25 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 320 kb/s
[mpeg @ 0x2c70b20] VBV buffer size not set, muxing may fail
Output #0, mpeg, to 'out.mpg':
  Metadata:
    encoder         : Lavf55.13.103
    Stream #0:0: Video: mpeg1video, yuv420p, 1680x1050 [SAR 1:1 DAR 8:5], q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Stream #0:1: Audio: mp2, 44100 Hz, stereo, s16, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 -> mpeg1video)
  Stream #0:1 -> #0:1 (mp3 -> mp2)
Press [q] to stop, [?] for help
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
[mpeg4 @ 0x2d2b420] Invalid and inefficient vfw-avi packed B frames detected
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mpeg4 @ 0x2d2b420] illegal dc vlc
[mpeg4 @ 0x2d2b420] Error at MB: 6957
[mpeg4 @ 0x2d2b420] concealing 87 DC, 87 AC, 87 MV errors in I frame
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mp3 @ 0x2c4b020] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mpeg4 @ 0x2d377e0] illegal MB_type
[mpeg4 @ 0x2d377e0] Error at MB: 6379
[mpeg4 @ 0x2d377e0] concealing 6930 DC, 6930 AC, 6930 MV errors in B frame
[mpeg4 @ 0x2d3b820] illegal MB_type
[mpeg4 @ 0x2d3b820] Error at MB: 6266
[mpeg4 @ 0x2d3b820] concealing 6930 DC, 6930 AC, 6930 MV errors in B frame
[mp3 @ 0x2c4b020] overread, skip -9 enddists: -5 -5
[mp3 @ 0x2c4b020] overread, skip -9 enddists: -4 -4
    Last message repeated 1 times
[mp3 @ 0x2c4b020] overread, skip -9 enddists: -2 -2
[mp3 @ 0x2c4b020] overread, skip -9 enddists: -4 -4
[mp3 @ 0x2c4b020] overread, skip -9 enddists: -6 -6
[mp3 @ 0x2c4b020] overread, skip -9 enddists: -3 -3
[mpeg4 @ 0x2d478e0] header damaged
[...]
[mp3 @ 0x2c4b020] incomplete frame
Error while decoding stream #0:1: Invalid data found when processing input
frame= 2137 fps=193 q=31.0 Lsize=   18266kB time=00:01:25.44 bitrate=1751.3kbits/s dup=1997 drop=0    
video:16859kB audio:1319kB subtitle:0 global headers:0kB muxing overhead 0.483940%

comment:3 by Underground78, 11 years ago

In which cases exactly do those corruptions appear? Does it affect a lot of files?

comment:4 by Michael Niedermayer, 11 years ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.