[FFmpeg-devel] [PATCH v2 0/6] [RFC] initial support for BCP47 language tags

Marth64 marth64 at proxyid.net
Wed Nov 27 08:09:21 EET 2024


It would be nice if FFmpeg could have some concept of locale; for example,
in Matroska, geographical region and writing script metadata can coexist
with the language code using LanguageBCP47 element (think "en-US", "fr-FR").

This is particularly useful to distinguish between streams with same
language but regional variations, or endangered/diaspora dialects that
are good to have identified. There are formats that do allow setting the data.

This patch set introduces the concept by adding basic BCP47 parsing in avlanguage,
support for the element in the Matroska demuxer, and support for the element
in the Matroska muxer. The special tag is known as "language_bcp47".

Signed-off-by: Marth64 <marth64 at proxyid.net>


More information about the ffmpeg-devel mailing list