Raspberry Pi Camera Board Timelapse (using command line)

CanaKit Raspberry Pi 4 (4GB) Starter Kit (Amazon Affiliate)
US: https://amzn.to/3azJgrW
UK: https://amzn.to/2JdMq9o
CA: https://amzn.to/3bwiRvY
ES: https://amzn.to/2T06LnM (similar)
FR: https://amzn.to/3cvIZrs (similaire)
IT: https://amzn.to/2Ar74Sj (simile)
DE: https://amzn.to/2AqfWHQ (ähnlich)
IN: https://amzn.to/3ey6fWj
AU: https://amzn.to/2VTUt1C
NL: https://amzn.to/3f5NdsD (vergelijkbaar)

Raspberry Pi Camera Module V2-8 Megapixel,1080p (RPI-CAM-V2) (Amazon Affiliate)
US: https://amzn.to/3iDyh65

FFmpeg Notes: https://www.rickmakes.com/ffmpeg-notes/

Raspberry Pi Playlist: https://www.youtube.com/playlist?list=PLErU2HjQZ_ZPvIdR5BEqDgO7DsGAla_AZ

FFmpeg playlist: https://www.youtube.com/playlist?list=PLErU2HjQZ_ZOPDZ71Khzt5PX4X4j6flkg

Open raspi-config (Enable Camera and change GPU Memory to 256)
sudo raspi-config
Move to Desktop Directory
cd Desktop
Create Timelapse Directory
mkdir timelapse
Move to timelapse Directory
cd timelapse
Capture Still Images for Timelapse (with Preview)
raspistill -t 0 -tl 5000 -o img_%05d.jpg -w 1920 -h 1080
Capture Still Images for Timelapse (without Preview)
raspistill -n -t 0 -tl 5000 -o img_%05d.jpg -w 1920 -h 1080
Remove Images (be careful with this!)
rm *.jpg
Count Number of Image Files
ls | wc -l
Check if FFmpeg is Installed
ffmpeg -version
Install FFmpeg (if needed)
sudo apt update && sudo apt install ffmpeg
Convert Image Sequence to Timelapse Video
ffmpeg -framerate 30 -pattern_type glob -i "*.jpg" -vf "crop=in_w:in_w*9/16,scale=1920:1080" -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4
View File Listing (with human readable sizes)
ls -lh

Leave a comment

Your email address will not be published. Required fields are marked *