Answers.Body: <p>If you have <a href="https://www.ffmpeg.org/" rel="nofollow noreferrer">ffmpeg</a> installed, see <a href="https://trac.ffmpeg.org/wiki/Concatenate" rel="nofollow noreferrer">this article</a> that basically says to create a file that has all of the names, or to use the following command</p>
  
  <p><a href="http://ffmpeg.org/ffmpeg-protocols.html#concat" rel="nofollow noreferrer"> <h1> Concat Protocol</h1></a></p>
  
  <pre><code>ffmpeg -i 'concat:input1|input2' -codec copy output
  </code></pre>
  
  <p>Or </p>
  
  <p><a href="http://ffmpeg.org/ffmpeg-filters.html#concat" rel="nofollow noreferrer"><h1> Concat Video Filter </h1></a></p>
  
  <pre><code>ffmpeg -i opening.mkv -i episode.mkv -i ending.mkv \
   -filter_complex '[0:0] [0:1] [1:0] [1:1] [2:0] [2:1] concat=n=3:v=1:a=1 [v] [a]' \
  -map '[v]' -map '[a]' output.mkv
  </code></pre>
  
  <p>Or</p>
  
  <p><a href="http://ffmpeg.org/ffmpeg-formats.html#concat-1" rel="nofollow noreferrer"><h1>Concat Demuxer</h1></a></p>
  
  <pre><code>$ cat mylist.txt
  file '/path/to/file1'
  file '/path/to/file2'
  file '/path/to/file3'
  
  $ ffmpeg -f concat -i mylist.txt -c copy output
  </code></pre>
  
  <h2>Which one to use</h2>
  
  <p><strong>concat protocol:</strong> use with formats that support file level concatenation (MPEG-1, MPEG-2 PS, DV).</p>
  
  <p><strong>concat filter:</strong> use if you need to re-encode such as when applying filters.</p>
  
  <p><strong>concat demuxer:</strong> use when you want to avoid a re-encode and your format does not support file level concatenation.
  If in doubt try the concat demuxer.</p>
  
  <h2>When in Doubt, choose Demuxer</h2>
  
  <p>This article was originally published <a href="https://stackoverflow.com/questions/7333232/concatenate-two-mp4-files-using-ffmpeg">here</a></p>
  
  <p>Also, see <a href="http://ffmpeg.org/faq.html#How-can-I-join-video-files_003f" rel="nofollow noreferrer">http://ffmpeg.org/faq.html#How-can-I-join-video-files_003f</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-31T18:39:07.403Z
