How to render / release directly to mp4 or gif, plus how to make a better gif with gifsky
See original GitHub issueI’m excited there is an easy way to render directly to mp4!
At first, I got stuck with the following error:
▶ coldtype sources/04-coldtype/bigger-loop.coldtype.py
>>> watching... sources/04-coldtype/bigger-loop.coldtype.py
DEFAULT RENDER ACTION
> ffmpeg
writing mp4...
[image2 @ 0x7ff6d080b400] Could find no file with path '/Users/stephennixon/type-repos/shantell-sans/sources/04-coldtype/renders/bigger-loop.coldtype/scratch/scratch_%4d.png' and index in the range 0-4
/Users/stephennixon/type-repos/shantell-sans/sources/04-coldtype/renders/bigger-loop.coldtype/scratch/scratch_%4d.png: No such file or directory
...done
The file /Users/stephennixon/type-repos/shantell-sans/sources/04-coldtype/renders/bigger-loop.coldtype does not exist.
…even though I do have ffmpeg installed.
However, I eventually tried hitting a
first to let the frames render, and then hitting r
to make an mp4, and… it works!
So, I guess my point of filing this issue is:
- Documenting it in case some searches
- Documenting it so that perhaps there could be a simpler error message, or better yet, perhaps a step to auto render frames if needed, then render the mp4, all with one
r
button press - Learn if I was doing something wrong! This is usually the case. 😅
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top Results From Across the Web
gifski — highest-quality GIF converter
gifski converts video frames to GIF animations using pngquant's fancy features for efficient cross-frame palettes and temporal dithering. It produces animated ...
Read more >gifski: Highest Quality GIF Encoder
Gifski converts image frames to high quality GIF animations. Either provide input png files, or automatically render animated graphics from the R graphics ......
Read more >ImageOptim/gifski: GIF encoder based on ... - GitHub
Highest-quality GIF encoder based on pngquant. gifski converts video frames to GIF animations using pngquant's fancy features for efficient cross-frame ...
Read more >Converting Video to GIF: How to Use Photoshop and GIF ...
Is there a way to create your own GIF? Is it possible to convert a video to GIF? YES! Video to GIF Using...
Read more >In gifski: Highest Quality GIF Encoder - Rdrr.io
Gifski converts image frames to high quality GIF animations. Either provide input png files, or automatically render animated graphics from the R graphics ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Interesting! The
a
thenr
thing is definitely because, back when I was making lots of lyric videos, I was really only viewing the frames in an NLE, so ther
step was all part of Premiere or something like that. Definitely makes sense that you’d want to do both though, and I’ll admit I’ve shifted away from using NLE’s for shorter videos as well. There is a keyboard shortcut (routed internally toKeyboardShortcut.RenderAllAndRelease
in the keyboard.py source) that will do both a render & a release at once (the keyboard shortcut is shift+cmd+a), but that (like so much else) needs to be documented.I’ll also admit I don’t regularly make gifs, so I haven’t seen that funky color issue, though I did just replicate it on my setup. Pretty weird! I looked at the drawbot source and it looks like they use gifsicle internally. I tried that but had some trouble with it on the command line, though looks like gifski is another option, which does work. So one option for a better gif export would be to roll a gifski wrapper and call it from a custom release function, like this (would require a
brew install gifski
if you don’t have it):Will work on a better error message regardless!
ah nice note on
-W
— just added that to a little generic gifski wrapper made available incoldtype.renderable.animation
(added an example to the repo here https://github.com/coldtype/coldtype/blob/main/examples/animations/transparent_gifski.py)also added a better error message for the original issue, which will be released with 0.9.7 very shortly — will close for now, thanks for reporting!