This post is from a low-reputation account and contains an unverified outbound link. Be cautious before clicking external links.

Raspi, a webcam and a beautiful day.

koad(28)
Published in
#timelapse
Words
145
Reading
1 min
Listen
Play
9y

I am setting up a raspberry pi to capture the erection of a building going up near my apartment. Today I shot almost a full day's worth before the pi's 8gb SD card filled up stopped recording.

I used a simple bash script to capture a photo, sleep for 5 seconds then capture again. It takes about 5 seconds to take each frame, as it basically turns the camera on and off each time it takes the shot so I get around 1 image every 10 seconds.

I still have a bunch of tweaking to do and will likely run the frames though a deflickering filter for the final video, but for now I am just using ffmpeg to stitch the raw photos into a 60fps video. (the following command)

ffmpeg -r 60 -f image2 -s 1920x1080 -i frame%06d.jpg -vcodec libx264 -crf 25  -pix_fmt yuv420p output-60fps.mp4

I posted the day's results on youtube so you all can take a gander.

/koad

Raspi, a webcam and a beautiful day. | Ecency