How do I stream a RaspiCam?
We explain how to connect the Raspberry Pi camera module to a datarhei Restreamer.
Check that the device is installed correctly before the restreamer recognizes the camera module. As soon as the device is available on the host system, it is automatically displayed in the Restreamer.
YouTube video: Using Raspicam as video source for live streaming
There are several types of camera boards available for the Raspberry Pi. The official Raspberry Pi cameras can take high-resolution photos and Full HD 1080p videos and be fully controlled. After the installation in the "raspi-config" menu, all cameras can be used in the Restreamer for live streaming.
If you have a Pi camera connected to your Raspberry Pi and you want capture a stream from it, you might first need to make it available as a "video4linux" device.
On the console, type
sudo modprobe bcm2835-v4l2and restart Restreamer. Then you should be able to select the Pi camera in the wizard or advanced setup.
With the latest Raspbian (bullseye) the tools for the camera are based on
libcamerawhich is not necessarly compatible with video4linux and is currently not supported by ffmpeg. In order to make the camera available as a video4linux device you have to switch it into legacy mode:
/boot/config.txtin an editor, e.g.
sudo nano /boot/config.txt
- 2.Replace the line
gpu_mem=256on one line each
- 3.Save the file and exit the editor
- 4.Reboot the Pi
After the Pi rebooted you should see the Pi camera option in the UI.