🇺🇸 English
Search…
⌃K

How do I stream a RaspiCam?

We explain how to connect the Raspberry Pi camera module to a datarhei Restreamer.

Use Raspicam as video source for live streaming in 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.
ATTENTION! Using the GPU with the Raspicam requires increasing the cache memory to 256 MB. >> To the guide <<
If unexpected behavior occurs, rebooting the Raspberry Pi will help.i
If unexpected behavior occurs, restarting the datarhei Restreamer will help.hi
Note the video where we explain encoding over the GPU from the Raspberry Pi to offload the CPU from the Raspberry Pi.

Enabling Pi Camera

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.

Raspbian buster or earlier

On the console, type sudo modprobe bcm2835-v4l2 and restart Restreamer. Then you should be able to select the Pi camera in the wizard or advanced setup.

Raspbian bullseye or later

With the latest Raspbian (bullseye) the tools for the camera are based on libcamera which 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:
  1. 1.
    Open /boot/config.txt in an editor, e.g. sudo nano /boot/config.txt
  2. 2.
    Replace the line camera_auto_detect=1 with start_x=1 and gpu_mem=256 on one line each
  3. 3.
    Save the file and exit the editor
  4. 4.
    Reboot the Pi
After the Pi rebooted you should see the Pi camera option in the UI.

Learn more