Mux multiple audio tracks

About encoding, codec settings, muxers and filter usage
kerdale
New Cone
New Cone
Posts: 4
Joined: 08 Oct 2009 10:21

Mux multiple audio tracks

Postby kerdale » 31 Jan 2012 13:43

Hi all,

I was going through this forum and know I'm confused. I there any way to mux multiple audio tracks (with different codec) in one MPEG TS file?
if yes, is it with this kind of following command line ?

% "PATH_TO_VLC" -vvv FILE1.EXT FILE2.EXT FILE3.EXT ETC.ETC --sout-keep --sout=#gather:transcode{vcodec=h264,vb=1024,scale=1,acodec=mp4a,ab=192,channels=6}:standard{access=file,mux=ts,dst=out.mpg} --sout-all

Thanks.

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

Re: Mux multiple audio tracks

Postby Rémi Denis-Courmont » 31 Jan 2012 14:49

If the input has multiple tracks, you need to pass --sout-all to include all of them. I am not sure you can transcode them separately though (you could split them by PID and pass each PID to a different transcode stanza, but then I do not know how to merge back the results).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kerdale
New Cone
New Cone
Posts: 4
Joined: 08 Oct 2009 10:21

Re: Mux multiple audio tracks

Postby kerdale » 01 Feb 2012 11:19

thank you.
I'll be in touch if something is coming up.
I might use VLC for encoding and another tool for muxing...


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 10 guests