Skip to content

Instantly share code, notes, and snippets.

@Nat-Reid
Nat-Reid / video.py
Last active November 22, 2024 12:46 — forked from tommy-mor/video.py
memory optimized so it would run on my laptop. Also sorts by sound not pitch.
from moviepy.editor import *
import numpy as np
clip = VideoFileClip("Steamed Hams.mpeg")
import sounddevice as sd
import soundfile as sf
from queue import Queue
from collections import OrderedDict
import pprint
import pdb