Opened 13 years ago

Closed 13 years ago

#539 closed defect (fixed)

Some MPEG-2 streams produce corrupted video output

Reported by: STaRGaZeR Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: MPEG-2 MPEG2 corruption
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

When playing some MPEG-2 files I get corrupted output, like you can see here (ffplay screenshot): http://img255.imageshack.us/img255/880/39473053.png

I've attached a 10MB sample (mpeg2_corruption.mkv). You can find it here too: http://www.mediafire.com/?cye2dhgra9du6v8

For reference, libmpeg2 plays it fine. ffmpeg uncut output:

C:\Users\STaRGaZeR\Desktop\bin>ffmpeg -v 9 -loglevel 99 -i mpeg2_corruption.mkv
ffmpeg version N-33308-g6638207, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct  5 2011 22:56:15 with gcc 4.6.1
  configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --ena
ble-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --ena
ble-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --en
able-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib

  libavutil    51. 19. 0 / 51. 19. 0
  libavcodec   53. 19. 0 / 53. 19. 0
  libavformat  53. 14. 0 / 53. 14. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 43. 6 /  2. 43. 6
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
-v is deprecated, use -loglevel
[matroska,webm @ 01B38A80] Format matroska,webm probed with size=2048 and score=
100
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
[ac3 @ 01B3F6E0] Unsupported bit depth: 0
[mpeg2video @ 01B39440] Unsupported bit depth: 0
[mpeg2video @ 01B39440] invalid frame_pred_frame_dct
[matroska,webm @ 01B38A80] All info found
Input #0, matroska,webm, from 'mpeg2_corruption.mkv':
  Duration: 00:00:13.52, start: 0.000000, bitrate: 6253 kb/s
    Stream #0:0(eng), 42, 1/1000: Video: mpeg2video (Main), yuv420p, 720x576 [SA
R 64:45 DAR 16:9], 1/50, 7800 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
    Metadata:
      title           : Video MPEG-2 720x576 (16:9)
    Stream #0:1(eng), 57, 1/1000: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s

    Metadata:
      title           : Audio AC3 5.1
At least one output file must be specified

As you can see, ffmpeg complaints about "invalid frame_pred_frame_dct".

Thanks!

Attachments (1)

ticket539.m2v (2.4 MB ) - added by Carl Eugen Hoyos 13 years ago.

Change History (4)

comment:1 by STaRGaZeR, 13 years ago

I didn't attach anything, sorry. 2.5MB limit. You can get the sample from the link I provided though.

by Carl Eugen Hoyos, 13 years ago

Attachment: ticket539.m2v added

comment:2 by Carl Eugen Hoyos, 13 years ago

Component: undeterminedavcodec
Reproduced by developer: set
Status: newopen

Works fine (some warnings) with mplayer -vc ffmpeg12vdpau

$ ffmpeg -i ticket539.m2v -f null -
ffmpeg version N-33430-gcb50ada, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct  9 2011 20:28:29 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
  libavutil    51. 20. 1 / 51. 20. 1
  libavcodec   53. 19. 1 / 53. 19. 1
  libavformat  53. 14. 0 / 53. 14. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 43. 6 /  2. 43. 6
  libswscale    2.  1. 0 /  2.  1. 0
[mpeg1video @ 0x12d9be0] invalid frame_pred_frame_dct
[mpegvideo @ 0x12d3780] Estimating duration from bitrate, this may be inaccurate
Input #0, mpegvideo, from 'ticket539.m2v':
  Duration: 00:00:02.62, bitrate: 7800 kb/s
    Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 7800 kb/s, 25 fps, 25 tbr, 1200k tbn, 50 tbc
[buffer @ 0x12e7760] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:64/45 sws_param:
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf53.14.0
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0.0 -> #0.0 (mpeg2video -> rawvideo)
Press [q] to stop, [?] for help
[mpeg2video @ 0x12d9be0] invalid frame_pred_frame_dct
    Last message repeated 1 times
[mpeg2video @ 0x12d9be0] MT_FIELD in progressive_sequence
    Last message repeated 25 times
[mpeg2video @ 0x12d9be0] Warning MVs not available
[mpeg2video @ 0x12d9be0] concealing 1170 DC, 1170 AC, 1170 MV errors
[mpeg2video @ 0x12d9be0] invalid frame_pred_frame_dct
[mpeg2video @ 0x12d9be0] MT_FIELD in progressive_sequence
    Last message repeated 25 times
[mpeg2video @ 0x12d9be0] Warning MVs not available
[mpeg2video @ 0x12d9be0] concealing 1170 DC, 1170 AC, 1170 MV errors
[mpeg2video @ 0x12d9be0] invalid frame_pred_frame_dct
[mpeg2video @ 0x12d9be0] MT_FIELD in progressive_sequence
    Last message repeated 26 times

...

[mpeg2video @ 0x12d9be0] concealing 855 DC, 855 AC, 855 MV errors
[mpeg2video @ 0x12d9be0] invalid frame_pred_frame_dct
[mpeg2video @ 0x12d9be0] MT_FIELD in progressive_sequence
    Last message repeated 17 times
[mpeg2video @ 0x12d9be0] concealing 810 DC, 810 AC, 810 MV errors
[mpeg2video @ 0x12d9be0] invalid frame_pred_frame_dct
    Last message repeated 1 times
[mpeg2video @ 0x12d9be0] MT_FIELD in progressive_sequence
    Last message repeated 26 times
[mpeg2video @ 0x12d9be0] concealing 1215 DC, 1215 AC, 1215 MV errors
[mpeg2video @ 0x12d9be0] invalid frame_pred_frame_dct
[mpeg2video @ 0x12d9be0] MT_FIELD in progressive_sequence
[mpeg2video @ 0x12d9be0] ac-tex damaged at 7 8
[mpeg2video @ 0x12d9be0] concealing 1305 DC, 1305 AC, 1305 MV errors
frame=   81 fps=  0 q=0.0 Lsize=      -0kB time=00:00:03.24 bitrate=  -0.1kbits/s    ^M
video:0kB audio:0kB global headers:0kB muxing overhead -inf%

comment:3 by Michael Niedermayer, 13 years ago

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