How To Take a Picture:
raspistill -o filename.jpg
To Do A Vertical Flip:
raspistill -vf -o filename.jpg
To Do A Horizontal Flip:
raspistill -hf -o filename.jpg
To Do Both Horizontal And Vertical Flip:
raspistill -vf -hf -o filename.jpg
To Record A Video With The Pi Camera:
raspivid -o filename.h264
To Record A Video For X Amount Of Seconds:
-t 10000 Is 10 Seconds:
-t 20000 Is 20 Seconds And So On:
raspivid -o filename.h264 -t 10000
To Make A Time Lapse:
-t 30000 Is 30 Seconds
-tl Is Time Between Each Picture
raspistill -t 30000 -tl 2000 -o filename%04d.jpg
Let's Install The Following:
sudo apt install ffmpeg
Let's Render The Time Lapse:
ffmpeg -r 10 -f image2 -pattern_type glob -i 'filename*.jpg' -s 1280x720 -vcodec libx264 filename.mp4
Key For Render Option:
-r 10 Set Frame Rate To Ten Frames Per Second In The For Video.
-f image2 ffmpeg To Read The List Of Images By Pattern.
-pattern_type Importing The Image Files, By Using Wildcard Patterns
-i 'filename*.jpg' The Input File Specification "Change To Match Filename"
-s 1280x720 Scale To 720p. To Do 1080 Use 1920x1080, Or Lower Resolutions
-vcodec libx264 Software Being Used x264 Encoder.
filename.mp4 File Name For Video