
(for f in do echo "file '$f'" done) | ffmpeg -protocol_whitelist file,pipe -f concat -safe 0 -i pipe: -vcodec copy -acodec copy $output output.mp4"Įxit # determine all # get the last argument (output file)

I am using the script from another AskUbuntu answer, called concatmp4 here: #!/usr/bin/env bashĮcho "Usage: `basename $0` input_1.mp4 input_2.mp4. I want to merge mp4 files via the concat demuxer and cannot get it to work with a script.
