[FFmpeg-devel] [PATCH] avformat/movenc: always write a colr atom

Dave Rice dave at dericed.com
Tue Jul 16 18:41:52 EEST 2019


Hi James,

> On Jul 16, 2019, at 9:47 AM, James Almer <jamrial at gmail.com> wrote:
> 
> -    { "write_colr", "Write colr atom (Experimental, may be renamed or changed, do not use from scripts)", 0, AV_OPT_TYPE_CONST, {.i64 = FF_MOV_FLAG_WRITE_COLR}, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM, "movflags" },

The comment said specifically not to use this option in scripts; however, there were ffmpeg users (I admit myself as one) who wanted both to use scripts and write valid QuickTime files with colr data. I’d suggest permitting the option to remain but to change the default behavior from disabled to enabled. If I understand correctly, after this patch, encoding with `-movflags write_colr` would cause ffmpeg to fail with an error from the mov muxer.

Dave



More information about the ffmpeg-devel mailing list