Skip to content

Instantly share code, notes, and snippets.

@TimothyStiles
Created September 27, 2018 02:52
Show Gist options
  • Save TimothyStiles/cccd1cf7c50beca99a74fb6acfb64942 to your computer and use it in GitHub Desktop.
Save TimothyStiles/cccd1cf7c50beca99a74fb6acfb64942 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]
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