


Supposing that you want to stream from an RPi to an Ubuntu Laptop:ġ- I nstal l GStreamer in the laptop using: sudo apt -y install libgstreamer1.0-dev libgstreamer-plugins-base1.0-devĢ- In the laptop, r e-compile your OpenCV with -DWITH_GSTREAMER=ON flag in CMake. They have a wide variety of board cameras with different sensors and lenses. You may find the official CSI cameras unsuitable for your project. This means that the CPU remains free for other operations. I generally recommend to use CSI cameras with Raspberry Pi because they are directly captured by the GPU. You can later add text, layers, or do any other process you wish. The stream is then received frame-by-frame in an OpenCV code. They key to achieve this is to do the h264 encoding on the RPi GPU (not CPU). But when it comes to real-time video streaming, you may find yourself lost in a bunch of long-reptile shell commands! In this post, I will give you some crystal clear instructions to receive a low-latency stream from a CSI or USB camera. Raspberry Pi boards are getting more and more widespread.
