[FFmpeg-trac] #9672(undetermined:new): ffmpeg not writing ICC profiles in images
FFmpeg
trac at avcodec.org
Tue Mar 1 22:55:19 EET 2022
#9672: ffmpeg not writing ICC profiles in images
-------------------------------------+-------------------------------------
Reporter: Cosmin | Type: defect
Stejerean |
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
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.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9672>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list