The other way is to set up your camera so that it takes a photo every 1 or 2 seconds. timelapsify.sh input.avi output.mp4įfmpeg -i $1 -r 1 -f image2 ffmpeg_temp/%05d.png It takes an input video filename and an output video filename as command line arguments: #!/bin/bash Here’s a bash script (timelapsify.sh) that uses FFmpeg to convert a normal video into a time-lapse video. For example, by extracting one frame per second from a 60 minute video, you can drop the length to a much more watchable, entertaining, and web-friendly 2.4 minutes (not to mention a smaller, easier to download file size). This gives you an effective speedup of 25x. With the first, you take an existing video, recorded at 25 (or 30) frames per second, and strip out all the frames except for one every second. I chose FFmpeg because it was easy to use, and available on Ubuntu. How to make a time-lapse video with FFmpegĮssentially there are two ways to make a time-lapse video, regardless of the tool.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |