October 24, 2011

FFmpeg, Map streams

Mix video from file A with audio from file B
ffmpeg -i A.mp4 -i B.mp4 -map 0:v -map 1:a -c copy -shortest out.mp4

ffmpeg -i A.mp4 -i B.mp4 -map 0:0 -map 1:1 -c copy -shortest out.mp4

No comments:

Post a Comment