Answers.Text: how would I the concat demuxer to add the same outro video file to 100's of videos?
Answers.UserDisplayName: jasan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-01T13:15:26.343Z
Answers.Text: See [How to bulk add outro with ffmpeg](https://stackoverflow.com/questions/35711013/how-to-bulk-add-outro-with-ffmpeg) and [ffmpeg concat video and audio out of sync](https://stackoverflow.com/questions/35416110/ffmpeg-concat-video-and-audio-out-of-sync/35520705#35520705) Both of which can be integrated.
Answers.UserDisplayName: bret7600
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2016-11-12T20:12:21.997Z
Answers.LastActivityDate: 2019-02-20T00:14:39.983Z
Answers.LastEditDate: 2019-02-20T00:14:39.983Z
Answers.UserDisplayName: bret7600
Body: <p>So I've recorded all my old Mini DV tapes to .AVI with dvgrab, then Deinterlaced them with Handbrake (Bob Method) on the High Profile but I'm left with a bunch of M4V files now (due to the 2 audio tracks).</p>
  
  <p>I want to make one file out of each tape now and, if possible, also preserve the timestamps in the filename. I have no idea how to join them now tho since making an MKV out of them would result in the player acting up (VLC, MPC and WMP all bring different results when playing the MKV file for some reason).</p>
  
  <p>What's the best way to get the deinterlaced M4V files into one file for each tape now? Or do you guys have some other methods for this while still deinterlacing the original footage from 50i to 50p?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-12T19:56:22.470Z
Comments.Text: Hi, what system would you be running? Mac, Windows, Linux?
Comments.UserDisplayName: bret7600
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-16T13:04:09.900Z
Comments.Text: Windows, if possible. If no other option is available than Linux or Mac I could use those too of course.
Comments.UserDisplayName: Stefan Kern
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-16T17:57:52.957Z
Comments.Text: The answer below is in regards to Mac, Linux and Windows
Comments.UserDisplayName: bret7600
Tags: <mkv><handbrake><avi>
Title: Join multiple M4V to one file (maybe MKV?)
UserDisplayName: Stefan Kern
ThreadText: # Join multiple M4V to one file (maybe MKV?)
  
  (Asked by: username_0 on 2016-11-12)
  
  So I've recorded all my old Mini DV tapes to .AVI with dvgrab, then Deinterlaced them with Handbrake (Bob Method) on the High Profile but I'm left with a bunch of M4V files now (due to the 2 audio tracks).
  
  I want to make one file out of each tape now and, if possible, also preserve the timestamps in the filename. I have no idea how to join them now tho since making an MKV out of them would result in the player acting up (VLC, MPC and WMP all bring different results when playing the MKV file for some reason).
  
  What's the best way to get the deinterlaced M4V files into one file for each tape now? Or do you guys have some other methods for this while still deinterlacing the original footage from 50i to 50p?
  
  **Tags:** mkv, handbrake, avi
  
  > **Comments:**
  > **username_1**: Hi, what system would you be running? Mac, Windows, Linux?  
  > **username_0**: Windows, if possible. If no other option is available than Linux or Mac I could use those too of course.  
  > **username_1**: The answer below is in regards to Mac, Linux and Windows  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-11-12. Score: 5
  
  If you have [ffmpeg](https://www.ffmpeg.org/) installed, see [this article](https://trac.ffmpeg.org/wiki/Concatenate) that basically says to create a file that has all of the names, or to use the following command
  
  [# Concat Protocol](http://ffmpeg.org/ffmpeg-protocols.html#concat)
  
  ```
  ffmpeg -i 'concat:input1|input2' -codec copy output
  
  ```
  
  Or
  
  [# Concat Video Filter](http://ffmpeg.org/ffmpeg-filters.html#concat)
  
  ```
  ffmpeg -i opening.mkv -i episode.mkv -i ending.mkv \
   -filter_complex '[0:0] [0:1] [1:0] [1:1] [2:0] [2:1] concat=n=3:v=1:a=1 [v] [a]' \
  -map '[v]' -map '[a]' output.mkv
  
  ```
  
  Or
  
  [# Concat Demuxer](http://ffmpeg.org/ffmpeg-formats.html#concat-1)
  
  ```
  $ cat mylist.txt
  file '/path/to/file1'
  file '/path/to/file2'
  file '/path/to/file3'
  
  $ ffmpeg -f concat -i mylist.txt -c copy output
  
  ```
  
  ## Which one to use
  
  **concat protocol:** use with formats that support file level concatenation (MPEG-1, MPEG-2 PS, DV).
  
  **concat filter:** use if you need to re-encode such as when applying filters.
  
  **concat demuxer:** use when you want to avoid a re-encode and your format does not support file level concatenation.
  If in doubt try the concat demuxer.
  
  ## When in Doubt, choose Demuxer
  
  This article was originally published [here](https://stackoverflow.com/questions/7333232/concatenate-two-mp4-files-using-ffmpeg)
  
  Also, see <http://ffmpeg.org/faq.html#How-can-I-join-video-files_003f>
  
  > **Comments:**
  > **username_2**: how would I the concat demuxer to add the same outro video file to 100's of videos?  
  > **username_1**: See [How to bulk add outro with ffmpeg](https://stackoverflow.com/questions/35711013/how-to-bulk-add-outro-with-ffmpeg) and [ffmpeg concat video and audio out of sync](https://stackoverflow.com/questions/35416110/ffmpeg-concat-video-and-audio-out-of-sync/35520705#35520705) Both of which can be integrated.  
  
  ---
  
  