Generate a file with all file names for f in *.mp4; do echo file \'$f\' >> fileList.txt; done; Merge all files together ffmpeg -f concat -safe 0 -i fileList.txt -c copy output.mp4