Skip to content

Instantly share code, notes, and snippets.

@ksharsha
Created March 24, 2017 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ksharsha/f28ca2f019070389c38741fb90a077d1 to your computer and use it in GitHub Desktop.
Save ksharsha/f28ca2f019070389c38741fb90a077d1 to your computer and use it in GitHub Desktop.
import json
from pprint import pprint
import glob
import os
import shutil
import sys
from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip
import subprocess
import cv2
from moviepy.editor import *
ffmpeg_extract_subclip('v_a-6lVnhqU4w.mp4', 12.334277199999999,15.97166675, targetname='1.mp4')
@ksharsha
Copy link
Author

Extracts subclips from videos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment