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.
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.