Opened 11 years ago

Closed 11 years ago

Last modified 4 years ago

#3516 closed defect (fixed)

mjpeg: wrong colors (CMYK with subsampling)

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

Description

attached file decodes with wrong colors

C:\>ffmpeg3 -i YCbCrK.jpg out.bmp
ffmpeg version 2.2.git-0f714ab Copyright (c) 2000-2014 the FFmpeg developers
  built on Mar 31 2014 22:26:54 with gcc 4.6.2 (GCC)
  configuration: --disable-ffprobe --disable-pthreads --enable-gpl
  libavutil      52. 70.100 / 52. 70.100
  libavcodec     55. 55.106 / 55. 55.106
  libavformat    55. 36.100 / 55. 36.100
  libavdevice    55. 11.100 / 55. 11.100
  libavfilter     4.  3.100 /  4.  3.100
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
[mjpeg @ 01d76580] Warning: not compiled with thread support, using thread emula
tion
Input #0, image2, from 'YCbCrK.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuva420p(pc), 1024x768, 25 tbr, 25 tbn, 25 tbc
[bmp @ 01d78c00] Warning: not compiled with thread support, using thread emulati
on
[mjpeg @ 01d76580] Warning: not compiled with thread support, using thread emula
tion
Output #0, image2, to 'out.bmp':
  Metadata:
    encoder         : Lavf55.36.100
    Stream #0:0: Video: bmp, bgra, 1024x768, 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
frame=    1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A
video:3072kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead: 586396112781312.000000%

Attachments (1)

YCbCrK.jpg (321.4 KB ) - added by ami_stuff 11 years ago.

Download all attachments as: .zip

Change History (5)

by ami_stuff, 11 years ago

Attachment: YCbCrK.jpg added

comment:1 by Michael Niedermayer, 11 years ago

Reproduced by developer: set
Resolution: fixed
Status: newclosed

comment:2 by Carl Eugen Hoyos, 11 years ago

Component: undeterminedavcodec
Keywords: mjpeg added
Version: unspecifiedgit-master

comment:3 by Carl Eugen Hoyos, 6 years ago

Keywords: cmyk added

comment:4 by Balling, 4 years ago

And this YCCK does not introduce such a problem. Strange. Maybe this patch introduced this problem?

Note: See TracTickets for help on using tickets.