[FFmpeg-trac] #9672(undetermined:open): ffmpeg not writing ICC profiles in images
FFmpeg
trac at avcodec.org
Sat Apr 23 23:04:34 EEST 2022
#9672: ffmpeg not writing ICC profiles in images
-------------------------------------+-------------------------------------
Reporter: Cosmin | Owner: haasn
Stejerean |
Type: defect | Status: open
Priority: normal | Component:
| undetermined
Version: unspecified | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by haasn):
As of 5cfeaeef0c2e0970f64d3188375a525c17f4621b you can now also generate
ICC profiles from scratch, using a new video filter, vf_iccgen. (Requires
ffmpeg built with support for lcms2)
In the case you describe (i.e. transcoding a video with known primaries)
you can simply add a `-vf iccgen` somewhere in your video chain. It will
automatically generate an ICC profile for the tagged video color space.
(And is, by default, a no-op for files which already have embedded ICC
profiles in them)
For the example in the OP, you would either need to manually tag the video
stream (`vf_setparams` or using input options), or specify the explicit
color space you want as options to `vf_iccgen`.
I may reconsider my opinion on whether or not the png/jpeg encoders should
automatically generate ICC profiles on encoding, but for the time being I
think a video filter is a good compromise.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9672#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list