Errors decoding certain sampling factors
JPEG decoder and detailed analysis
Brought to you by:
calvinhass
Originally posted on ImpulseAdventure.com by AllenKK:
(Comment #14146 on 2014/05/21)
FFMPEG full scale JPEG YUV 422, 444 cannnot be decoded successful but 420 works. You can generate the JPEG file in:
ffmpeg -i my.avi -ss 00:00:10.000 -f image2 -vframes 1 -pix_fmt yuvj422 out.jpg
You can also try this:
https://trac.ffmpeg.org/raw-attachment/ticket/143/yuvj422.jpg
I believe the issue involves the use of chroma subsampling factors that have multiple data units per MCU in components other than the first (ie. luminance). This is likely due to a simplification in the way chroma subsampling is expanded in the current code.
Sampling factors from above referenced file:
Last edit: Calvin Hass 2014-05-26
Chroma subsampling code has now been rewritten in version 1.6.6 and addresses this issue.