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

Måns Rullgård mans
Fri Feb 1 00:33:46 CET 2008

Reimar D?ffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de> writes:

> Hello,
> 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.

1. http://xiph.org/vorbis/doc/v-comment.html
2. http://reactor-core.org/ogg-tagging.html
3. http://www.gophernet.org/articles/vorbiscomment/
4. http://lists.xiph.org/pipermail/vorbis/2001-March/001857.html

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list