Skip to content

Instantly share code, notes, and snippets.

View in03's full-sized avatar
💭
Working on new projects!✨

Caleb Trevatt in03

💭
Working on new projects!✨
View GitHub Profile
@in03
in03 / multithreaded-socket-server.py
Created March 11, 2021 12:28
socket server using multithreading to catch keyboard interrupts
# Thanks GratefulGuest from SO:
# https://stackoverflow.com/questions/34871191/cant-close-socket-on-keyboardinterrupt
from multiprocessing import Pipe, Process
from socket import socket, AF_INET, SOCK_STREAM
from threading import Thread
import time
def detect_interrupt(conn):
try:
@in03
in03 / encode_resolve_proxies.py
Last active October 5, 2023 17:08
Encode proxies for DaVinci Resolve using FFMpeg
# Windows: Create a shortcut to a .bat file in 'shell:sendto' to call this script with files passed as arguments
# Use with 'save_proxy_clip_list.py' gist to quickly pull used timeline clips into FFMPEG.
# Use 'link_proxies.py' gist to relink proxies correctly.
# Bug in current Resolve release links clips wrongly to one or two proxies only.
# This assumes FFMPEG is on path.
import os, sys, shutil
import subprocess
import argparse
import pathlib
@in03
in03 / black-edge-check.py
Last active October 27, 2020 03:37
Video Blanking Detection
import sys
import os
import cv2
import numpy as np
import time
from tqdm import tqdm
from plyer import notification