mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 02:20:07 +01:00
Add a public API for producing RFC 4281/6381 codecs trings for MIME types. This can be required for providing alternative video files to a web browser, letting the browser pick the best file it supports. Such strings also allow querying a browser whether it supports a certain codec combination. Finally, if implementing a DASH/HLS segmenter outside of libavformat, one also has to generate such strings. Generating such strings for H264/AAC is very simple, but for more modern codecs, it can require a lot of nontrivial codec specific parsing of extradata. As libavformat already implements this, expose it for users as well. The old, internal function ff_make_codec_str is kept and used by the HLS and DASH muxers; the old function takes a logging context which can be used for logging auxillary info about how the string generation worked out.
9.5 KiB
9.5 KiB