This repository contain code to stream video from camera to other machine on local network using Gstreamer.This code provide a convenient wrapper API in C++ to stream to multiple clients.This project can be used wrapper code for streaming of camera frames with very low latency.It can also be used to add multiple sinks.
Download or clone this repository to your local Raspberry File System.
You need to have installed GStreamer on both source and target machines.This can be done using
sudo apt-get install gstreamer-1.0*
Download this project to your machine. Move to the folder using
cd Gstreamer-Streaming
And compile using
g++ -o streamer qstreamer.cpp qstreamer.h Test.cpp `pkg-config --cflags --libs gstreamer-1.0`
Run this using
./streamer
Provide the respective details.
Use gstreamer pipeline mentioned below to view the camera stream:
gst-launch-1.0 -v udpsrc port=9000 ! "application/x-rtp, payload=96" ! rtpjpegdepay ! jpegdec ! autovideosink
- Amanpreet Walia
This project is licensed under the MIT License - see the LICENSE.md file for details