I am currently using GStreamer for a similar project (lecture-grab). You are probably looking for the videomixer element . Check out this example: Video 4-way splitter screen gstreamer (the script is here ).
GStreamer works great on Windows. If you're interested, you can check out GStreamer WinBuilds .
Example
Here is a basic script that works for me on Windows (it does not have backslashes because I use the gst_parse_launch call from C code to parse the pipeline description):
v0. ! queue
v1. ! queue
v2. ! queue
v3. ! queue
vmix. ! queue
filesrc location="c:/test.mpg" name="v0"
filesrc location="c:/test.mpg" name="v1"
filesrc location="c:/test.mpg" name="v2"
filesrc location="c:/test.mpg" name="v3"
videomixer name=vmix
sink_0::xpos=0 sink_0::ypos=0 sink_0::zorder=0
sink_1::xpos=320 sink_1::ypos=0 sink_1::zorder=1
sink_2::xpos=0 sink_2::ypos=240 sink_2::zorder=2
sink_3::xpos=320 sink_3::ypos=240 sink_3::zorder=3
source
share