A python package for gif-making.
nathandemaria / picturetoburn Goto Github PK
View Code? Open in Web Editor NEWA python package for gif-making.
A python package for gif-making.
Videos on Twitter don't work :(
Like this one: https://twitter.com/nickscalera/status/1148217076441591808?s=09
My workaround is currently inspect network activity for an .m3u8
and send that in to ffmpeg -i thing.m3u8 thing.mp4
and then create_gif thing.mp4
๐
Sprinkle a little bit of ML to it?
I think this happens b/c it grabs a different video than I expect.
create_gif https://twitter.com/TheRealEmica/status/1170525766221783040?s=09
Traceback (most recent call last):
File "C:/Users/nathan.demaria/AppData/Local/Continuum/miniconda3/Scripts/create_gif", line 7, in <module>
exec(compile(f.read(), __file__, 'exec'))
File "C:\Users\nathan.demaria\github\PictureToBurn\bin\create_gif", line 43, in <module>
Fire(convert)
File "C:\Users\nathan.demaria\AppData\Local\Continuum\miniconda3\lib\site-packages\fire\core.py", line 127, in Fire
component_trace = _Fire(component, args, context, name)
File "C:\Users\nathan.demaria\AppData\Local\Continuum\miniconda3\lib\site-packages\fire\core.py", line 366, in _Fire
component, remaining_args)
File "C:\Users\nathan.demaria\AppData\Local\Continuum\miniconda3\lib\site-packages\fire\core.py", line 542, in _CallCallable
result = fn(*varargs, **kwargs)
File "C:\Users\nathan.demaria\github\PictureToBurn\bin\create_gif", line 22, in convert
size_mb = os.path.getsize(gif) / 1000000
File "C:\Users\nathan.demaria\AppData\Local\Continuum\miniconda3\lib\genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [WinError 2] The system cannot find the file specified: '6pq5sqe6nYZJO1rz.gif'
Print out a path to the .gif
created. Also maybe clean up the .mp4
from the Twitter gifs
Allow create_gif <video> <start> <end>
to make a gif out of a time-slice of a video
Support links to YouTube videos in create_gif
Make a README:
Run create_gif
automatically when a gif link is added to a Trello board. Webhook -> AWS lambda?
This can make gifs that are too big to auto-display on Slack. Example: sad puppy. But I like gifs on Slack.
Find a gif in giphy -> media -> mp4 (to get around the "this is a .webm" stupidness
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.