Skip to content

Instantly share code, notes, and snippets.

View yokoleia's full-sized avatar

Rab Dawanincura yokoleia

View GitHub Profile
@yokoleia
yokoleia / convert.py
Last active November 25, 2020 12:03 — forked from michaelosthege/convert.py
Mass Convert MP4/AVI clips to GIF with a multithreaded Python function, using a variable to set number of threads required.
import imageio
import os, sys
import glob
import threading
import time
class TargetFormat(object):
GIF = ".gif"
MP4 = ".mp4"
AVI = ".avi"