I have used below commond for merging video
ffmpeg -f concat -safe 0 -i input.txt -copy out.mp4
but not working for some videos specially camera video's
ffmpeg -f concat -safe 0 -i input.txt -copy out.mp4 #input.txt - contains input1.mp4,input2.mp4
Can above commond will works for all video's