- Assuming the files have some sort of number indicating their order in their filename.
find $(pwd) -maxdepth 1 -type f -name "*.mp4" | xargs -I "{}" echo file \'"{}"\' | sort | tee output.txt
- We're using
safe 0
because of this error https://stackoverflow.com/questions/38996925/ffmpeg-concat-unsafe-file-name
date && time ffmpeg -f concat -safe 0 -i output.txt -c copy output.mp4