These are my batch commands for remuxing an AVI with a single audio stream to MP4, and it works well. But I can't figure out how to modify it to handle an AVI file with two audio streams. Can anyone shed a little light on what I need to be doing? Thanks.
- ffmpeg.exe -y -threads 4 -i %1.avi -vn -acodec copy Temp_01.ac3
- delaycut.exe -o Temp_02.ac3 -i Temp_01.ac3
- ffmpeg.exe -y -i %1.avi -vcodec copy -an -f rawvideo Temp_04.264
- MP4Box.exe -add Temp_04.264#video:fps=23.976:par=1 -brand avc1 -add Temp_02.ac3#audio -tmp C:\Temp -new %1.mp4
+ Reply to Thread
Results 1 to 3 of 3
-
-
I guess you have to use the map option to select stream.
http://ffmpeg.org/ffmpeg.html#Advanced-options
http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20use%20-map%20option
Something like
ffmpeg -i input.avi -map 0:1 -acodec copy output1.ac3
ffmpeg -i input.avi -map 0:2 -acodec copy output2.ac3 -
Thanks, that did it. My mistake was using map:0 to try to extract both streams in a single command. Doing them separately was the key.
Similar Threads
-
MP4 demux, transcode, remux => audio out of sync?
By julesh in forum Video ConversionReplies: 8Last Post: 10th Feb 2011, 20:00 -
Can't Mux audio & video streams to MP4 without a problem
By spycam in forum Newbie / General discussionsReplies: 3Last Post: 10th Nov 2010, 16:49 -
demux m2ts streams and remux them together with srt subtitles
By TwilightMatt in forum Video ConversionReplies: 5Last Post: 9th Dec 2009, 11:10 -
how do i remove DTS from AVI, convert audio then remux..?
By snadge in forum Video ConversionReplies: 6Last Post: 3rd Dec 2009, 06:58 -
MP4 with 2 Audio Streams
By kohkae in forum Video ConversionReplies: 3Last Post: 26th Nov 2008, 11:47