![]() After installing it ( sudo apt-get install ffmpeg) just wang out this: ffmpeg -r 30 -i %04d.jpeg -s hd480 -vcodec libx264 -vpre hq time-lapse.mp4 There are many different ways of putting it together including mencoder but I just prefer ffmpeg's outlook on life. That line will give you 2000 images, it'll take half an hour to record and, at 30fps, will generate just over 1 minute of video. ![]() You'll want to tune this appropriately depending on how much output video you want. If you compress that down into a 30fps video, one minute of capture becomes 2 seconds of video. So this should grab one frame every second. ![]() t is the number of frames we want to capture. We use streamer to do the capture so let's install it: sudo apt-get install streamerĪnd now we want to capture streamer -o 0000.jpeg -s 300x200 -j 100 -t 2000 -r 1 Let's imagine you want to take a photo once every 10 seconds and save that into a directory sitting on your desktop mkdir ~/Desktop/cap
0 Comments
Leave a Reply. |