title: FFMpeg : Falied to combine two MPEG TS files into a Single MP4 File
body: <p>I'm trying to combine <strong>2 .ts files</strong> in to a <strong>single .mp4</strong> file here using <strong>FFMpeg</strong>. I need to make the <strong>concat dumuxer</strong> method working in order to use it in my Android App. In my android app the <strong>concat protocol</strong> is not recognized. So I'm trying the <strong>concat demuxer method</strong>.</p>
  
  <p>The <strong>concat protocol</strong> works fine in my <strong>windows pc</strong> :</p>
  
  <pre><code>ffmpeg -i "concat:s1.ts|s2.ts" -c copy -bsf:a aac_adtstoasc output.mp4
  </code></pre>
  
  <p>But, the <strong>concat demuxer</strong> is not working in my windows pc :</p>
  
  <pre><code>ffmpeg -f concat -i s1.ts -i s2.ts -c copy -bsf:a aac_adtstoasc output2.mp4
  
  Error : 
  [concat @ 0000000000516e00] Line 1: unknown keyword 'G@'
  s1.ts: Invalid data found when processing input
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/D54Yf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D54Yf.png" alt="enter image description here"></a></p>
  
  <p>There are the files used for the testing:
  <a href="http://fourbigbrothers.com/s1.ts" rel="nofollow noreferrer">http://fourbigbrothers.com/s1.ts</a>  And <a href="http://fourbigbrothers.com/s2.ts" rel="nofollow noreferrer">http://fourbigbrothers.com/s2.ts</a></p>
  
  <p>Pls help. I've been chewing my brains lately.</p>