Log in

View Full Version : mux 2 audio tracks in ts with vlc


fankler
27th February 2007, 16:37
Hi together,
I want to mux a mpeg transport stream with one video and two audio channels.
ffmpeg does this quite easy with its -newaudio option, but the timestamping is very bad in ffmpeg.

"ffmpeg" -i inputfile.mpg -s 720x576 -aspect 4:3 -f mpegts -vcodec mpeg2video -b 3000kb -bt 1 -bufsize 500kb -maxrate 3000kb -minrate 3000kb -g 12 -r 25 -acodec ac3 -ab 384 -ac 2 -t 60 "outputfile.ts" -acodec mp2 -ab 192 -newaudio

Does anyone have an idea how to do this in vlc?

pandy
28th February 2007, 11:28
hm... tough question - genrally it is a problem with lack of free ts muxer - i do this in that way.
create mpg with audio and video tracks, then i put these mpg in the vlc and simply chose ts as a destination - everything seems to be ok.
I believe that this is also valid for vob file.

fankler
28th February 2007, 12:53
sorry, but i didn't get your way

create mpg with audio and video tracks

so your inputfile already has 2 audio streams? what if i only have one audio in the inputfile?