oggdemux: Strips free-form name in language tags
@hadess
Submitted by Bastien Nocera Link to original bug (#615064)
Description
There's some free-form strings associated with the audio tracks in:
http://www.gnome.org/~hadess/ogg-crasher-subtitles-languages.ogg
Currently, we see in Totem "English" and "English #2
".
We should still be able to access the free-form strings ("English" and "Commentary by Nicholas Meyer").
$ ogginfo locate ogg-crasher-subtitles-languages.ogg
Processing file "/home/data/test-files/movies/ogg-crasher-subtitles-languages.ogg"...
New logical stream (#1 (closed), serial: 00000001): type unknown
New logical stream (#2 (moved), serial: 00000002): type vorbis
New logical stream (#3 (closed), serial: 00000003): type vorbis
Note: Stream 4 has serial number 0, which is legal but may cause problems with some tools.
New logical stream (#4 (closed), serial: 00000000): type unknown
Vorbis headers parsed for stream 2, information follows...
Version: 0
Vendor: ogmtools v1.0.3
Channels: 2
Rate: 48000
Nominal bitrate: 160.003000 kb/s
Upper bitrate not set
Lower bitrate not set
User comments section follows...
LANGUAGE=English [eng]
Vorbis headers parsed for stream 3, information follows...
Version: 0
Vendor: ogmtools v1.0.3
Channels: 2
Rate: 48000
Nominal bitrate: 112.001000 kb/s
Upper bitrate not set
Lower bitrate not set
User comments section follows...
LANGUAGE=Commentary by Nicholas Meyer [eng]
Warning: EOS not set on stream 1
Warning: EOS not set on stream 2
Vorbis stream 2:
Total data length: 407155 bytes
Playback length: 0m:23.121s
Average bitrate: 140.875959 kb/s
Warning: EOS not set on stream 3
Vorbis stream 3:
Total data length: 286017 bytes
Playback length: 0m:23.294s
Average bitrate: 98.225746 kb/s
Warning: EOS not set on stream 4
gst-launch-0.10 -t uridecodebin uri=file://locate ogg-crasher-subtitles-languages.ogg
! fakesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
FOUND TAG : found by element "oggdemux0".
container format: Ogg
FOUND TAG : found by element "vorbisdec0".
language code: eng
encoder: ogmtools v1.0.3
encoder version: 0
audio codec: Vorbis
nominal bitrate: 160003
bitrate: 160003
FOUND TAG : found by element "vorbisdec1".
language code: eng
encoder: ogmtools v1.0.3
encoder version: 0
audio codec: Vorbis
nominal bitrate: 112001
bitrate: 112001
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 1018537460 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...