Answers.Body: <p>While the cat/copy option mentioned generally works, I've found that it can cause problems with some media players, due to timecode issues. I would prefer to use ffmpeg's concat protocol to achieve the same effect (but more reliably in my experience):</p>
  
  <pre><code>ffmpeg -i "concat:in1.m2ts|in2.m2ts|in3.m2ts|in4.m2ts" -c copy output.m2ts
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-01-16T22:23:03.993Z
Answers.LastActivityDate: 2013-01-16T22:23:03.993Z
Answers.UserDisplayName: evilsoup
Answers.Body: <p>I believe you can join MPEG ts (transport stream) files simply by joining them together.  In Linux:</p>
  
  <pre><code>cat file1.m2ts file2.m2ts file3.m2ts &gt; joined_file.m2ts
  </code></pre>
  
  <p>In Windows/DOS:</p>
  
  <pre><code>copy /b file1.m2ts + file2.m2ts + file3.m2ts joined_file.m2ts /b
  </code></pre>
  
  <p>As long as the input files are split properly, and each new file begins with a key frame (and I would expect your camera does this), this should work just fine. And even if your camera is not careful about splitting right before a keyframe (again, I'd be surprised if it doesn't), as long as you re-join in the exact same order, it ought to work.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2011-12-12T19:24:58.010Z
Answers.LastActivityDate: 2011-12-13T00:38:23.040Z
Answers.LastEditDate: 2011-12-13T00:38:23.040Z
Answers.UserDisplayName: Flimzy
Body: <p>I have recorded several community theater productions with a Panasonic TM900 camera. The settings on the camera were to record at 1080p @ 60 FPS.  However, I noticed that the camera produces  several video files (.m2ts). </p>
  
  <p>While the included Panasonic HD Editor software plays the videos seamlessly that is not the case with other video players such as Windows Media Player.</p>
  
  <p>I want to be able stitch together two or more m2ts video files without losing the quality of the original footage. What software should I use to do this? I do not need fancy editing capabilities though I would like to cut some scenes from the video such as during the play's intermission.</p>
  
  <p>Open source software or at least free software is preferred but commercial software is not out of the question if it works well and it is easy to use.</p>
  
Tags: <video-editor>
Title: How can I stitch together several m2ts video files into one large file?
UserDisplayName: Ryan Taylor
ThreadText: # How can I stitch together several m2ts video files into one large file?
  
  (Asked by: username_0 on 2011-12-12)
  
  I have recorded several community theater productions with a Panasonic TM900 camera. The settings on the camera were to record at 1080p @ 60 FPS. However, I noticed that the camera produces several video files (.m2ts).
  
  While the included Panasonic HD Editor software plays the videos seamlessly that is not the case with other video players such as Windows Media Player.
  
  I want to be able stitch together two or more m2ts video files without losing the quality of the original footage. What software should I use to do this? I do not need fancy editing capabilities though I would like to cut some scenes from the video such as during the play's intermission.
  
  Open source software or at least free software is preferred but commercial software is not out of the question if it works well and it is easy to use.
  
  **Tags:** video-editor
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2011-12-12. Score: 10 | Accepted answer
  
  I believe you can join MPEG ts (transport stream) files simply by joining them together. In Linux:
  
  ```
  cat file1.m2ts file2.m2ts file3.m2ts > joined_file.m2ts
  
  ```
  
  In Windows/DOS:
  
  ```
  copy /b file1.m2ts + file2.m2ts + file3.m2ts joined_file.m2ts /b
  
  ```
  
  As long as the input files are split properly, and each new file begins with a key frame (and I would expect your camera does this), this should work just fine. And even if your camera is not careful about splitting right before a keyframe (again, I'd be surprised if it doesn't), as long as you re-join in the exact same order, it ought to work.
  
  
  ---
  
  ### Answer by username_1 on 2013-01-16. Score: 5
  
  While the cat/copy option mentioned generally works, I've found that it can cause problems with some media players, due to timecode issues. I would prefer to use ffmpeg's concat protocol to achieve the same effect (but more reliably in my experience):
  
  ```
  ffmpeg -i "concat:in1.m2ts|in2.m2ts|in3.m2ts|in4.m2ts" -c copy output.m2ts
  
  ```
  
  
  ---
  
  