Choice just one audio track for streaming

About encoding, codec settings, muxers and filter usage
Remiii
Blank Cone
Blank Cone
Posts: 16
Joined: 02 Dec 2006 22:12
Location: Castets, Bordeaux, Brest, Angers / France

Choice just one audio track for streaming

Postby Remiii » 01 Mar 2007 10:03

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
http://wiki.videolan.org/User:Remiii
OSX and Linux user
Ratatouille Team

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 01 Mar 2007 22:44

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
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

Remiii
Blank Cone
Blank Cone
Posts: 16
Joined: 02 Dec 2006 22:12
Location: Castets, Bordeaux, Brest, Angers / France

Postby Remiii » 02 Mar 2007 19:35

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.
http://wiki.videolan.org/User:Remiii
OSX and Linux user
Ratatouille Team

Remiii
Blank Cone
Blank Cone
Posts: 16
Joined: 02 Dec 2006 22:12
Location: Castets, Bordeaux, Brest, Angers / France

Postby Remiii » 07 Mar 2007 09:59

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
http://wiki.videolan.org/User:Remiii
OSX and Linux user
Ratatouille Team


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 11 guests