Skip to content

Instantly share code, notes, and snippets.

View bethanylong's full-sized avatar
👩‍💻
Hackalackin'

Bethany Long bethanylong

👩‍💻
Hackalackin'
View GitHub Profile
from subprocess import Popen, PIPE, STDOUT
import subprocess
import math, sys
from time import sleep
from os import path, access, W_OK, R_OK, F_OK
def cut(movie, start, clip):
subprocess.Popen(["ffmpeg", #Calls ffmpeg program
"-ss",str(start), #Begining of recording, must be string
"-t", '30', #How long to record clip for, must be a string