How to concatenate 2 (or more) mp4 files with ffmpeg
On Linux, put the file names with paths and prefix each with "file" in a file called e.g. files.txt:
file ./foo.mp4 file /bar.mp4
Then
ffmpeg -safe 0 -f concat -i files.txt -c copy concatenated.mp4