I want to combine two mp4 videos to form a single mp4 video using ffmpeg.

what i tried so far is:

ffmpeg -i input1.mp4 -i input2.mp4 output.mp4

But, every time i get the video with video codec of first input and not the other. How can i combine them?

Edit
Report