<p>A script that generates a custom ffmpeg command based on inputs provided could do this. You'd need to construct a filter complex with scale/crop filters for each video and multiple overlay filters with time conditions for the compositing. If you're willing to learn and trial it out, grab the Win static binaries <a href="http://ffmpeg.zeranoe.com/builds/" rel="nofollow">here</a> and start with some <a href="https://trac.ffmpeg.org/wiki/FilteringGuide" rel="nofollow">basic</a> <a href="https://trac.ffmpeg.org/wiki/Create%20a%20mosaic%20out%20of%20several%20input%20videos" rel="nofollow">guides</a>.</p>

CC BY-SA 3.0
2015-12-21T12:03:03.470Z
Thanks - I've found a very similar request over on StackOverflow which gives me a starting point. http://stackoverflow.com/questions/13390714/superimposing-two-videos-onto-a-static-image
NeilD
CC BY-SA 3.0
2015-12-21T11:18:23.770Z
2015-12-21T11:18:23.770Z
Gyan
<p>I need to create a number of videos from a template - they will have an image background, and then 1-4 separate videos appearing over the top. Something like this: </p>

<p><a href="https://i.sstatic.net/xN9zt.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/xN9zt.png" alt="enter image description here"></a></p>

<p>The catch - these videos will need to be automatically generated in some way by a server. </p>

<p>Is there some software out there that will spit out video files according to a template like this? 
I'd need a way to set the background image, as well as the number and position of the overlay videos. </p>

<p>This will ideally be done on a Windows server, but I can use other operating systems if need be. </p>

<windows><automation>
Automatically generate videos from template
NeilD
# Automatically generate videos from template

(Asked by: username_0 on 2015-12-21)

I need to create a number of videos from a template - they will have an image background, and then 1-4 separate videos appearing over the top. Something like this:

[![enter image description here](https://i.sstatic.net/xN9zt.png)](https://i.sstatic.net/xN9zt.png)

The catch - these videos will need to be automatically generated in some way by a server.

Is there some software out there that will spit out video files according to a template like this?
I'd need a way to set the background image, as well as the number and position of the overlay videos.

This will ideally be done on a Windows server, but I can use other operating systems if need be.

**Tags:** windows, automation


---

## 1 answers

### Answer by username_1 on 2015-12-21. Score: 1 | Accepted answer

A script that generates a custom ffmpeg command based on inputs provided could do this. You'd need to construct a filter complex with scale/crop filters for each video and multiple overlay filters with time conditions for the compositing. If you're willing to learn and trial it out, grab the Win static binaries [here](http://ffmpeg.zeranoe.com/builds/) and start with some [basic](https://trac.ffmpeg.org/wiki/FilteringGuide) [guides](https://trac.ffmpeg.org/wiki/Create%20a%20mosaic%20out%20of%20several%20input%20videos).

> **Comments:**
> **username_0**: Thanks - I've found a very similar request over on StackOverflow which gives me a starting point. http://stackoverflow.com/questions/13390714/superimposing-two-videos-onto-a-static-image  

---

