I have a directory of AVI files that I would like to combine into a single AVI file. These AVI files come from a dash cam and have two video tracks -- a front camera and a rear camera.
I tried to use the suggestion here to combine the videos. Specifically:
ffmpeg -f concat -i <(for f in $PWD/*.avi;do echo "file '$f'";done) -c copy output.avi
This works great for the first (front) video track but completely removes the second (rear) video track.
How can I concatenate these files and retain both video tracks? Alternatively, is there a way I can specify the video track to concatenate?