Welcome folks today in this blog post we will be using python
to create the split screen
videos in command line. All the full source code of the application is shown below.
Get Started
In order to get started you need to install the below library using the pip
command as shown below
pip install moviepy
And after that you need to make an app.py
file and copy paste the following code
app.py
1 2 3 4 5 6 7 8 9 10 11 |
from moviepy.editor import * length = 2 clip1 = VideoFileClip("vid1.mp4").subclip(0, 0+length) clip2 = VideoFileClip("vid2.mp4").subclip(0, 0+length) combined = clips_array([clip1, clip2]) combined.write_videofile("output.mp4") |