video including two audio track

About encoding, codec settings, muxers and filter usage
hislitermos
Blank Cone
Blank Cone
Posts: 35
Joined: 17 Aug 2013 14:54

video including two audio track

Postby hislitermos » 05 Jul 2014 01:46

Hello,
I have a video file which has two audio tracks. What I want to do is to stream it as it is. (Stream content will have two audio track)
When I analyze the video file, it shows relevant channel numbers as shown below

Code: Select all

Stream #0.0[0x190f]: Video: h264 (Main), yuv420p, 720x576 [PAR 16:11 DAR 20:11], 26.27 fps, 25 tbr, 90k tbn, 50 tbc Stream #0.1[0x1910](fra): Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s (clean effects) Stream #0.2[0x1911](en): Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s (clean effects)
What I added is --audio-track=1,2 :

Code: Select all

sudo -u username cvlc -vvv movie.mp4 --sout '#transcode{fps=25,vcodec=mp4v,acodec=mp4a,vb=5000,ab=128,width=720,height=576,deinterlace}: standard{access=http,mux=ts,dst=localip:14001/movie1} --audio-track=0,1 ' :sout-mux-caching=3000
Result: Only the default language (FR) is playing when the video get started.

How can I stream both audio channels at the background?

Thanks in advance
Ermos

Rémi Denis-Courmont
Developer
Developer
Posts: 15323
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: video including two audio track

Postby Rémi Denis-Courmont » 05 Jul 2014 09:29

Add --sout-all.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

hislitermos
Blank Cone
Blank Cone
Posts: 35
Joined: 17 Aug 2013 14:54

Re: video including two audio track

Postby hislitermos » 05 Jul 2014 23:21

Add --sout-all.
thanks a lot!
working...


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 11 guests