5 ms·
The same scripts will output videos for HTML5 if you replace the `to_gif` method by `to_videofile`: clip.to_videofile('animation.mp4') clip.to_videofil
by zulko 13y ago
The same scripts will output videos for HTML5 if you replace the `to_gif` method by `to_videofile`:
clip.to_videofile('animation.mp4')
clip.to_videofile('animation.webm', codec='libvpx')
clip.to_videofile('animation.ogv',codec='libtheora')
- daliusd 13y agoCan I make video/gif from multiple photos?
- zulko 13y agoYou can do that with ffmpeg or ImageMagick. Something like ffmpeg -i *.png output.gif You have options like delay, loop, etc.
- lelandbatey 13y agoYep, that's how I do my gif conversions because it allows for much finer control, and often returns better results. I built an entire app around abstracting this technique: http://gifmachine.xwl.me/ http://gifmachine.xwl.me/
- daliusd 13y agoYes, I guess I could figure out such options but let me explain what problem I have. I take multiple photos (e.g. my camera can take 10 photos per second) and want to make video from that. Gif is poor option as photos are taken with hand and are shaky a little bit. Gif will get big in size because of that alone. Video (e.g. webm) is very good alternative for that. Your project (?) offers option to add text (and other nice little details) and that makes it killer alternative.
- jonesetc 13y agoI haven't used this, but it looks like this might be what you're looking for [1]. Construct with a folder name and framerate and then use the to_videofile method. https://github.com/Zulko/moviepy/blob/master/moviepy/video/io/DirectoryClip.py?source=cc https://github.com/Zulko/moviepy/blob/master/moviepy/video/i...