apt-get install gpac
 
MP4Box -cat output.mp4 -cat output2.mp4 -cat output3.mp4 -cat output4.mp4 -cat output5.mp4 -cat output6.mp4 merged.mp4