[ogg-dev] how to set default audio track?

Silvia Pfeiffer silvia at silvia-pfeiffer.de
Fri Nov 26 04:15:24 PST 2010

Typically video players will play back the last audio track in a Ogg
Theora file, because it is the last one that they see.
There is no way to specify which is the "default" audio track and it
would not make sense anyway. If you are a German speaker, your
"default" would be the German audio track - if you are a native
English speaker, it would be the English audio track. So, it's not
possible to say which should be the default. Such a thing only makes
sense in the context of a Web page that is clearly written in one
language only. It's much more useful for your machine environment to
understand what tracks are available. Maybe future versions of media
players will actually do so and then choose your "default" track based
on the language settings of your user login.


On Fri, Nov 26, 2010 at 9:28 PM, Alexey Fisher
<bug-track at fisher-privat.net> wrote:
> Hallo oggs,
> i googled it but still can't find any answer: how can i set default
> audio track?
> I transcode my dvds to ogg, i use gst-launch for it:
> gst-launch filesrc location=stream.dump ! mpegpsdemux name=demux \
> oggmux name=mux ! filesink location=out.ogg \
> demux.audio_80 ! a52dec mode=2 ! audioconvert ! audioresample !
> audio/x-raw-float,rate=44100,channels=2 ! audiorate ! \
> taginject tags="language-code=eng" ! vorbisenc ! queue ! mux. \
> demux.audio_81 ! a52dec mode=2 ! audioconvert ! audioresample !
> audio/x-raw-float,rate=44100,channels=2 ! audiorate ! \
> taginject tags="language-code=ger" ! vorbisenc ! queue ! mux. \
> demux.video_e0 ! mpeg2dec ! videocrop top=76 bottom=74 !
> ffmpegcolorspace ! videorate ! theoraenc quality=55 ! queue ! mux.
> on each vorbis track i set tag LANGUAGE= , it works fine. But i wont to
> set default track or language. Are there any way to do it? at least with
> oggz tools?
> --
> Regards,
>        Alexey
> _______________________________________________
> ogg-dev mailing list
> ogg-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/ogg-dev

More information about the ogg-dev mailing list