title: Combining two video from ffmpeg
body: <p>I want to combine two mp4 videos to form a single mp4 video using ffmpeg.</p>
  
  <p>what i tried so far is </p>
  
  <pre><code>ffmpeg -i input1.mp4 -i input2.mp4 output.mp4
  </code></pre>
  
  <p>But, every time i get the video with video codec of first input and not the other. How can i combine them? Any idea on this will be highly appreciated.</p>