Opened 2 years ago

Last modified 2 years ago

#5105 open defect

MPEG-4 asp corrupted after bitstream error

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

Description

Summary of the bug:

mplayer/ffplay plays the down below video - but I can ffmpeg the video to a valid video.

How to reproduce:
Transcoding to anything (wmv/h264/...) produces a corrupt result.

wget http://doppelbauer.name/3LaSaletteLeSecret.mp4
/usr/local/bin/ffmpeg -i 3LaSaletteLeSecret.mp4 -r 0.1 -c:v mjpeg /tmp/images/%d.jpg

The first error is not an issue. The problem is the second one - which permantly repeats and produces corrupt pictures.
Full output has about ~30 MB, so it is cuted.
Maybe the problem is a color change in the middle of the video.

ffmpeg version 2.8.4 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
  configuration: --prefix=/usr/local --enable-gpl --enable-version3 --enable-nonfree --enable-bzlib --enable-zlib --enable-openssl --enable-libx264 --enable-libfdk-aac --enable-libmp3lame --enable-libvpx --enable-libopus
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3497440] stream 0, timescale not set
[mjpeg @ 0x349d620] ignoring invalid SAR: 64/45                                                                                                                                                             
[mjpeg @ 0x349d620] Changeing bps to 8
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'queue-nu3yMP8yxFK-1.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    track           : 1
    comment         : www.dvdvideosoft.com
    date            : 2014
    encoder         : Lavf54.59.107
  Duration: 01:16:12.08, start: 0.023022, bitrate: 1696 kb/s
    Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 800x600 [SAR 4:3 DAR 16:9], 1500 kb/s, 24 fps, 24 tbr, 12288 tbn, 24 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 192 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 720x576, 90k tbr, 90k tbn, 90k tbc
[swscaler @ 0x34c5b80] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to '/tmp/images/%d.jpg':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    track           : 1
    comment         : www.dvdvideosoft.com
    date            : 2014
    encoder         : Lavf56.40.101
    Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 800x600 [SAR 4:3 DAR 16:9], q=2-31, 200 kb/s, 0.10 fps, 0.10 tbn, 0.10 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc56.60.100 mjpeg
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[mpeg4 @ 0x3517640] Error at MB: 833ime=00:02:50.00 bitrate=N/A dup=0 drop=3620    
[mpeg4 @ 0x3517640] marker does not match f_code
    Last message repeated 7 times
[mpeg4 @ 0x3517640] I cbpc damaged at 19 15
[mpeg4 @ 0x3517640] Error at MB: 784
[mpeg4 @ 0x3517640] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x3517640] I cbpc damaged at 37 30
[mpeg4 @ 0x3517640] Error at MB: 1567
Marker bit missing at 266309 of 372200 before time_increment in video packed header
Marker bit missing at 266315 of 372200 before vop_coding_type in video packed header
[mpeg4 @ 0x3517640] I cbpy damaged at 42 35
[mpeg4 @ 0x3517640] Error at MB: 1827
[mpeg4 @ 0x3517640] marker does not match f_code
    Last message repeated 10 times
[mpeg4 @ 0x3517640] illegal mb_num in video packet (2019 1900) 
[mpeg4 @ 0x3517640] marker does not match f_code
Marker bit missing at 333128 of 372200 before time_increment in video packed header
Marker bit missing at 333134 of 372200 before vop_coding_type in video packed header
[mpeg4 @ 0x3517640] 1. marker bit missing in 3. esc
[mpeg4 @ 0x3517640] Error at MB: 89
[mpeg4 @ 0x3517640] marker does not match f_code
    Last message repeated 12 times
Marker bit missing at 360667 of 372200 before time_increment in video packed header
[mpeg4 @ 0x3517640] ac-tex damaged at 24 27
[mpeg4 @ 0x3517640] Error at MB: 1401
[mpeg4 @ 0x3517640] concealing 1900 DC, 1900 AC, 1900 MV errors in I frame
[mpeg4 @ 0x351a860] header damaged
[mpeg4 @ 0x351da60] header damaged
[mpeg4 @ 0x3520d80] header damaged
Error while decoding stream #0:0: Operation not permitted
    Last message repeated 2 times
