[MPlayer-users] no display of VOB subtitle streams

Alexander Roalter alex at roalter.it
Mon Jan 19 10:53:32 CET 2009

Adam Seychell wrote:
> After two weeks of trying to build mplayer under cygwin , I still cannot 
> get embedded subtitles in VOB files. The OSD font is working as I can 
> see text when activating various control buttons like volume delay, et.
> mplayer was compiled with freetype and fontconfig libraries and 
> subfont.tff is successfully found.
> I tested an outdated windows binary version of mplayer:
> http://www.mplayerhq.hu/MPlayer/releases/win32/MPlayer-mingw32-1.0rc2.zip
> and when playing the same VOB file and -sid numbers I can see the subtitles.

VOB files don't require any fonts, so OSD font, freetype, fontconfig
etc. don't have anything to do with it: it's simply bitmaps overlaid on
the screen.

There was a change some time ago which made it that subtitles appear
only after actively switching them (via the 'j' key) in mplayer, so if
you have selected subtitle id 0, you have to press j until you get to
subtitle 0 again (cycling through them all).

The following Patch, as proposed by Ötvös Attila by the end of December
08, fixed the problem insofar as subtitles are now always displayed

Index: command.c
--- command.c	(revision 28172)
+++ command.c	(working copy)
@@ -1496,6 +1496,7 @@
 		    ass_track = sh->ass_track;
             } else {
+              if(dvdsub_id<0)
               d_sub->id = -2;
               d_sub->sh = NULL;

Only one drawback remains: if I select -forcedsubsonly at the beginning,
this is not considered: I have to press Shift+F twice, to get
forced-only subtitles. Some patch would be needed for this, too.

I'm guessing, the value of -2 overrides any previously set force flags,
so it's not considered anymore, but anyone with a bit of more insight to
this could certainly say more about this.


More information about the MPlayer-users mailing list