Opened 5 years ago

Last modified 5 years ago

#2851 open enhancement

support odd mpeg4 in avi

Reported by: ubitux Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: asp
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description (last modified by ubitux)

☭ ./ffplay mpeg4-newpred.avi
ffplay version N-55428-g5fc5170 Copyright (c) 2003-2013 the FFmpeg developers
  built on Aug 10 2013 21:38:34 with gcc 4.8.1 (GCC) 20130725 (prerelease)
  configuration: --enable-gpl --enable-version3 --enable-fontconfig --enable-libfreetype --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-x11grab --enable-libopenjpeg --enable-libass --enable-libmodplug --enable-libv4l2 --cc=colorgcc --samples=/home/ubitux/fate-samples --prefix=/tmp/ffinstall --disable-runtime-cpudetect --enable-libcelt --enable-libopencv --enable-frei0r --enable-libcaca --enable-libiec61883 --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libopus --enable-libpulse --enable-libspeex --enable-libquvi --assert-level=2 --enable-libzmq --enable-libschroedinger --cpu=native
  libavutil      52. 42.100 / 52. 42.100
  libavcodec     55. 24.100 / 55. 24.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
[mpeg4 @ 0x7f9b2801acc0] new pred not supportedKB sq=    0B f=0/0   
[mpeg4 @ 0x7f9b2801acc0] Error, header damaged or not MPEG4 header (f_code=0)
    Last message repeated 9 times
Input #0, avi, from 'mpeg4-newpred.avi':
  Metadata:
    encoder         : VirtualDubMod 1.5.10.2 (build 2540/release)
  Duration: 00:00:08.76, start: 0.000000, bitrate: 1915 kb/s
    Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 720x544 [SAR 1:1 DAR 45:34], SAR 17:18 DAR 5:4, 25 fps, 25 tbr, 25 tbn, 3.48 tbc
    Stream #0:1: Audio: mp2 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 160 kb/s
[mpeg4 @ 0x7f9b2800eea0] new pred not supported
    Last message repeated 1 times
[mp2 @ 0x7f9b280016e0] Header missing
    Last message repeated 2 times
[mp2 @ 0x7f9b280016e0] overread, skip -7 enddists: -3 -3
[mp2 @ 0x7f9b280016e0] overread, skip -7 enddists: -1 -1
[mpeg4 @ 0x7f9b2800eea0] illegal dc vlcvq=    8KB sq=    0B f=0/0   
[mpeg4 @ 0x7f9b2800eea0] DC corrupted at 207 0
[mpeg4 @ 0x7f9b2800eea0] concealing 76059 DC, 76167 AC, 76059 MV errors in I frame
[mpeg4 @ 0x7f9b2800f300] cbpc corrupted at 104 6B sq=    0B f=0/0   
[mpeg4 @ 0x7f9b2800f300] marker does not match f_code
[mpeg4 @ 0x7f9b2800f300] concealing 76167 DC, 76167 AC, 74488 MV errors in P frame
[mp2 @ 0x7f9b280016e0] Header missing
    Last message repeated 1 times
[mp2 @ 0x7f9b280016e0] overread, skip -7 enddists: -3 -3
[mp2 @ 0x7f9b280016e0] overread, skip -5 enddists: -1 -1
[mp2 @ 0x7f9b280016e0] overread, skip -8 enddists: -3 -3
[mp2 @ 0x7f9b280016e0] overread, skip -7 enddists: -6 -6
[mpeg4 @ 0x7f9b28020ee0] cbpc corrupted at 158 5
[mpeg4 @ 0x7f9b28020ee0] concealing 76167 DC, 76167 AC, 74713 MV errors in P frame
[mp2 @ 0x7f9b280016e0] Header missing
    Last message repeated 11 times
[mpeg4 @ 0x7f9b280217c0] marker does not match f_code    0B f=0/0   
[mpeg4 @ 0x7f9b280217c0] concealing 76167 DC, 76167 AC, 74412 MV errors in P frame
[mp2 @ 0x7f9b280016e0] Header missing
    Last message repeated 59 times
[mpeg4 @ 0x7f9b2801acc0] Error, header damaged or not MPEG4 header (f_code=0)
[mp2 @ 0x7f9b280016e0] Header missing
[mpeg4 @ 0x7f9b2801acc0] Error, header damaged or not MPEG4 header (f_code=0)
[mp2 @ 0x7f9b280016e0] Header missing
    Last message repeated 1 times
[mp2 @ 0x7f9b280016e0] Header missing
[mpeg4 @ 0x7f9b2801acc0] Error, header damaged or not MPEG4 header (f_code=0)
    Last message repeated 5 times
[mpeg4 @ 0x7f9b2801acc0] Error, header damaged or not MPEG4 header (f_code=0)
[mp2 @ 0x7f9b280016e0] Header missing
[mpeg4 @ 0x7f9b2801acc0] Error, header damaged or not MPEG4 header (f_code=0)
[mp2 @ 0x7f9b280016e0] Header missing
[mpeg4 @ 0x7f9b2801acc0] Error, header damaged or not MPEG4 header (f_code=0)
[mp2 @ 0x7f9b280016e0] Header missing
[mpeg4 @ 0x7f9b2801acc0] Error, header damaged or not MPEG4 header (f_code=0)
[mp2 @ 0x7f9b280016e0] Header missing
    Last message repeated 5 times
[...]

Garbage output video. Important bit being:

[mpeg4 @ 0x7f9b2801acc0] new pred not supported

(of course, reproducible with ffmpeg -i mpeg4-newpred.avi -frames:v 1 out.png)

Attachments (1)

mpeg4-newpred.avi (2.0 MB) - added by ubitux 5 years ago.

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by ubitux

comment:1 Changed 5 years ago by ubitux

  • Description modified (diff)

comment:2 Changed 5 years ago by llogan

  • Reproduced by developer set
  • Status changed from new to open

What can play this file normally?

comment:3 follow-up: Changed 5 years ago by michael

  • Keywords newpred removed
  • Summary changed from support mpeg4 new pred to support odd mpeg4 in avi

Where is this file from and is there any reason to belive it uses newpred ?
The header parsing starts mismatching before the newpred field so the error message about new pred is not reliable

comment:4 Changed 5 years ago by cehoyos

  • Keywords asp added; mpeg4 removed

comment:5 in reply to: ↑ 3 ; follow-up: Changed 5 years ago by ubitux

Replying to michael:

Where is this file from and is there any reason to belive it uses newpred ?

Seems to be from a half private board. All the files from that uploader have this exact issue, but it seems he didn't give additional information on how to decode them.

The header parsing starts mismatching before the newpred field so the error message about new pred is not reliable

The "new pred not supported" message seems to be the first message.

Replying to cehoyos:

Keywords asp added; mpeg4 removed

Why? It looks MPEG4 in AVI to me.

comment:6 in reply to: ↑ 5 Changed 5 years ago by cehoyos

Replying to ubitux:

Replying to cehoyos:

Keywords asp added; mpeg4 removed

Why? It looks MPEG4 in AVI to me.

At some point two years ago I decided to use the keyword "asp" for MPEG-4 Part 2 Video. If you want to change it, please change all occurrences. (Iirc, the reason was to be able to distinguish between msmpeg4 and asp. I am not claiming this was a perfect decision.)

Note: See TracTickets for help on using tickets.