Merging (concatenating) Media Files (eg.: .flv) With ffmpeg
Create a text file with the list of the media files you’d like to merge (in this case, *.flv):
printf "file '%s'\n" ./*.flv > mylist.txt
Then do the concatenation with the following command:
ffmpeg -f concat -i mylist.txt -c copy output
Source: ffmpeg wiki