[last updated: 2020-04-29]
go to: camera modules
-----
- Forum Notes:
Several different approaches, but here's some basics:
- rPi menu > Preferences > RPI Configuration > Interfaces > Camera: Enabled
reboot
- Using raspistill:
- $ raspistill -o Desktop/image.jpg
This saves a still image to desktop
- $ raspistill -o Desktop/image-small.jpg -w 640 -h 480
to change parameters
- raspistill shows a 5-sec preview. This command does not save a file, but the preview stays on, essentially live streaming to your monitor:
$ raspivid -t 0 ???
- "Add the '-p x,y,w,h' option to raspistill if you want to move the overlay around. That is rendering directly within the GPU, so the latency is as low as you are going to get it."
- Another post says you must "prevent the RPi from blanking the screen. There are several posts that explain how to do this."
$ raspistill -f -t 0
- Using raspivid:
- $ raspivid -o Desktop/video.h264
records a video
- "cheese" is mentioned as another program to use...
- Another option:
If you're using Python and the python-picamera library.
camera.start_preview()
camera.stop_preview()
- Another option:
1. Install Raspbian and make sure you have a working desktop
2. Install mjpeg-streamer ((link to:) wolfPaulus pi webcam/)
3. Launch browser on your desktop and open http://localhost:8080
You should get full resolution at full frame rate of your usb cam
- Another option:
an official v4l2 driver available: (link to:) ics.com rPi module This renders the mentioned re-streaming obsolete. Simply load the module and use it:
sudo modprobe bcm2835-v4l2
cvlc v4l2:///dev/video0 --v4l2-width 1920 --v4l2-height 1080 --v4l2-chroma h264 --sout '#standard{access=http,mux=ts,dst=0.0.0.0:12345}'
This creates an http stream at port 12345, you can use other formats too, like the rtcp one ... Read more on it here: (link to:) webarchive Advanced streaming using CLI
- Project tutorials:
.
.
.
eof