Bug 583267 - Support for VobSub subtitles (playbin2, .idx files)
Support for VobSub subtitles (playbin2, .idx files)
Status: NEW
Product: GStreamer
Classification: Platform
Component: don't know
git master
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
:
: 430373 582508 591711 (view as bug list)
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2009-05-19 21:41 UTC by Sven Arvidsson
Modified: 2014-10-23 07:37 UTC (History)
11 users (show)

See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments

Description Sven Arvidsson 2009-05-19 21:41:00 UTC
With bug 350311 resolved, GStreamer should now support subpicture subtitles, but it doesn't seem to work in Totem. 

All I get when I launch video.avi with a video.sub as a subtitle is this:

** Message: Error: Internal data stream error.
gstmpegdemux.c(2536): gst_flups_demux_loop (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin1/GstDecodeBin2:decodebin20/GstMpegPSDemux:mpegpsdemux0:
No valid streams detected

This might even be a regression, as previous versions just ignored the .sub file (if it wasn't a text subtitle) and let me play the video.
Comment 1 Bastien Nocera 2009-05-19 22:20:03 UTC
Versions of Totem and Gstreamer bits?

And does it work using playbin2 on the command-line?

gst-launch-0.10 playbin2 uri="...." suburi="...."
Comment 2 Sven Arvidsson 2009-05-20 15:38:15 UTC
Totem 2.27.1
gstreamer0.10-plugins-bad 0.10.11.3
gstreamer0.10-plugins-ugly 0.10.11
gstreamer0.10-plugins-good 0.10.14.3
gstreamer0.10-plugins-base 0.10.23

I get the same error with the pipeline, so it seems there's still something missing on the GStreamer side.
Comment 3 Jan Schmidt 2009-05-20 16:30:14 UTC
I haven't looked at vobsub subtitles too closely, but apart from obviously needing support to demux and hook them into the subpicture renderer, I think they also need an extra text file that supplies the palette information?

If so, we need a mechanism to provide both files in a logically-linked manner.

Any chance of a link to a sample or two, to save me hunting them up? 
Comment 4 Bastien Nocera 2009-05-20 16:42:56 UTC
The *.vob at http://samples.mplayerhq.hu/sub/ should do the trick.
Comment 5 Jan Schmidt 2009-05-21 17:50:06 UTC
Oops, I put this comment on Bug #350311 that should have gone here:

I have some local commits to push after we thaw that add support for DVD subpictures in MPEG-PS streams to mpegpsdemux. With that in place, the subpictures can be rendered by playbin/playbin2, but there are a few more pieces missing:
* external vobsub also requires the .idx in order to get the colour palette to use and some other info.
* playbin2 needs to group the subpicture streams together and expose them as selectable subtitle streams for the players.  
Comment 6 Sven Arvidsson 2009-05-21 19:01:25 UTC
Sounds great! Thanks for working on this.
Comment 7 Bastien Nocera 2009-09-04 17:35:29 UTC
*** Bug 582508 has been marked as a duplicate of this bug. ***
Comment 8 Shahar Or 2009-11-29 17:08:37 UTC
There's a bounty on this bug:
http://www.fossfactory.org/project/p188
Comment 9 Bastien Nocera 2010-05-06 13:48:51 UTC
*** Bug 591711 has been marked as a duplicate of this bug. ***
Comment 10 Bastien Nocera 2010-05-06 13:49:21 UTC
There's a test file at:
https://bugzilla.gnome.org/show_bug.cgi?id=591711#c8
Comment 11 Sebastian Dröge (slomo) 2011-05-18 16:50:31 UTC
*** Bug 430373 has been marked as a duplicate of this bug. ***
Comment 12 bcxa.sz 2011-08-25 01:56:48 UTC
can you let me know what's the status on this bug since 2 years passed? And I still had problem to playback .idx+.sub (vob sub) with playbin2.
Comment 13 Sebastian Dröge (slomo) 2011-08-25 06:27:57 UTC
It's still not supported and nobody is working on this AFAIK
Comment 14 Alan Pater 2014-03-12 00:05:41 UTC
Testing on Ubuntu Trusty (14.04) and it is not working.

Using gstreamer 1.0 via Totem 3.10.1
Comment 15 Tim-Philipp Müller 2014-03-21 10:03:56 UTC
I'll have a look at this once 1.4 is out.
Comment 16 Alan Pater 2014-10-23 00:55:47 UTC
Is this being worked on?
Comment 17 Sebastian Dröge (slomo) 2014-10-23 07:37:15 UTC
Not that I'm aware of

Note You need to log in before you can comment on or make changes to this bug.