Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#855 closed defect (fixed)

ljpeg: support correctly 8/16 bit grayscale

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

Description

C:\>ffmpeg -i 8.jpg
ffmpeg version N-36193-gf514695, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 26 2011 17:50:37 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 33.100 / 51. 33.100
  libavcodec     53. 48.100 / 53. 48.100
  libavformat    53. 28.100 / 53. 28.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 54.100 /  2. 54.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
  libpostproc    51.  2.100 / 51.  2.100
[mjpeg @ 02645B60] mjpeg_decode_dc: bad vlc: 0:0 (020E9A68)
Input #0, image2, from '8.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, gray, 640x480 [SAR 96:96 DAR 4:3], 25 tbr, 25 tbn
, 25 tbc
At least one output file must be specified
C:\>ffmpeg -i 16.jpg
ffmpeg version N-36193-gf514695, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 26 2011 17:50:37 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 33.100 / 51. 33.100
  libavcodec     53. 48.100 / 53. 48.100
  libavformat    53. 28.100 / 53. 28.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 54.100 /  2. 54.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
  libpostproc    51.  2.100 / 51.  2.100
[mjpeg @ 02645B60] mjpeg_decode_dc: bad vlc: 0:0 (020E9A68)
Input #0, image2, from '16.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, gray, 640x480 [SAR 96:96 DAR 4:3], 25 tbr, 25 tbn
, 25 tbc
At least one output file must be specified

Attachments (4)

8.jpg (191.0 KB) - added by ami_stuff 5 years ago.
16.jpg (507.1 KB) - added by ami_stuff 5 years ago.
12_line.jpg (305.5 KB) - added by ami_stuff 5 years ago.
16_line.jpg (468.3 KB) - added by ami_stuff 5 years ago.

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by ami_stuff

Changed 5 years ago by ami_stuff

comment:1 Changed 5 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords mjpeg ljpeg added
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

comment:2 Changed 5 years ago by michael

  • Resolution set to fixed
  • Status changed from open to closed

my patchset (see fmpeg-dev) fixes this too
ill commit it soon

comment:3 Changed 5 years ago by ami_stuff

Thanks for your work, everything works great except one problem:

there is a one pixel vertical line at the right side of the output when 12/16bpp file have odd width

ffmpeg -i 12_line.jpg out.tif

Changed 5 years ago by ami_stuff

Changed 5 years ago by ami_stuff

Note: See TracTickets for help on using tickets.