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 601631 - [regression] DVD forced subtitles no longer displayed
[regression] DVD forced subtitles no longer displayed
Status: RESOLVED WONTFIX
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-11-12 01:11 UTC by Marc Deslauriers
Modified: 2018-05-04 09:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Log file from star wars (41.96 KB, application/x-gzip)
2009-11-13 03:32 UTC, Marc Deslauriers
Details
new log (776.68 KB, application/x-gzip)
2009-11-13 13:35 UTC, Marc Deslauriers
Details
Debug excerpts (3.60 KB, text/plain)
2009-11-14 01:31 UTC, Jan Schmidt
Details
log with 0.10.11 (448.21 KB, application/x-gzip)
2009-11-14 03:21 UTC, Marc Deslauriers
Details
relevant part of log (1.39 KB, text/plain)
2009-11-14 03:28 UTC, Marc Deslauriers
Details
new debug snippet (1.90 KB, text/plain)
2009-11-14 05:09 UTC, Jan Schmidt
Details

Description Marc Deslauriers 2009-11-12 01:11:54 UTC
When watching a DVD with totem 2.28.2 and gstreamer0.10-plugins-bad 0.10.14 in Ubuntu karmic, DVD forced subtitles don't display anymore.

This worked fine in gst-plugins-bad 0.10.11.

Steps to reproduce:

- Open Star Wars DVD Ep IV DVD in totem.
- Notice that Jabba doesn't get subtitled

Regular subtitles work fine, it's the forced kind that don't.
Comment 1 Jan Schmidt 2009-11-12 13:24:22 UTC
I'll test with current git. Fairly sure that I've seen a forced subtitle recently.

Also, I don't have Stars Wars Ep IV DVD - feel free to send me one ;)
Comment 2 Jan Schmidt 2009-11-13 01:42:02 UTC
I can't reproduce the problem using any of totem GIT, 2.28.2 from Karmic in any combination with either stock GStreamer on Karmic or GStreamer git - testing with 1 disc that has forced subtitles (Die Another Day, chapter 4-5)

Could you attach some debug logs?

GST_DEBUG=rsndvdsrc:5,dvdspu:5 /usr/bin/totem dvd:// > gst.log 2>&1

Then please gzip and send the gst.log file.

Does it make any difference if you jump into the chapter directly vs letting the entire movie play?
Comment 3 Marc Deslauriers 2009-11-13 03:32:14 UTC
Curiously, my DVD of Die Another Day has burned in subtitles.

Here is a log file of Star Wars, selecting Chapter 24 from the chapter select menu at around 0:00:44 in the log file.

I didn't try letting the entire movie play...I'll try that tomorrow, although selecting from the chapter menu works with 0.10.11.
Comment 4 Marc Deslauriers 2009-11-13 03:32:37 UTC
Created attachment 147630 [details]
Log file from star wars
Comment 5 Jan Schmidt 2009-11-13 10:56:19 UTC
You made me go back and check my Die Another Day. Definitely forced subpics.

Sorry, the dvdspu info didn't make it into that log - I forgot that the SPU debug category changed name to 'gstspu', so it didn't get picked up.

Also, the demuxer and selector logs might be useful, but at a lower level:

GST_DEBUG=rsndvdsrc:5,gstspu:5,*demux:3,*selector:4 /usr/bin/totem dvd:// > gst.log 2>&1
Comment 6 Marc Deslauriers 2009-11-13 13:35:59 UTC
Created attachment 147660 [details]
new log

Here is a new log. I click on chapter select around 0:00:51.
Comment 7 Jan Schmidt 2009-11-14 01:31:36 UTC
Created attachment 147705 [details]
Debug excerpts

After spending some time debugging, I can't see anything wrong. Compare the two snippets of debug log attached.

In the Star Wars IV log, there is no Forced Display command in the subpicture packets, so they don't get rendered - the correct behaviour afaics.

Could you make a log of the 0.10.11 behaviour?
Comment 8 Marc Deslauriers 2009-11-14 03:21:46 UTC
Created attachment 147708 [details]
log with 0.10.11

Here's the log with 0.10.11 from Ubuntu Jaunty
Comment 9 Marc Deslauriers 2009-11-14 03:28:57 UTC
Created attachment 147709 [details]
relevant part of log

Here is the relevant part of the log.

Looks like the "Forced Display" gets parsed as "Display On" in 0.10.14.
Comment 10 Jan Schmidt 2009-11-14 05:09:54 UTC
Created attachment 147712 [details]
new debug snippet

The problem is happening because it is getting different values for the subpicture streams to use from libdvdnav - and it ends up activating a different (and incorrect) subpicture stream. 

