# 2022-07-27 Raspberry Pi Zero 2W with 'ZeroCam'. ## stills at 0.5s intervals, stopping 10s from the command start, output names by unix timestamp $ raspistill -e jpg -tl 500 -ts -bm -t 10000 -o s%d.jpg $ raspistill -w 1920 -h 1080 -e jpg -tl 500 -ts -bm -t 10000 -o s%d.jpg ## video to file $ raspivid -t 6000 -l --framerate 30 --width 1920 --height 1080 -o v.264 # followed by: $ MP4Box -add v.264 v.mp4 # set: -t 0 for endless # --qp is quality parameter: '10 to 40', higher being lower quality and thus smaller size (probably like our familiar ~22--28 quality in mencoder 264 encoding) # --bitrate 0 [bps] leaves rate entirely automatic $ raspivid -t 6000 -l --bitrate 0 --qp 24 --framerate 30 --width 1920 --height 1080 -o oot.264 # other possibility ... not working nicely for us [yet] v4l2-ctl --set-fmt-video=width=1920,height=1080 -d /dev/video0 v4l2-ctl -d /dev/video0 --stream-mmap=4 --stream-to file.out ## streaming #?needed? or loaded anyway? # modprobe -v bcm2835-v4l2 # this worked rpi $ raspivid -t 0 -l -o tcp://0.0.0.0:3333 client $ cvlc tcp/h264://rpi0:3333/ # or non-default values rpi $ raspivid -h 480 -w 640 -fps 10 -t 0 -l -o tcp://0.0.0.0:3333 # one option $ git clone https://github.com/mpromonet/v4l2rtspserver.git $ cd v4l2rtspserver && cmake . && make -j4 $ ./v4l2rtspserver -W 1920 -H 1080 -F 10 # another cvlc v4l2:///dev/video0 --v4l2-width 1920 --v4l2-height 1080 --v4l2-chroma h264 --sout '#standard{access=http,mux=ts,dst=0.0.0.0:5555}'