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

*nix specific usage questions
jdp453289
New Cone
New Cone
Posts: 3
Joined: 14 Feb 2012 14:04

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

Postby jdp453289 » 14 Feb 2012 14:13

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!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 14 Feb 2012 18:35

Did you try --sub-track 0 and 1 ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

jdp453289
New Cone
New Cone
Posts: 3
Joined: 14 Feb 2012 14:04

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

Postby jdp453289 » 14 Feb 2012 19:53

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?


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 20 guests