Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#787 closed enhancement (fixed)

jpg: add support for YUV421 & YUV442

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

Description

maybe easy

C:\>ffmpeg -i Test_421.jpg
ffmpeg version N-35892-gc0bea18, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 17 2011 13:52:52 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 --disable-demuxer=sbg
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 46. 0 / 53. 46. 0
  libavformat  53. 26. 0 / 53. 26. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[mjpeg @ 02625B60] Unhandled pixel format 0x22211100
[image2 @ 020C2320] Could not find codec parameters (Video: mjpeg, 1023x767 [SAR
 96:96 DAR 1023:767])
Test_421.jpg: could not find codec parameters
C:\>ffmpeg -i Test_442.jpg
ffmpeg version N-35892-gc0bea18, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 17 2011 13:52:52 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 --disable-demuxer=sbg
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 46. 0 / 53. 46. 0
  libavformat  53. 26. 0 / 53. 26. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[mjpeg @ 02625B60] Unhandled pixel format 0x12121100
[image2 @ 020C2320] Could not find codec parameters (Video: mjpeg, 1023x767 [SAR
 96:96 DAR 1023:767])
Test_442.jpg: could not find codec parameters

Attachments (3)

Test_421.jpg (120.7 KB) - added by ami_stuff 5 years ago.
Test_442.jpg (136.3 KB) - added by ami_stuff 5 years ago.
subsamples.jpg (30.5 KB) - added by ami_stuff 5 years ago.

Download all attachments as: .zip

Change History (10)

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
  • Priority changed from normal to wish
  • Reproduced by developer set
  • Status changed from new to open
  • Type changed from defect to enhancement
  • Version changed from unspecified to git-master

Is there also a "441" format?

comment:2 Changed 5 years ago by cehoyos

  • Keywords tif added
  • Summary changed from swscale: add support for YUV421 & YUV442 to tiff: add support for YUV421 & YUV442

comment:3 Changed 5 years ago by cehoyos

  • Keywords jpg added; tif removed
  • Summary changed from tiff: add support for YUV421 & YUV442 to jpg: add support for YUV421 & YUV442

comment:4 Changed 5 years ago by ami_stuff

no, only these two (+ CMYK & YCbCrK which are not supported by FFmpeg).

comment:5 Changed 5 years ago by cehoyos

  • Keywords mjpeg yuv442 yuv421 added; jpg removed
  • Resolution set to fixed
  • Status changed from open to closed

Should be fixed by "upscaling" the image to a supported colourspace.

Changed 5 years ago by ami_stuff

comment:6 Changed 5 years ago by ami_stuff

@cehoyos

If you want me to upload not supported supsamples then just tell.

comment:7 Changed 5 years ago by cehoyos

If any of the samples attached here are not decoded correctly, please reopen.
If you have other samples that FFmpeg cannot decode, please open a new ticket (and attach the unsupported samples).

Note: See TracTickets for help on using tickets.