Page 1 of 1

Selecting a particular language subtitle

Posted: 16 Jan 2012 23:26
by jml674
I'm doing SCHEDULED recordings of DVB-T program and need pre-selected subtitles to be picked using the option "--sub-language fr" to select french subtitle track.

however the DVB-T media I'm capturing has 2 "french" tracks (the one for deaf people and the one I'm after in second position = "DVB - [Français]").
Unfortunately VLC seems to pick up the first it finds which is the one for deaf people.

Any hint to indicate VLC to pick the second one ? Note I CANNOT use the track index since I do not know in advance what it will be.

thanks a bunch!

Re: Selecting a particular language subtitle

Posted: 19 Jan 2012 12:38
by Jean-Baptiste Kempf
It picks the first one, because this one is the default 888 teletext page set in the stream. No choice but force the spu track.

Re: Selecting a particular language subtitle

Posted: 27 Mar 2012 23:32
by jml674
Any suggestion how to capture ALL subtitle tracks and ALL audio tracks using something like such as:

vlc dvb-t://frequency=506000000 --sout="#duplicate{dst=std{access=file,mux=ts,dst='C:\Users\Videos\test.mp4'},dst=display,select="program=519,es=1-1000"}"

and get a file which contains all audio,subtitle elementary streams but only the video stream corresponding to program 519


thanks!

Re: Selecting a particular language subtitle

Posted: 28 Mar 2012 22:08
by jml674
I found a partial solution using the --sout-all option:
vlc dvb-t://frequency=506000000 :program=519 --sout-all --sout="#duplicate{dst=std{access=file,mux=ts,dst='C:\User\test.mp4'},select="program=519"}"

I have now all audio,subtitle elementary streams captured in the file.
The only remaining problem is to have simultaneous display. If I add the "dst" option in the duplicate module, I then obtain as many windows as there are sids in the dvb-t stream (ie the select seems to be ignored) . Any hint ?