Le calepin du geek
Geek : Personne s’intéressant à des domaines pointus, avec une once de créativité.

Ceci est un site perso, dans le pur esprit web 1.0, compilant des notes diverses sur des thèmes d’intérêt. (Informatique, programmation, voyage à vélo, réflexions)

Script for batch processing of multiple video with avidemux (2018)

If you’re not a programmer but still an advanced user, this should make your life easier to automate the batch processing of multiple file encoding with avidemux.

Article mis en ligne le 22 avril 2018
par aldoniel
Imprimer cet article logo imprimer


Zip - 738.2 ko


  • batch processing of multiple file encoding with avidemux.
  • support for recursive directory parsing (ie, it can process all the files in the subdirectories.)
  • ability to save/load various configs as files.
  • not too time consuming for me to write. So, all option are in a config file, and the script runs in the windows console. Usage may be restricted to "advanced" users.


  • uncompress the zip in some directory where you have write permission (ex : my document).
  • export your own tinypy config file for video and audio codecs using avidemux (see Batch processing of multiple video with avidemux (2018))
    • save it somewhere (ex : in the same dir as the script)
  • open lastconfig.ini
    • change avidemux_path to your path to avidemux_cli.exe. (You can use instead avidemux.exe if you want to see avidemux ; avidemux_cli being the command line frontend).
    • change tinypy_config to the path to the tinypy config file that you’ve just created.
    • change the input/output extension (see limitations)
    • optionally, you should read autoavidemux config help.html to set the other options.
  • save to somename.ini (lastconfig.ini is overwritten with the last config when you exit).
  • run autoavidemux1.exe
  • follow the instruction on screen (for this first run, choose to load the ini file you’ve just created.)

 Script preview

Sorry, i have some nostalgia for console mode, and it’s easier than to write a GUI.

 Bugs, limitations

  • lots obviously ;-)
  • there is no input file list support (and will be none). You have to specify some file extension as input (avi ; mp4...) .
  • If you have multiples types of extension, the only way is :
    • to copy all your videos in a directory (with or without subdirectories) AND to point output_video_path to an output directory. I think that using same_as_input might work in certain circumstances but I wouldn’t try.
    • Then run autoavidemux_all_extension.exe which is designed for this purpose only.
  • If you select parameters leading to file overwrite (example, input dir = output dir, same extension) , there is no warning in avidemux, and little protection in the script to prevent overwrite (it may add the date of the day to the output name).


  • the source in autoit is included if you want to change something.
  • All tests were done with avidemux 2.7 running on windows 10.
  • Use at your own risk ; backup ; I’m not responsible for anything that may or may not go wrong.

Site réalisé sous SPIP
avec le squelette ESCAL-V3
Version : 3.70.61