Skip to content

Instantly share code, notes, and snippets.

@agalera
agalera / split_video.py
Created February 6, 2017 09:32
split video with moviepy
from moviepy.editor import *
from multiprocessing import Process, Semaphore
import sys
segment_length = float(sys.argv[1])
frames = float(sys.argv[2])
original_video = VideoFileClip("original.mp4")
duration = original_video.duration
clip_start = 0