[FFmpeg-trac] #133(avcodec:new): CJPG files have chroma problems

FFmpeg trac at avcodec.org
Thu Apr 28 18:18:11 CEST 2011


#133: CJPG files have chroma problems
-------------------------+---------------------
  Reporter:  cehoyos     |      Owner:
      Type:  defect      |     Status:  new
  Priority:  minor       |  Component:  avcodec
   Version:  git-master  |   Keywords:
Blocked By:              |   Blocking:
Reproduced:  1           |   Analyzed:  0
-------------------------+---------------------
 (issue 777)
 CJPG files are decoded fine with mplayer -vc ijpg, they are mostly green
 with ffmpeg (and grey with mplayer -vc +ffmjpeg).

 The problem is that the image data is full of restart markers (FFDx) that
 make libavcodec fail to decode chroma planes (Kostya).
 {{{
 $ ffmpeg -i cvici005.avi -f null -
 ffmpeg version git-N-29466-g324640d, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on Apr 28 2011 11:21:10 with gcc 4.5.2
   configuration: --cc='/usr/local/gcc-4.5.2/bin/gcc -m32' --enable-gpl
   libavutil    51.  1. 0 / 51.  1. 0
   libavcodec   53.  1. 1 / 53.  1. 1
   libavformat  53.  0. 3 / 53.  0. 3
   libavdevice  53.  0. 0 / 53.  0. 0
   libavfilter   2.  1. 0 /  2.  1. 0
   libswscale    0. 13. 0 /  0. 13. 0
 [avi @ 0x8c8db20] non-interleaved AVI
 [mjpeg @ 0x8c8f9a0] overread 8
 Input #0, avi, from 'cvici005.avi':
   Duration: 00:00:26.09, start: 0.000000, bitrate: 3095 kb/s
     Stream #0.0: Video: mjpeg, yuvj420p, 320x240, 30 tbr, 30 tbn, 30 tbc
 [buffer @ 0x8c95e60] w:320 h:240 pixfmt:yuvj420p
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf53.0.3
     Stream #0.0: Video: rawvideo, yuvj420p, 320x240, q=2-31, 200 kb/s, 90k
 tbn, 30 tbc
 Stream mapping:
   Stream #0.0 -> #0.0
 Press [q] to stop encoding
 [mjpeg @ 0x8c8f9a0] overread 8
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=2
 [mjpeg @ 0x8c8f9a0] overread 8
     Last message repeated 2 times
 [mjpeg @ 0x8c8f9a0] error count: 64
 [mjpeg @ 0x8c8f9a0] error y=0 x=1
 [mjpeg @ 0x8c8f9a0] overread 8
     Last message repeated 4 times
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=1
 [mjpeg @ 0x8c8f9a0] overread 8
     Last message repeated 6 times
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=1
 [mjpeg @ 0x8c8f9a0] overread 8
     Last message repeated 1 times
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=1
 [mjpeg @ 0x8c8f9a0] overread 8
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=1
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=1
 [mjpeg @ 0x8c8f9a0] overread 8
     Last message repeated 3 times
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=5
 [mjpeg @ 0x8c8f9a0] overread 8
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=1
 [mjpeg @ 0x8c8f9a0] overread 8
     Last message repeated 1 times
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=0
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=2
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=2
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=0
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=1
 [mjpeg @ 0x8c8f9a0] error count: 67
 [mjpeg @ 0x8c8f9a0] error y=0 x=0
 [mjpeg @ 0x8c8f9a0] overread 8
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=0
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=1
 [mjpeg @ 0x8c8f9a0] error count: 268435461
 [mjpeg @ 0x8c8f9a0] error y=0 x=0
 [mjpeg @ 0x8c8f9a0] overread 8
     Last message repeated 1 times
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=2
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=1
 [mjpeg @ 0x8c8f9a0] mjpeg_decode_dc: bad vlc: 0:0 (0x8c9fa80)
 [mjpeg @ 0x8c8f9a0] error dc
 [mjpeg @ 0x8c8f9a0] error y=0 x=1
 frame=  782 fps=  0 q=0.0 Lsize=      -0kB time=26.07 bitrate=
 -0.0kbits/s dup=119 drop=0    ^M
 video:0kB audio:0kB global headers:0kB muxing overhead -inf%
 }}}

-- 
Ticket URL: <https://avcodec.org/trac/ffmpeg/ticket/133>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list