# GET all the file names into the LIST with required format printf "file '%s'\n" *.avi > all.LIST # concatente (merge, join) the videos from the LIST ffmpeg -f concat -safe 0 -i all.LIST -c copy mergedOutput.avi