ffmpeg not writing ICC profiles in images
|Reported by:||Cosmin Stejerean||Owned by:||haasn|
|Cc:||mirh, haasn||Blocked By:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
For image output formats, primarily JPEG (but PNG and WebP would also be nice to have) it appears the latest FFmpeg 5 does not support writing ICC profiles, even with color primaries/space/trc parameters are specified.
Example: this should produce JPEG in the sRGB color space but no ICC profile is found in the output. This can be confirmed by running exiftool on the output
ffmpeg -filter_complex color=red:s=640x480 -frames 1 -q:v 1 -color_primaries bt709 -colorspace bt470bg -color_range pc -color_trc iec61966-2-1 -pix_fmt yuv420p red.jpg
This should output JPEG in Display P3 color space
ffmpeg -filter_complex color=red:s=640x480 -frames 1 -q:v 1 -color_primaries smpte432 -colorspace bt470bg -color_range pc -color_trc iec61966-2-1 -pix_fmt yuv420p red.jpg
Separately reading color information from ICC profiles is also not working as expected, but will file a separate ticket for that.