Is your Karmic libdvdnav the stock 4.1.3-3 from ubuntu?
Comment 11 Marc Deslauriers 2009-11-14 14:40:33 UTC
Yes, it's the stock 4.1.3-3.
Comment 12 Marc Deslauriers 2009-11-14 15:21:09 UTC
I just installed a clean Karmic on a test laptop, and get the same results.
Comment 13 Jan Schmidt 2009-11-14 18:22:35 UTC
Very strange...

Testing a few more discs, all the subpicture events from libdvdnav seem correct for me.

Are any other discs working incorrectly for you - perhaps displaying a different subpicture language than the one you select?

I'm not sure what to look at next.
Comment 14 Marc Deslauriers 2009-11-15 00:25:20 UTC
Thanks for spending time on this.

I'm heading out to UDS in a few hours, but I'll try some different disks in a week when I get back.
Comment 15 Jan Schmidt 2009-11-26 11:35:45 UTC
Did you have a chance to test any other discs?
Comment 16 Marc Deslauriers 2009-11-26 12:55:12 UTC
Not yet, I will soon. Sorry about the delay.
Comment 17 Marc Deslauriers 2009-11-29 22:52:14 UTC
I finally found another DVD with player-generated forced subtitles. Most region 1 DVDs have burned-in subtitles.

It's "This is Spinal Tap", and it worked ok with totem and gstreamer0.10-plugins-bad 0.10.14.

Looks like there's something weird with the Star Wars DVD.
Comment 18 Jan Schmidt 2009-11-30 12:08:56 UTC
My interpretation of the Star Wars DVD behaviour is that it isn't supposed to show the forced subtitles by default.

Do they show by default in any other DVD player?
Comment 19 Marc Deslauriers 2009-11-30 13:02:32 UTC
They show by default in Xine, in my PS3, and my standalone DVD player.
Comment 20 Jan Schmidt 2009-12-01 00:23:37 UTC
Aha - yes, strong indications that there is something going wrong :)
Comment 21 Sebastian Dröge (slomo) 2011-05-23 14:08:48 UTC
Is this still a problem?
Comment 22 Marc Deslauriers 2011-07-03 16:30:17 UTC
Yes, I have just tried the same Star Wars DVD on Ubuntu Natty, with totem 2.32.0 and gstreamer0.10-plugins-bad 0.10.21, and am still having the same issue. Forced subtitles for Jabba's lines aren't being displayed.
Comment 23 Fabio Durán Verdugo 2011-08-19 23:42:41 UTC
reopening...
Comment 24 Tim-Philipp Müller 2014-11-26 15:30:55 UTC
Jan, others: has anyone tested this with recent 1.x ?
Comment 25 Jan Schmidt 2015-04-13 01:08:42 UTC
Things are still the same in 1.x, and I still don't know why the Star Wars EP IV disc behaves that way. It still seems like some subpicture streams on the disc have forced display commands for Jabba's speech, and others don't.

In Jaunty, libdvdnav used to tell us to activate stream 2 - without setting the 'forced-only' flag, so we should have been displaying *all* subs. In more recent libdvdnav, it tells us to play stream 0, with the 'forced-only' flag set... but there's no forced subs in the stream.

I'd suspect something changed in the dvdspu as well that broke forced-display command handling but I can't see anything like that in the code, and I'd expect anything that could break that would show up in other ways, since it'd imply we're walking the subs command chain wrong.
Comment 26 Jan Schmidt 2015-04-13 14:33:08 UTC
I finally found someone that has a Star Wars Ep IV DVD I can borrow, btw. With this disc, I don't have any forced sub-title events in the Jabba scene. What it seems to do on a real DVD player is select MPEG stream 0x2f, which has a version of the subtitles with only Jabba's speech - not forced subs, just enabling that track.

libdvdnav tells us to use that track, but sets the 'forced-only' flag, so none of the subs get shown - they're not forced subs.

The only part that doesn't make sense is the original trace from Marc from 6 (!) years ago showing forced subtitle commands in the subs stream. The only stream I have those on this disc is in menus.
Comment 27 Jan Schmidt 2015-04-13 17:21:24 UTC
Oh dear. I just worked out why this is broken, and what broke it.

In order to try and skip annoying sequences at the start of the disc - trailers and warnings - and jump straight to the menu, I implemented a DVD fast-start feature like VLC has, which immediately jumps into the movie and then back out to the menu.

It turns out that jumping like that skips some important one-time DVD VM setup stuff on this disc, that makes it enable the sub-title track by default. Without them, it ends up in forced-subs-only mode, and there's no forced subs.

If you run with the env var DVDFASTSTART=no, the disc starts up and shows subs correctly, after you wait through the warnings and intro sequence :-/
Comment 28 Jan Schmidt 2018-05-04 09:16:31 UTC
I don't think there's a clean way to fix this, short of removing the very-useful fast-start function.

We could expose fast-start in the UI of the players, but the link between that and this behaviour is unlikely to be clear to anyone.