Opened 4 years ago

Closed 4 years ago

#2040 closed defect (fixed)

mjpeg enc yuvj444p: broken output

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

Description

maybe because width (the same problem happens with height) is not dividable by 16

C:\>ffmpeg -i 642.png out.jpg
ffmpeg version N-47909-g7973a07 Copyright (c) 2000-2012 the FFmpeg developers
  built on Dec 17 2012 02:36:52 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. 12.100 / 52. 12.100
  libavcodec     54. 80.100 / 54. 80.100
  libavformat    54. 49.102 / 54. 49.102
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 27.102 /  3. 27.102
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, image2, from '642.png':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, rgb24, 642x480 [SAR 2835:2835 DAR 107:80], 25 tbr,
25 tbn, 25 tbc
Output #0, image2, to 'out.jpg':
  Metadata:
    encoder         : Lavf54.49.102
    Stream #0:0: Video: mjpeg, yuvj444p, 642x480 [SAR 1:1 DAR 107:80], q=2-31, 2
00 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (png -> mjpeg)
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=5.7 Lsize=       0kB time=00:00:00.04 bitrate=   0.0kbits/
s
video:47kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000000%

Attachments (1)

642.png (502.6 KB) - added by ami_stuff 4 years ago.

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by ami_stuff

comment:1 follow-up: Changed 4 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords mjpeg added

Isn't this a duplicate of ticket #1990?

comment:2 in reply to: ↑ 1 Changed 4 years ago by ami_stuff

Replying to cehoyos:

Isn't this a duplicate of ticket #1990?

Not exactly, now jpeg created by ffmpeg decodes in other apps (that was not the case in #1990), but the output is broken for sizes not dividable (probably) by 16 (640x480/ 1024x768 etc. decodes ok).

Version 1, edited 4 years ago by ami_stuff (previous) (next) (diff)

comment:3 Changed 4 years ago by cehoyos

  • Keywords regression added
  • Priority changed from normal to important
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

The output image looks very broken with ffplay, ImageMagick? and Gimp, from a user's perspective this is a regression.

$ ffmpeg -i tests/lena.pnm -s 241x241 out.jpg
ffmpeg version N-47937-g85e6f6d Copyright (c) 2000-2012 the FFmpeg developers
  built on Dec 18 2012 00:11:55 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 12.100 / 52. 12.100
  libavcodec     54. 80.100 / 54. 80.100
  libavformat    54. 49.102 / 54. 49.102
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 27.102 /  3. 27.102
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, image2, from 'tests/lena.pnm':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: ppm, rgb24, 256x256, 25 tbr, 25 tbn, 25 tbc
Output #0, image2, to 'out.jpg':
  Metadata:
    encoder         : Lavf54.49.102
    Stream #0:0: Video: mjpeg, yuvj444p, 241x241, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (ppm -> mjpeg)
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.04 bitrate=   0.0kbits/s
video:15kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000000%

comment:4 Changed 4 years ago by michael

  • Resolution set to fixed
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.