Opened 5 years ago

Closed 5 years ago

#2003 closed defect (fixed)

jpeg: support restart interval in rows for progressive

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

Description

attached image was created with:

cjpeg -targa -restart 1 -progressive test.tga >test.jpg

and decodes incorrectly

without "-progressive" switch output jpeg is decoded correctly by ffmpeg

C:\>ffmpeg -i test.jpg out.bmp
ffmpeg version N-47325-gb90e795 Copyright (c) 2000-2012 the FFmpeg developers
  built on Dec  1 2012 02:23:25 with gcc 4.5.0 (GCC) 20100414 (Fedora MinGW 4.5.
0-1.fc14)
  configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm -lpthread' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snap
shots/build/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/s
napshots/build/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3
--enable-nonfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-
libvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      52. 10.100 / 52. 10.100
  libavcodec     54. 78.100 / 54. 78.100
  libavformat    54. 41.100 / 54. 41.100
  libavdevice    54.  3.101 / 54.  3.101
  libavfilter     3. 23.104 /  3. 23.104
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.101 /  0. 17.101
  libpostproc    52.  2.100 / 52.  2.100
[mjpeg @ 0x1eec980] error count: 268435456
[mjpeg @ 0x1eec980] error y=1 x=0
[mjpeg @ 0x1eec980] error count: 268435456
[mjpeg @ 0x1eec980] error y=1 x=0
[mjpeg @ 0x1eec980] error count: 268435456
[mjpeg @ 0x1eec980] error y=3 x=48
[mjpeg @ 0x1eec980] error count: 268435461
[mjpeg @ 0x1eec980] error y=1 x=115
[mjpeg @ 0x1eec980] error count: 268435462
[mjpeg @ 0x1eec980] error y=1 x=0
[mjpeg @ 0x1eec980] error count: 268435456
[mjpeg @ 0x1eec980] error y=1 x=0
[mjpeg @ 0x1eec980] error count: 268435457
[mjpeg @ 0x1eec980] error y=1 x=0
[mjpeg @ 0x1eec980] error count: 268435456
[mjpeg @ 0x1eec980] error y=4 x=113
Input #0, image2, from 'test.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj420p, 1024x768 [SAR 1:1 DAR 4:3], 25 tbr, 25
tbn, 25 tbc
Output #0, image2, to 'out.bmp':
  Metadata:
    encoder         : Lavf54.41.100
    Stream #0:0: Video: bmp, bgr24, 1024x768 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s
, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg -> bmp)
Press [q] to stop, [?] for help
[mjpeg @ 0x1eec980] error count: 268435456
[mjpeg @ 0x1eec980] error y=1 x=0
[mjpeg @ 0x1eec980] error count: 268435456
[mjpeg @ 0x1eec980] error y=1 x=0
[mjpeg @ 0x1eec980] error count: 268435456
[mjpeg @ 0x1eec980] error y=3 x=48
[mjpeg @ 0x1eec980] error count: 268435461
[mjpeg @ 0x1eec980] error y=1 x=115
[mjpeg @ 0x1eec980] error count: 268435462
[mjpeg @ 0x1eec980] error y=1 x=0
[mjpeg @ 0x1eec980] error count: 268435456
[mjpeg @ 0x1eec980] error y=1 x=0
[mjpeg @ 0x1eec980] error count: 268435457
[mjpeg @ 0x1eec980] error y=1 x=0
[mjpeg @ 0x1eec980] error count: 268435456
[mjpeg @ 0x1eec980] error y=4 x=113
frame=    1 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.04 bitrate=   0.0kbits/
s
video:2304kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000000
%

Attachments (1)

test.jpg (111.5 KB) - added by ami_stuff 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by ami_stuff

comment:1 Changed 5 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords mjpeg 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 cehoyos

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

Fixed by Michael.

Note: See TracTickets for help on using tickets.