[mpeg4 @ 0x3520d80] illegal chroma format0:22:00.00 bitrate=N/A dup=0 drop=31052    
[mpeg4 @ 0x3520d80] only rectangular vol supported
Marker bit missing at 5044 of 20120 before time_increment_resolution
[mpeg4 @ 0x3520d80] 18 sprite_warping_points
[mpeg4 @ 0x3520d80] header damaged
[mpeg4 @ 0x3516ea0] header damaged
[mpeg4 @ 0x3517640] header damaged
[mpeg4 @ 0x351a860] header damaged
Error while decoding stream #0:0: Invalid data found when processing input
[mpeg4 @ 0x351da60] header damaged
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0x3520d80] only rectangular vol supported
Marker bit missing at 26825 of 28280 before fixed_vop_rate
[mpeg4 @ 0x3520d80] N-bit not supported
[mpeg4 @ 0x3520d80] quant precision 1
Marker bit missing at 26865 of 28280 in complexity estimation part 1
[mpeg4 @ 0x3520d80] reduced resolution VOP not supported
[mpeg4 @ 0x3520d80] header damaged
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0x3516ea0] only rectangular vol supported
Marker bit missing at 1762 of 554696 before fixed_vop_rate
Marker bit missing at 9858 of 554696 before fixed_vop_rate
Marker bit missing at 9873 of 554696 before width
Marker bit missing at 9901 of 554696 after height
[mpeg4 @ 0x3516ea0] Static Sprites not supported
Marker bit missing at 9918 of 554696 after sprite_width
Marker bit missing at 9932 of 554696 after sprite_height
Marker bit missing at 9946 of 554696 after sprite_left
Marker bit missing at 9960 of 554696 after sprite_top
[mpeg4 @ 0x3516ea0] 57 sprite_warping_points
[mpeg4 @ 0x3516ea0] Reverting picture dimensions change due to header decoding failure
[mpeg4 @ 0x3516ea0] header damaged
Error while decoding stream #0:0: Operation not permitted
    Last message repeated 1 times
[mpeg4 @ 0x3517640] Error at MB: 348
[mpeg4 @ 0x3517640] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x3517640] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
Error while decoding stream #0:0: Operation not permitted
Error while decoding stream #0:0: Invalid data found when processing input
[mpeg4 @ 0x3520d80] marker missing after first P partition at 0 38
[mpeg4 @ 0x3520d80] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
[mpeg4 @ 0x349bd20] has_b_frames is larger in decoder than demuxer 1 > 0.
If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)ac-tex damaged at 43 8
[mpeg4 @ 0x351a860] Error at MB: 451
[mpeg4 @ 0x351a860] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x351a860] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
[mpeg4 @ 0x351da60] ac-tex damaged at 37 7
[mpeg4 @ 0x351da60] Error at MB: 394
[mpeg4 @ 0x351da60] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x351da60] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
[mpeg4 @ 0x349bd20] has_b_frames is larger in decoder than demuxer 1 > 0.
If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)has_b_frames is larger in decoder than demuxer 1 > 0.                                                                                                                                                                                                        
If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)ac-tex damaged at 13 3

Attachments (1)

3LaSaletteLeSecret_cut.mov (2.3 MB) - added by cehoyos 2 years ago.

Change History (14)

comment:1 Changed 2 years ago by doublemax

Summary of the bug:

mplayer/ffplay plays the down below video - but I can not ffmpeg the video to a valid video.

How to reproduce:
Transcoding to anything (wmv/h264/...) produces a corrupt result.

wget http://doppelbauer.name/3LaSaletteLeSecret.mp4
/usr/local/bin/ffmpeg -i 3LaSaletteLeSecret.mp4 -r 0.1 -c:v mjpeg /tmp/images/%d.jpg

The first error is not an issue. The problem is the second one - which produces corrupt pictures.
Full output has about ~30 MB, so it is cuted.
Maybe the problem is a color change in the middle of the video.

