After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 625630 - Totem ignores default subtitle flag on mkv files
Totem ignores default subtitle flag on mkv files
Status: RESOLVED DUPLICATE of bug 623565
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.x
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-07-30 03:52 UTC by nyall
Modified: 2011-06-12 18:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description nyall 2010-07-30 03:52: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
Comment 1 Bastien Nocera 2010-08-31 16:07:00 UTC
Do you have test files for that?

In any case, Totem itself doesn't do any selection, GStreamer does it for us.
Comment 2 nyall 2010-08-31 22:50:32 UTC
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
Comment 3 Bastien Nocera 2010-09-01 13:13:07 UTC
This line:
gst-launch playbin2 uri=file://`pwd`/sample.mkv
does the same thing.
Comment 4 Debarshi Ray 2011-06-12 18:39:38 UTC

*** This bug has been marked as a duplicate of bug 623565 ***