PDA

View Full Version : Subtitles stream and chapters with mplayer ?


brunooo
3rd March 2005, 13:49
Hello everybody,

My movie has an ogm container which INCLUDES chapters and subtitles.
Typing the command "mplayer movie.ogm -v" returns informations about the streams, including a text stream which I suppose contains the subtitles, and the list of all the chapters. So far, it seems OK.

However, typing for example "mplayer movie.ogm -chapter 5" does not start playing at chapter 5 but from the beginning.
Also, I cannot find out the way to play the subtitles.

(Of course, if a use a SEPARATE file for the subtitles, such as subtitles.srt, mplayer can play these subtitles with the command "mplayer movie.ogm -sub subtitles.srt")

How can I play the subtitles and use the chapters info ?

Thanks

mikeX
3rd March 2005, 15:35
I don't think you can use chapters for anything other than DVD in mplayer, so it shouldn't work, neither for .ogm nor for .mkv files.
About subtitles, it's the same as it would be for selecting the desired subtitle language for a DVD, use the -sid parameter (e.g. 'mplayer -sid 0 my_movie' to view the first subtitle track). You will have to restart the clip if you want to change subtitle language. Other players (such as xine or vlc) can change subtitles on the fly (at least for matroska [.mkv] files). There is a similar parameter for changing the audio track (-aid).

brunooo
3rd March 2005, 16:10
Many thanks MikeX !

The -sid parameter indeed work fine !

(I tried it the wrong way :
mplayer -cache 1048 -sid 0 vcd://2 : DOES NOT WORK
mplayer -cache 1048 vcd://2 -sid 0 : WORK)

Too bad chapters can t be used with mplayer !

Xine can play subtitles, as you mentioned.
Do you know if Xine can select chapters too ?

akupenguin
3rd March 2005, 22:18
You can switch subtitle languages with 'j', no need to restart mplayer.