[FFmpeg-devel] [PATCH] Read ogg stream language

Reimar Döffinger Reimar.Doeffinger
Fri Feb 1 22:18:52 CET 2008

On Thu, Jan 31, 2008 at 11:33:46PM +0000, M?ns Rullg?rd wrote:
> Reimar D?ffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de> writes:
> > attached patch makes vorbis_comment (which lacks a ff_ prefix btw) parse
> > the language tag into AVStream.language (if a mapping is known).
> > It also adds vorbis comment parsing to oggparseogm.c (I would apply as a
> > second step).
> > The code is probably improvable, the mapping list even more so.
> The official specification[1] makes no mention of a LANGUAGE field.
> Of the unofficial field extension specs [2,3,4] I was able to easily
> find, only [4] lists LANGUAGE, and it does not detail how the language
> is to be specified.  It is also merely a suggestion posted to a
> mailing list, where it was met with little enthusiasm.
> I know there are Ogg files around with a LANGUAGE tag, but I've been
> unable to find *any* documentation on its intended use or
> interpretation.  If you know something I don't, please enlighten me.

The MPlayer implementation was discussed here:
but there are not many details either.

More information about the ffmpeg-devel mailing list