Page 1 of 1

command line sub-track-id use for subtitles / CC3

Posted: 14 Feb 2012 14:13
by jdp453289
I'd like to start vlc and specify a subtitle (closed caption) stream contained inside the MPEG2 video file.

$ vlc --sub-track-id=4 file.mpg
or
$ vlc --sub-track-id 4 file.mpg

There are 2 closed caption streams inside the file - CC1 and CC3. Selecting the CC1 or CC3 track in the VLC GUI works as expected, but not from the command line interface.
Using VLC version 1.1.13 The Luggage. Passing in "--sub-track-id 2" doesn't work to display CC1 data either, though the GUI shows "Closed Captions 1" as selected.

After providing the sub-track-id option, the GUI shows it as selected, but the subtitles are not displayed until the menu option is re-selected.

Is there something else I should do instead? Perhaps a different option?

Thanks!

Re: command line sub-track-id use for subtitles / CC3

Posted: 14 Feb 2012 18:35
by Jean-Baptiste Kempf
Did you try --sub-track 0 and 1 ?

Re: command line sub-track-id use for subtitles / CC3

Posted: 14 Feb 2012 19:53
by jdp453289
Did you try --sub-track 0 and 1 ?
Thanks for the alternative, but that did not work. It behaves the same. In the menu, the subtitle is shown selected, but until the menu **is** manually selected for Closed Captions 1 or 2 or 3, the subtitles are not displayed.

Just for clarity, none of these cause any subtitle to be displayed:
$ vlc --sub-track 0 file.mpg
$ vlc --sub-track 1 file.mpg
$ vlc --sub-track 3 file.mpg

However, using the mouse to select Video-->Subtitles Track --> Closed captions 1 or 3 does display the captions as expected.

Is there something else I could attempt?