[FFmpeg-trac] #11309(undetermined:new): ffmpeg 7.1 fails to write color_primaries and color_trc
FFmpeg
trac at avcodec.org
Tue Nov 19 22:24:37 EET 2024
#11309: ffmpeg 7.1 fails to write color_primaries and color_trc
-------------------------------------+-------------------------------------
Reporter: wywh | Owner: (none)
Type: defect | Status: new
Priority: normal | Component:
| undetermined
Version: 7.1 | Resolution:
Keywords: | Blocked By:
color_primaries color_trc |
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by jeeb):
Replying to [comment:4 Leo Izen]:
> Seems to me that it's not encoder or muxer dependent. I tried with
mpeg4+mp4, ffv1+mkv, and reproduced it on Linux with git master.
>
> It does appear that the tags that are already set in the stream are
still written.
I did note the same, although I don't blame you not reading my long
sentences :)
> This seems to be a general issue regarding when/where these global
options get applied, as you can see that the output definition no longer
has these color values and if you test other encoders that have color
value support you will see those also not writing things out.
My most likely guess is that the AVOptions are applied much earlier in the
process (see around `fftools/cmdutils.c: av_log(NULL, AV_LOG_DEBUG, "
matched as AVOption '%s' with "`), before `fftools/ffmpeg_enc.c::enc_open`
gets called. This would also explain why input overriding works, as
AVFrame information passing is only done for the encoder. This is more or
less verified by commenting out one of the lines in that function setting
any of the parameters you are overriding on command line on the output
definition side, as that "magically" makes the value propagate.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11309#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list