Skip to content

Instantly share code, notes, and snippets.

@TimothyStiles
Last active December 27, 2018 11:07
Show Gist options
  • Save TimothyStiles/c10a55b71be051cc6ba84b7aedb99ab2 to your computer and use it in GitHub Desktop.
Save TimothyStiles/c10a55b71be051cc6ba84b7aedb99ab2 to your computer and use it in GitHub Desktop.
My little script to download gifs, convert them to movies, loop them, and then send them to noisebridge's flaschen taschen.
import os
import sys
url = sys.argv[2]
#Gnarly system calls.
os.system("curl " + url + " > ~/gifs/temp.gif")
os.system("ffmpeg -y -f gif -i ~/gifs/temp.gif ~/gifs/temp.mp4")
os.system("ffmpeg -y -f concat -i ~/gifs/list.txt -c copy ~/gifs/looptemp.mp4")
os.system("~/git/noisebrdige/ft-demos/black -l14 -t3600 & ~/git/noisebrdige/ft-demos/ft/client/send-video -l15 ~/gifs/looptemp.mp4")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment