User avatar
Posts: 31
Joined: Wed Feb 05, 2014 7:12 pm
Location: Brasil

Configure Video Streaming with GStreamer.

Fri Mar 28, 2014 3:43 am

Streaming between RPi with GStreamer

Hello, I have tried numerous ways to find video streaming between two Rpi. (RPi-1) with the camera and the other (RPi-2) connected for LAN CROSSOVER by viewing this video.

I tried to PiCamera, but the video is very slow and with delay. :(

Using RaspiMJPEG "RPI Cam Web Interface", selecting a very low resolution in preview, with a good answer, but the CPU processing RPI will the 100% with the Broswer. This limits me a lot. :|

But Using Streaming with GStreamer, the answer is GREAT. Perfect. UDP streaming with Image Good Resolution, and a great RPi-2 processing on the Receives. :D :D

I have used these two parameters:

RPi-1, with the camera:

Code: Select all

raspivid -n -w 800 -h 600 -b 4500000 -fps 25  -hf -t 0 -o - | gst-launch-1.0 -v fdsrc !  h264parse ! rtph264pay config-interval=10 pt=96 ! udpsink host= port=9000
RPi-2, which displays the streaming:

Code: Select all

gst-launch-1.0 -v udpsrc port=9000 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! video/x-h264,width=640,height=480, framerate=30/1 ! h264parse ! omxh264dec ! autovideosink sync=false 
But this way, I'm not having control over how the image is displayed in the RPi-2. :(


The image takes up the entire screen and is about the system.

Is there any possibility to parameterize the position and size of the streaming window, which appears in the RPi-2?

Or, would get that stream to a Broswer or own Video Player that works with GStreamer?

I need someone with more knowledge assist me with my doubts those!

Thank you

Sorry for my English!

Marcos Scholl

User avatar
Posts: 156
Joined: Wed Jan 21, 2015 11:20 pm
Contact: Website

Re: Configure Video Streaming with GStreamer.

Mon Mar 23, 2015 10:07 pm

Just came across your post. Nice work. Have you done more work on this recently?

Return to “Camera board”