Created
September 27, 2018 02:52
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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