Script for video files batch conversion?

Hi all,
i hope this is the right place to ask. I need some help with the following issue:

I have a lot of old *.avi Video files that were recorded with a camcorder. Under Windows, they work well, but they not run on a smart tv device. I found that i can open the *.avi videos in blender, and save them from there as a “modern” Format such as mp4. As there are about threehundred videos, all with different lenghts, i do not want to spend weeks of time of opening and converting them manually.

So, in short, would it be possible to do a script/addon that

  • opens a video file from disk from a specified folder
  • finds the number of frames of that video
  • and converts the video by saving it to mp4 or whatever modern file format (into another folder)
  • loops this action trough all videos in the given folder

All current videos are *.avi files. Their file namy vary in length, but all names are a combination of numbers (e.g. 200701101256.avi)

As i don’t know anything about coding, some help would be really fine. Thanks a lot in advance !

Karl Andreas Groß

You can try https://handbrake.fr/docs/en/1.0.0/advanced/queue.html

It has ques to make conversion of multiple files.

Hi Birkov,
that a very good tip, and everything worked as well as planed - thank you very much!!!

Best & Solved :wink: