GNOME Bugzilla – Bug 625630
Totem ignores default subtitle flag on mkv files
Last modified: 2011-06-12 18:39:38 UTC
It seems totem does not currently respect the 'default' flag on subtitle tracks in mkv files, and instead defaults to showing the first subtitle track. Expected behavior would be: - If a subtitle track has the 'default' flag set, automatically switch subtitles on and load this track - If no subtitle track has the default flag, switch subtitles off. Unfortunately none of the debug logs give any hint as to what's happening here: nyall@bollo:~/Desktop$ totem --debug (totem:9367): Totem-DEBUG: Received SaveYourself(SmSaveLocal, !Shutdown, SmInteractStyleNone, !Fast) in state idle (totem:9367): Totem-DEBUG: Setting initial properties (totem:9367): Totem-DEBUG: Sending SaveYourselfDone(True) for initial SaveYourself (totem:9367): Totem-DEBUG: Received SaveComplete message in state save-yourself-done (totem:9367): Totem-DEBUG: Init of Python module (totem:9367): Totem-DEBUG: Registering Python plugin instance: BBCViewer+TotemPythonPlugin (totem:9367): Totem-DEBUG: Creating object of type BBCViewer+TotemPythonPlugin (totem:9367): Totem-DEBUG: Creating Python plugin instance (totem:9367): Totem-DEBUG: totem_playlist_add_one_mrl (): The Mighty Boosh S01E01.mkv (null) (null) (totem:9367): Totem-DEBUG: Finalizing Python plugin instance
Do you have test files for that? In any case, Totem itself doesn't do any selection, GStreamer does it for us.
I've uploaded a small test file to http://pancakeholiday.com/storage/sample.mkv Running mkvinfo shows that the subtitle track has default=0, so subtitles should not be displayed by default on this file. nacho@naboo:~/Desktop/s$ mkvinfo sample.mkv + EBML head |+ Doc type: matroska |+ Doc type version: 2 |+ Doc type read version: 2 + Segment, size 3884305 |+ Seek head (subentries will be skipped) |+ EbmlVoid (size: 4029) |+ Segment information | + Timecode scale: 1000000 | + Muxing application: libebml v0.7.7 + libmatroska v0.8.1 | + Writing application: mkvmerge v3.0.0 ('Hang up your Hang-Ups') built on Dec 29 2009 00:21:20 | + Duration: 15.184s (00:00:15.184) | + Date: Tue Aug 31 22:39:56 2010 UTC | + Segment UID: 0x77 0x01 0x03 0x97 0x8c 0xc4 0x2c 0xa0 0x4f 0x6c 0x07 0x49 0xef 0x92 0x0a 0xb2 |+ Segment tracks | + A track | + Track number: 1 | + Track UID: 2047112287 | + Track type: video | + Enabled: 1 | + Default flag: 1 | + Forced flag: 0 | + Lacing flag: 0 | + MinCache: 1 | + Timecode scale: 1 | + Max BlockAddition ID: 0 | + Codec ID: V_MPEG4/ISO/AVC | + Codec decode all: 1 | + CodecPrivate, length 48 | + Default duration: 40.000ms (25.000 fps for a video track) | + Language: eng | + Video track | + Pixel width: 718 | + Pixel height: 576 | + Interlaced: 0 | + Display width: 1021 | + Display height: 576 | + A track | + Track number: 2 | + Track UID: 1232979121 | + Track type: audio | + Enabled: 1 | + Default flag: 1 | + Forced flag: 0 | + Lacing flag: 1 | + MinCache: 0 | + Timecode scale: 1 | + Max BlockAddition ID: 0 | + Codec ID: A_AC3 | + Codec decode all: 1 | + Default duration: 32.000ms (31.250 fps for a video track) | + Language: eng | + Audio track | + Sampling frequency: 48000 | + Channels: 2 | + A track | + Track number: 3 | + Track UID: 1086109706 | + Track type: subtitles | + Enabled: 1 | + Default flag: 0 | + Forced flag: 0 | + Lacing flag: 0 | + MinCache: 0 | + Timecode scale: 1 | + Max BlockAddition ID: 0 | + Codec ID: S_VOBSUB | + Codec decode all: 1 | + CodecPrivate, length 349 | + Language: eng | + Content encodings | + Content encoding | + Order: 0 | + Scope: 1 (1: all frames) | + Type: 0 (compression) | + Content compression | + Algorithm: 0 (ZLIB) |+ EbmlVoid (size: 1024) |+ Cluster
This line: gst-launch playbin2 uri=file://`pwd`/sample.mkv does the same thing.
*** This bug has been marked as a duplicate of bug 623565 ***