> I would recommend avoid using PIX_FMT_YUV420P for jpeg files, instead > convert straight from RGB to PIX_FMT_YUVJ420P. > YUV420P has a smaller dynamic range than YUVJ420P and is only useful for > video. > > You may even want to consider using a 422 codec rather than a 420 (or even > 444), depending on how high quality you want your jpeg.
Thanks a lot, I'll implement your recommendations. By the way, in the pixfmt.h I see the following comment: PIX_FMT_YUVJ444P, ///< planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV444P and setting color_range What does it mean exactly? Should I use PIX_FMT_YUV444P as a destination format when encoding to jpeg? _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
