# 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