ffmpeg version 2.8.4 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
  configuration: --prefix=/usr/local --enable-gpl --enable-version3 --enable-nonfree --enable-bzlib --enable-zlib --enable-openssl --enable-libx264 --enable-libfdk-aac --enable-libmp3lame --enable-libvpx --enable-libopus
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3497440] stream 0, timescale not set
[mjpeg @ 0x349d620] ignoring invalid SAR: 64/45                                                                                                                                                             
[mjpeg @ 0x349d620] Changeing bps to 8
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'queue-nu3yMP8yxFK-1.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    track           : 1
    comment         : www.dvdvideosoft.com
    date            : 2014
    encoder         : Lavf54.59.107
  Duration: 01:16:12.08, start: 0.023022, bitrate: 1696 kb/s
    Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 800x600 [SAR 4:3 DAR 16:9], 1500 kb/s, 24 fps, 24 tbr, 12288 tbn, 24 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 192 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 720x576, 90k tbr, 90k tbn, 90k tbc
[swscaler @ 0x34c5b80] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to '/tmp/images/%d.jpg':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    track           : 1
    comment         : www.dvdvideosoft.com
    date            : 2014
    encoder         : Lavf56.40.101
    Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 800x600 [SAR 4:3 DAR 16:9], q=2-31, 200 kb/s, 0.10 fps, 0.10 tbn, 0.10 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc56.60.100 mjpeg
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[mpeg4 @ 0x3517640] Error at MB: 833ime=00:02:50.00 bitrate=N/A dup=0 drop=3620    
[mpeg4 @ 0x3517640] marker does not match f_code
    Last message repeated 7 times
[mpeg4 @ 0x3517640] I cbpc damaged at 19 15
[mpeg4 @ 0x3517640] Error at MB: 784
[mpeg4 @ 0x3517640] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x3517640] I cbpc damaged at 37 30
[mpeg4 @ 0x3517640] Error at MB: 1567
Marker bit missing at 266309 of 372200 before time_increment in video packed header
Marker bit missing at 266315 of 372200 before vop_coding_type in video packed header
[mpeg4 @ 0x3517640] I cbpy damaged at 42 35
[mpeg4 @ 0x3517640] Error at MB: 1827
[mpeg4 @ 0x3517640] marker does not match f_code
    Last message repeated 10 times
[mpeg4 @ 0x3517640] illegal mb_num in video packet (2019 1900) 
[mpeg4 @ 0x3517640] marker does not match f_code
Marker bit missing at 333128 of 372200 before time_increment in video packed header
Marker bit missing at 333134 of 372200 before vop_coding_type in video packed header
[mpeg4 @ 0x3517640] 1. marker bit missing in 3. esc
[mpeg4 @ 0x3517640] Error at MB: 89
[mpeg4 @ 0x3517640] marker does not match f_code
    Last message repeated 12 times
Marker bit missing at 360667 of 372200 before time_increment in video packed header
[mpeg4 @ 0x3517640] ac-tex damaged at 24 27
[mpeg4 @ 0x3517640] Error at MB: 1401
[mpeg4 @ 0x3517640] concealing 1900 DC, 1900 AC, 1900 MV errors in I frame
[mpeg4 @ 0x351a860] header damaged
[mpeg4 @ 0x351da60] header damaged
[mpeg4 @ 0x3520d80] header damaged
Error while decoding stream #0:0: Operation not permitted
    Last message repeated 2 times
