I am wondering to create a function which can crop a video in a certain frame and save it on my disk (OpenCV,moviepy,or something like that)
I am specifying my function with parameters as dimension of frame along with source and target name (location)
def vid_crop(src,dest,l,t,r,b):
# something
# goes
# here
left = 1 #any number (pixels)
top = 2 # ''''
right = 3 # ''''
bottom = 4 # ''''
vid_crop('myvideo.mp4','myvideo_edit.mp4',left,top,right,bottom)
Any suggestions and ideas are really helpful