VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. 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
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    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
    Quote Quote  
  3. 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.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!