[mpeg4 @ 0x3520d80] illegal chroma format0:22:00.00 bitrate=N/A dup=0 drop=31052    
[mpeg4 @ 0x3520d80] only rectangular vol supported
Marker bit missing at 5044 of 20120 before time_increment_resolution
[mpeg4 @ 0x3520d80] 18 sprite_warping_points
[mpeg4 @ 0x3520d80] header damaged
[mpeg4 @ 0x3516ea0] header damaged
[mpeg4 @ 0x3517640] header damaged
[mpeg4 @ 0x351a860] header damaged
Error while decoding stream #0:0: Invalid data found when processing input
[mpeg4 @ 0x351da60] header damaged
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0x3520d80] only rectangular vol supported
Marker bit missing at 26825 of 28280 before fixed_vop_rate
[mpeg4 @ 0x3520d80] N-bit not supported
[mpeg4 @ 0x3520d80] quant precision 1
Marker bit missing at 26865 of 28280 in complexity estimation part 1
[mpeg4 @ 0x3520d80] reduced resolution VOP not supported
[mpeg4 @ 0x3520d80] header damaged
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0x3516ea0] only rectangular vol supported
Marker bit missing at 1762 of 554696 before fixed_vop_rate
Marker bit missing at 9858 of 554696 before fixed_vop_rate
Marker bit missing at 9873 of 554696 before width
Marker bit missing at 9901 of 554696 after height
[mpeg4 @ 0x3516ea0] Static Sprites not supported
Marker bit missing at 9918 of 554696 after sprite_width
Marker bit missing at 9932 of 554696 after sprite_height
Marker bit missing at 9946 of 554696 after sprite_left
Marker bit missing at 9960 of 554696 after sprite_top
[mpeg4 @ 0x3516ea0] 57 sprite_warping_points
[mpeg4 @ 0x3516ea0] Reverting picture dimensions change due to header decoding failure
[mpeg4 @ 0x3516ea0] header damaged
Error while decoding stream #0:0: Operation not permitted
    Last message repeated 1 times
[mpeg4 @ 0x3517640] Error at MB: 348
[mpeg4 @ 0x3517640] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x3517640] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
Error while decoding stream #0:0: Operation not permitted
Error while decoding stream #0:0: Invalid data found when processing input
[mpeg4 @ 0x3520d80] marker missing after first P partition at 0 38
[mpeg4 @ 0x3520d80] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
[mpeg4 @ 0x349bd20] has_b_frames is larger in decoder than demuxer 1 > 0.
If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)ac-tex damaged at 43 8
[mpeg4 @ 0x351a860] Error at MB: 451
[mpeg4 @ 0x351a860] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x351a860] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
[mpeg4 @ 0x351da60] ac-tex damaged at 37 7
[mpeg4 @ 0x351da60] Error at MB: 394
[mpeg4 @ 0x351da60] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x351da60] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
[mpeg4 @ 0x349bd20] has_b_frames is larger in decoder than demuxer 1 > 0.
If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)has_b_frames is larger in decoder than demuxer 1 > 0.                                                                                                                                                                                                        
If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)ac-tex damaged at 13 3

comment:2 in reply to: ↑ description Changed 2 years ago by cehoyos

Replying to doublemax:

mplayer/ffplay plays the down below video - but I can ffmpeg the video to a valid video.

I don't understand this sentence.

Please test current FFmpeg git head and provide command line including console output for this version.

comment:3 follow-up: Changed 2 years ago by doublemax

Yes, a typo - but I could not fix it.

The video plays with mplayer and ffplay - but if I try to transcode the video the result is corrupt (especially from minute 23:00).

The repeating error message is:

[mpeg4 @ 0x21fe35e0] concealing 1864 DC, 1864 AC, 1864 MV errors in P frame
[mpeg4 @ 0x316bd40] has_b_frames is larger in decoder than demuxer 1 > 0.
If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)has_b_frames is larger in decoder than demuxer 1 > 0.
If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)has_b_frames is larger in decoder than demuxer 1 > 0.
If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)I cbpy damaged at 0 5
[mpeg4 @ 0x21fe3f60] Error at MB: 255
[mpeg4 @ 0x21fe3f60] marker does not match f_code

Thanks a lot.

comment:4 in reply to: ↑ 3 Changed 2 years ago by cehoyos

Replying to doublemax:

The video plays with mplayer and ffplay

