Page 1 of 1

Choice just one audio track for streaming

Posted: 01 Mar 2007 10:03
by Remiii
Hello,
I would like to stream with my VLC 0.8.6a a video. The problem is that my video has more than one audio track(actually 1deutsh and 1french) and I would like to choice just one audio track for streaming. My video is a Transport Stream standard.
For example: I have a video "StarWars.ts" and I want to send the video track and just the deutsh audio track, because I am using the mozilla vlc-plugin and we are not able to choice the audio track by this plugin.
For send the whole video I use :

Code: Select all

vlc -I http[--http-src /StarWars.ts --http-host 192.168.1.15:1234] --extraintf http --sout udp:192.168.1.10 --sout-udp-caching=500 --loop
what is the option required for doing that.
>> RĂ©miii

Posted: 01 Mar 2007 22:44
by dionoea
I'm not sure that i understand your request completely. I'll give it a try anyway:

Code: Select all

vlc StarWars.ts --sout "#std{access=udp,mux=ts,dst=192.168.1.10}" --audio-track 0

Posted: 02 Mar 2007 19:35
by Remiii
Sorry my question is not very clear.
I don't want kill the streaming of the sound but just choice 1 audio track.
When I send an .ts I send all the audio track (for exemple 2, deutsh and french) of the .ts and I want choice 1 audio track.
For exemple:
I want send the video track with the PID=25 and the French audio track with the PID=223.

Posted: 07 Mar 2007 09:59
by Remiii
Thank for your answer!!!
With the option

Code: Select all

--audio-track=X
I can choice one audio track.
-1: for the default track
0: for the track 1
1: for the track 2
2: for the track 3