Opened 12 years ago

Closed 12 years ago

Last modified 12 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 12 years ago.
Test_442.jpg (136.3 KB ) - added by ami_stuff 12 years ago.
subsamples.jpg (30.5 KB ) - added by ami_stuff 12 years ago.

Download all attachments as: .zip

Change History (10)

by ami_stuff, 12 years ago

Attachment: Test_421.jpg added

by ami_stuff, 12 years ago

Attachment: Test_442.jpg added

comment:1 by Carl Eugen Hoyos, 12 years ago

Component: undeterminedavcodec
Priority: normalwish
Reproduced by developer: set
Status: newopen
Type: defectenhancement
Version: unspecifiedgit-master

Is there also a "441" format?

comment:2 by Carl Eugen Hoyos, 12 years ago

Keywords: tif added
Summary: swscale: add support for YUV421 & YUV442tiff: add support for YUV421 & YUV442

comment:3 by Carl Eugen Hoyos, 12 years ago

Keywords: jpg added; tif removed
Summary: tiff: add support for YUV421 & YUV442jpg: add support for YUV421 & YUV442

comment:4 by ami_stuff, 12 years ago

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

comment:5 by Carl Eugen Hoyos, 12 years ago

Keywords: mjpeg yuv442 yuv421 added; jpg removed
Resolution: fixed
Status: openclosed

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

by ami_stuff, 12 years ago

Attachment: subsamples.jpg added

comment:6 by ami_stuff, 12 years ago

@cehoyos

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

comment:7 by Carl Eugen Hoyos, 12 years ago

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.