I cannot reproduce this;-(
Please test one of the two following commands and provide your complete, uncut console output so I can maybe understand the difference between our systems:

$ time ffplay -autoexit 3LaSaletteLeSecret.mp4
$ time mplayer 3LaSaletteLeSecret.mp4

I consider it rude that you did not follow my (imo simple) request to make this a valid ticket!

comment:5 follow-up: Changed 2 years ago by doublemax

@cehoyos
Thanks a lot for your answer - and sorry for my bad English.

This image shows the result of ffmpeg transcoding:
http://doppelbauer.name/output-sprite.jpg

The first third works - but the rest is corrupt.
The strange thing - mplayer and ffplay play the whole video.
But if I transcode the video with ffmpeg the first third works - the rest is corrupt.

Commandline:

/usr/local/bin/ffmpeg -i /tmp/3LaSaletteLeSecret.mp4.mp4 -f image2 -r 1 -vcodec mjpeg -vf scale=1068:600 /tmp/images/%d.jpg

Result:
http://doppelbauer.name/ffmpeg-output.txt

Thanks a lot,

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

Replying to doublemax:

The strange thing - mplayer and ffplay play the whole video.

Please elaborate by testing one (or both) of the command lines that I provided and post the console output here!

Merry Christmas!

comment:7 Changed 2 years ago by cehoyos

Were you able to test your sample with MPlayer or FFplay?

comment:8 Changed 2 years ago by doublemax

Hello cehoyos,

Thanks a lot for your answer!
To reproduce this issue:

mkdir /tmp/images
/usr/local/bin/ffmpeg -ss 21:30 -i http://doppelbauer.name/3LaSaletteLeSecret.mp4 -t 60 -r 0.1 -c:v mjpeg /tmp/images/%d.jpg

The first 3 images are fine - the last 3 images are corrupt.
I get tons of error messages on stderr.
But - all media players play the video without problems.

Thanks a lot + Merry Christmas!
Markus

comment:9 Changed 2 years ago by doublemax

Hello,

This is the shortest command line to reproduce this error:

/usr/local/bin/ffmpeg -ss 21:45 -i http://doppelbauer.name/3LaSaletteLeSecret.mp4 -t 1 -r 0.1 -c:v mjpeg /tmp/output.jpg

Output:

ffmpeg version 2.8.4 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
  configuration: --prefix=/usr/local --enable-gpl --enable-version3 --enable-nonfree --enable-bzlib --enable-zlib --enable-openssl --enable-libx264 --enable-libfdk-aac --enable-libmp3lame --enable-libvpx --enable-libopus
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x31f04a0] stream 0, timescale not set
[mjpeg @ 0x31fa760] ignoring invalid SAR: 64/45
[mjpeg @ 0x31fa760] Changeing bps to 8
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://doppelbauer.name/3LaSaletteLeSecret.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    track           : 1
    comment         : www.dvdvideosoft.com
    date            : 2014
    encoder         : Lavf54.59.107
  Duration: 01:16:12.08, start: 0.023022, bitrate: 1696 kb/s
    Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 800x600 [SAR 4:3 DAR 16:9], 1500 kb/s, 24 fps, 24 tbr, 12288 tbn, 24 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 192 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 720x576, 90k tbr, 90k tbn, 90k tbc
