Answers.Body: <p>Open any txt file editor.
  Paste each command separated by newline each (press <kbd>Enter</kbd>).
  Save as .bat (not .bat.txt, so click 'All files').
  Execute it by right click Run or Execute</p>
  <p>Consider making the 100 commands in batch and not Excel next time.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-07T14:12:43.313Z
Answers.LastActivityDate: 2022-05-07T20:46:15.257Z
Answers.LastEditDate: 2022-05-07T20:46:15.257Z
Answers.UserDisplayName: Antoni C
Answers.Body: <p>You might also like to make a &quot;.bat/.cmd&quot; file that takes the file name as a parameter
  Note the  %%1 is the input file and %%2 is the name of the output file
  =&gt;addABC.bat</p>
  <pre> ffmpeg -i %%1 -vf "drawtext=fontfile=path\font.ttf:text='ABC':fontcolor=black:fontsize=45:box=1:boxcolor=white@1:boxborderw=5:x=(w-text_w)/2:y=50:enable='gte(t,5)',drawtext=fontfile=path\font.ttf:text='DEF':fontcolor=black:fontsize=45:box=1:boxcolor=white@1:boxborderw=5:x=(w-text_w)/2:y=100:enable='gte(t,5)'" -codec:a copy output.mp4
  </pre>
  <p>Then you can use it like this =&gt;</p>
  <pre>
   addabc  video.mp4 output.mp4
  </pre>
  <p>its also possible to just use the input name and append something to it for the output file name</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-10T09:19:52.067Z
Answers.LastActivityDate: 2022-05-10T09:19:52.067Z
Answers.UserDisplayName: mark
Body: <p>I have the following code which adds a small overlay text over my video:</p>
  <pre><code>ffmpeg -i video.mp4 -vf &quot;drawtext=fontfile=path\font.ttf:text='ABC':fontcolor=black:fontsize=45:box=1:boxcolor=white@1:boxborderw=5:x=(w-text_w)/2:y=50:enable='gte(t,5)',drawtext=fontfile=path\font.ttf:text='DEF':fontcolor=black:fontsize=45:box=1:boxcolor=white@1:boxborderw=5:x=(w-text_w)/2:y=100:enable='gte(t,5)'&quot; -codec:a copy output.mp4
  </code></pre>
  <p>I have around videos for which I want to do the same command. I have the 100 commands ready through excel formulas.
  Now, can someone please help me how I can execute these 100 FFMPEG commands as a batch file on Windows 11?</p>
  
Tags: <ffmpeg><video-editor><windows>
Title: How to run multiple FFMPEG commands as a batch file in Windows 10/11?
UserDisplayName: BitBit
ThreadText: # How to run multiple FFMPEG commands as a batch file in Windows 10/11?
  
  (Asked by: username_0 on 2022-05-06)
  
  I have the following code which adds a small overlay text over my video:
  
  ```
  ffmpeg -i video.mp4 -vf "drawtext=fontfile=path\font.ttf:text='ABC':fontcolor=black:fontsize=45:box=1:boxcolor=white@1:boxborderw=5:x=(w-text_w)/2:y=50:enable='gte(t,5)',drawtext=fontfile=path\font.ttf:text='DEF':fontcolor=black:fontsize=45:box=1:boxcolor=white@1:boxborderw=5:x=(w-text_w)/2:y=100:enable='gte(t,5)'" -codec:a copy output.mp4
  
  ```
  
  I have around videos for which I want to do the same command. I have the 100 commands ready through excel formulas.
  Now, can someone please help me how I can execute these 100 FFMPEG commands as a batch file on Windows 11?
  
  **Tags:** ffmpeg, video-editor, windows
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2022-05-07. Score: 0
  
  Open any txt file editor.
  Paste each command separated by newline each (press `Enter`).
  Save as .bat (not .bat.txt, so click 'All files').
  Execute it by right click Run or Execute
  
  Consider making the 100 commands in batch and not Excel next time.
  
  
  ---
  
  ### Answer by username_2 on 2022-05-10. Score: 0
  
  You might also like to make a ".bat/.cmd" file that takes the file name as a parameter
  Note the %%1 is the input file and %%2 is the name of the output file
  =>addABC.bat
  
  ```
   ffmpeg -i %%1 -vf "drawtext=fontfile=path\font.ttf:text='ABC':fontcolor=black:fontsize=45:box=1:boxcolor=white@1:boxborderw=5:x=(w-text_w)/2:y=50:enable='gte(t,5)',drawtext=fontfile=path\font.ttf:text='DEF':fontcolor=black:fontsize=45:box=1:boxcolor=white@1:boxborderw=5:x=(w-text_w)/2:y=100:enable='gte(t,5)'" -codec:a copy output.mp4
  
  ```
  
  Then you can use it like this =>
  
  ```
  
   addabc  video.mp4 output.mp4
  
  ```
  
  its also possible to just use the input name and append something to it for the output file name
  
  
  ---
  
  