Answers.Body: <p>Ok I have found a solution using <code>ffmpeg</code> instead of <code>avidemux</code>. I made the following batch file. In this case, I had to know the folder where the ffmpeg executable was, and also i managed to convert the resolution to a different one</p>
  <pre><code>for %%f in (*.mp4) do (
      echo file %%f &gt;&gt; list.txt
  )
  F:\ffmpeg\bin\ffmpeg.exe -f concat -safe 0 -i list.txt -vf scale=320:240 output.avi
  del list.txt
  </code></pre>
  <p>This did the trick!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-02-14T23:43:09.890Z
Answers.Text: This is based on https://stackoverflow.com/questions/28922352/how-can-i-merge-all-the-videos-in-a-folder-to-make-a-single-video-file-using-ffm
Answers.UserDisplayName: luisgonzalez
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-02-15T08:14:01.470Z
Answers.Text: If this solves your problem perfectly, then please mark your answer as accepted (click the check mark on the left).
Answers.UserDisplayName: Matt
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-02-14T23:41:09.610Z
Answers.LastActivityDate: 2021-02-14T23:41:09.610Z
Answers.UserDisplayName: luisgonzalez
Answers.Body: <p>select all files in the folder, then drag and drop all at once into the avidemux window.  No code required.  You can't file&gt;open then select all, just drag and drop all the files you want to append together.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-05-07T12:20:04.620Z
Answers.LastActivityDate: 2024-05-07T12:20:04.620Z
Answers.UserDisplayName: doug
Body: <p>I`ve been trying to create a batch file that merges all files in a folder using avidemux. Ideally, it would be awesome if this works to do some changes as well (basically rescaling the video).</p>
  <p>I have tried with this .bat file but it does not do what I intended:</p>
  <pre><code>set avidemux=&quot;C:\Program Files\Avidemux 2.7 VC++ 64bits\avidemux.exe&quot;
  
  set videocodec=mp4
  
  for %%f in (*.mp4) do %avidemux% --video-codec %videocodec% --force-alt-h264 --load &quot;%%f&quot; --append &quot;%%f&quot; --save &quot;%%f.avi&quot; --quit
  </code></pre>
  <p>What this does is just open each file individually and save it individually, not actually merging them.</p>
  <p>If there are any one-click solutions for this kind of issue it would be also appreciated.</p>
  
Tags: <software>
Title: Merging all files in a folder with an avidemux batch file
UserDisplayName: luisgonzalez
ThreadText: # Merging all files in a folder with an avidemux batch file
  
  (Asked by: username_0 on 2021-02-14)
  
  I`ve been trying to create a batch file that merges all files in a folder using avidemux. Ideally, it would be awesome if this works to do some changes as well (basically rescaling the video).
  
  I have tried with this .bat file but it does not do what I intended:
  
  ```
  set avidemux="C:\Program Files\Avidemux 2.7 VC++ 64bits\avidemux.exe"
  
  set videocodec=mp4
  
  for %%f in (*.mp4) do %avidemux% --video-codec %videocodec% --force-alt-h264 --load "%%f" --append "%%f" --save "%%f.avi" --quit
  
  ```
  
  What this does is just open each file individually and save it individually, not actually merging them.
  
  If there are any one-click solutions for this kind of issue it would be also appreciated.
  
  **Tags:** software
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2021-02-14. Score: 0
  
  Ok I have found a solution using `ffmpeg` instead of `avidemux`. I made the following batch file. In this case, I had to know the folder where the ffmpeg executable was, and also i managed to convert the resolution to a different one
  
  ```
  for %%f in (*.mp4) do (
      echo file %%f >> list.txt
  )
  F:\ffmpeg\bin\ffmpeg.exe -f concat -safe 0 -i list.txt -vf scale=320:240 output.avi
  del list.txt
  
  ```
  
  This did the trick!
  
  > **Comments:**
  > **username_0**: This is based on https://stackoverflow.com/questions/28922352/how-can-i-merge-all-the-videos-in-a-folder-to-make-a-single-video-file-using-ffm  
  > **username_1**: If this solves your problem perfectly, then please mark your answer as accepted (click the check mark on the left).  
  
  ---
  
  ### Answer by username_2 on 2024-05-07. Score: 0
  
  select all files in the folder, then drag and drop all at once into the avidemux window. No code required. You can't file>open then select all, just drag and drop all the files you want to append together.
  
  
  ---
  
  