[FFmpeg-devel] [PATCH] avformat/flvenc: allow to write qualifying metadata as number

Anton Khirnov anton at khirnov.net
Tue Feb 14 12:05:25 EET 2023


Quoting Gyan Doshi (2023-02-11 12:02:51)
> The FLV format can store metadata as numbers which are used and handled
> by many streaming platforms.
> 
> Now, metadata values can be sent as AMF Number type if
> 1) tag key starts with "num_"
> 2) value is scanned and can be represented as a double.
> 
> Written tag will have "num_" prefix removed if written as AMF Number.

Using the normal metadata dict for structured data seems hacky to me.
Wouldn't it be better to add a private dict-type muxer option for this?

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list