[swscaler @ 0x3223060] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to '/tmp/output.jpg':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    track           : 1
    comment         : www.dvdvideosoft.com
    date            : 2014
    encoder         : Lavf56.40.101
    Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 800x600 [SAR 4:3 DAR 16:9], q=2-31, 200 kb/s, 0.10 fps, 0.10 tbn, 0.10 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc56.60.100 mjpeg
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[mpeg4 @ 0x3275360] illegal chroma format
[mpeg4 @ 0x3275360] only rectangular vol supported
Marker bit missing at 5044 of 20120 before time_increment_resolution
[mpeg4 @ 0x3275360] 18 sprite_warping_points
[mpeg4 @ 0x3275360] header damaged
[mpeg4 @ 0x32786a0] header damaged
[mpeg4 @ 0x327b9c0] header damaged
[mpeg4 @ 0x327ece0] header damaged
Error while decoding stream #0:0: Invalid data found when processing input
[mpeg4 @ 0x32749e0] header damaged
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0x3275360] only rectangular vol supported
Marker bit missing at 26825 of 28280 before fixed_vop_rate
[mpeg4 @ 0x3275360] N-bit not supported
[mpeg4 @ 0x3275360] quant precision 1
Marker bit missing at 26865 of 28280 in complexity estimation part 1
[mpeg4 @ 0x3275360] reduced resolution VOP not supported
[mpeg4 @ 0x3275360] header damaged
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0x32786a0] only rectangular vol supported
Marker bit missing at 1762 of 554696 before fixed_vop_rate
Marker bit missing at 9858 of 554696 before fixed_vop_rate
Marker bit missing at 9873 of 554696 before width
Marker bit missing at 9901 of 554696 after height
[mpeg4 @ 0x32786a0] Static Sprites not supported
Marker bit missing at 9918 of 554696 after sprite_width
Marker bit missing at 9932 of 554696 after sprite_height
Marker bit missing at 9946 of 554696 after sprite_left
Marker bit missing at 9960 of 554696 after sprite_top
[mpeg4 @ 0x32786a0] 57 sprite_warping_points
[mpeg4 @ 0x32786a0] Reverting picture dimensions change due to header decoding failure
[mpeg4 @ 0x32786a0] header damaged
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0x327b9c0] Error at MB: 348
[mpeg4 @ 0x327b9c0] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x327b9c0] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
Error while decoding stream #0:0: Operation not permitted
    Last message repeated 1 times
Error while decoding stream #0:0: Invalid data found when processing input
[mpeg4 @ 0x3275360] marker missing after first P partition at 0 38
[mpeg4 @ 0x3275360] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
[mpeg4 @ 0x327ece0] ac-tex damaged at 43 8
[mpeg4 @ 0x327ece0] Error at MB: 451
[mpeg4 @ 0x327ece0] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x327ece0] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
[mpeg4 @ 0x32749e0] ac-tex damaged at 37 7
[mpeg4 @ 0x32749e0] Error at MB: 394
[mpeg4 @ 0x32749e0] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x32749e0] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
[mpeg4 @ 0x31fb640] has_b_frames is larger in decoder than demuxer 1 > 0.
If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)ac-tex damaged at 13 3
[mpeg4 @ 0x32786a0] Error at MB: 166
[mpeg4 @ 0x32786a0] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x32786a0] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
[mpeg4 @ 0x31fb640] has_b_frames is larger in decoder than demuxer 1 > 0.
If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)P cbpy damaged at 32 3
[mpeg4 @ 0x327b9c0] Error at MB: 185
[mpeg4 @ 0x327b9c0] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x327b9c0] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
[mpeg4 @ 0x31fb640] has_b_frames is larger in decoder than demuxer 1 > 0.
If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)frame=    1 fps=0.0 q=5.6 Lsize=N/A time=00:00:10.00 bitrate=N/A    
video:53kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

comment:10 Changed 2 years ago by cehoyos

Please understand that console output for FFmpeg 2.8.4 is useless even more so if posted twice, you would have to test current FFmpeg git head but this is not what I asked.

You wrote above several times that the sample you uploaded works fine with MPlayer and FFplay. I cannot reproduce this. Please test with one of the two commands I posted in comment:4 and if it works (as you claim) please provide the complete, uncut console output for the command you tested.

comment:11 Changed 2 years ago by doublemax

You are right - I get the same error message if I play the whole video.
But it works if I use the arrows to jump ahead...
Sorry for disturbing - I thought uploading this example could be helpful.

Changed 2 years ago by cehoyos

comment:12 Changed 2 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords asp added
  • Reproduced by developer set
  • Status changed from new to open
  • Summary changed from colorspace change to MPEG-4 asp corrupted after bitstream error
  • Version changed from unspecified to git-master

Decoding fails with WMP, QT, FFplay and MPlayer unless seeking is used to jump over the broken part. Playback with totem works fine here, it recovers after the error.

comment:13 Changed 2 years ago by doublemax

Hi cehoyos,
Thanks a lot for fixing the bug-report!

Note: See TracTickets for help on using tickets.