Batch-Process Video Watermarks in Blender Is it possible to use Blender to batch-process video files?

If I have twenty 1080p, 30fps vid[01-20].mp4 video files of varying 20-200 seconds duration and one 1920x1080 wm.png watermark image file.

How would I go about using Blender in the command line (in Linux) to render a version of each video that has the watermark baked into it while at the same time not using the user interface or at most using it to create one template project?

I was not able to find an answer but imagine there might be some options:


Is there a way to use Python with Blender to batch-process videos and then call the script from the command line, providing parameters like file names and durations?
Are Blender projects accessible as XML or some other format and could be extracted and modified with text processing tools (grep, sed etc.)?


I am aware of non-Blender solutions, however this needs to be solved in Blender.
I use Blender, Imagemagick and FFMPEG for this kind of work. Command line FFMPEG is much faster and straight forward tool for your job, although a linux blender command line would likely compare in speed, but might be more complex to implement.

However, you will have a lot more support with FFMPEG for this kind of common work, and the command line is simple (inputs, overlay location, output):

ffmpeg -i input-video.mp4 -i watermark.png -filter_complex "overlay=0:0" watermarked-video-output.mp4

Which would be easily looped in linux to operate on a batch of videos.