MoviePy: how to crop video like in the post?

Viewed 21

I need to crop a lot of videos like that:

The original video

What i need

I need to make 2 videos: with left side of original video and with right side of original video

Is there a method in MoviePy that can helps me? Or is there other Python library?

P.S. Part of code:

from os import listdir
from os.path import isfile, join
from moviepy.editor import *

mypath = 'C:/Users/honorr/Desktop/razm'
onlyFiles = [f for f in listdir(mypath) if isfile(join(mypath, f))]

k=0
for filename in onlyFiles:
    k += 1
    clip = VideoFileClip(filename)./**Func that i need**/
    a = clip.write_videofile(f'2.{k}-p.mp4')
0 Answers
Related