Posts: 19
Joined: Mon Sep 30, 2013 10:10 pm

Re: RTSP Streaming

Wed Jan 15, 2014 1:08 am


I saw your project and i was curious to know if this could work with OpenCV?

Could you publish and recieve raw images as byte arrays to and from an Rtsp stream?

Posts: 2
Joined: Tue Jul 01, 2014 7:56 am

Re: RTSP Streaming

Tue Jul 01, 2014 8:01 am

I want test streaming via VLC client. But the pi-streamer always prompts an error "Memory overflow" after vlc tries to establish connection. Any light on the issue wellcome :D

Posts: 2
Joined: Tue Jul 01, 2014 7:56 am

Re: RTSP Streaming

Fri Jul 04, 2014 8:34 am

I solved this problem. The problem solved by issuing root permission for my application.


Posts: 1
Joined: Sun Jul 06, 2014 2:38 pm

Re: RTSP Streaming

Sun Jul 06, 2014 2:41 pm

Can we use this to push RTP audio streams from a web browser to a digital amp which listens to RTP audio streams?

Posts: 1
Joined: Sun Jul 27, 2014 8:50 pm

Re: RTSP Streaming

Sun Jul 27, 2014 8:53 pm

I am very interested about your project.
So, how do I install it on my Pi?

Posts: 2
Joined: Mon Nov 11, 2013 12:17 pm

Re: RTSP Streaming

Thu Jul 31, 2014 1:59 am


Is there a way to store the video diectly on the Pi?

Last edited by pixeleo on Wed Oct 08, 2014 2:36 pm, edited 1 time in total.

User avatar
Posts: 359
Joined: Mon Sep 23, 2013 1:28 pm
Location: Manchester, UK
Contact: Website Twitter

Re: RTSP Streaming

Thu Jul 31, 2014 9:21 am

rtang wrote:But getting back to your question, so yes, it sounds like raspivid and cvlc do accomplish what my application does. In regards to high and low resolution, I think that's theoretically possible (depending on the resolution), though I don't know if this is something the MMAL API supports (I have not looked into this yet). If MMAL API does support this, then there's no reason why my app can't forward a another stream to a different port.

That being said, are you also expecting the application to perform the record and motion detection? I'm not sure if the Pi has enough horse power to perform motion detection as well as recording at the same time. Or are you suggesting these are done on the receiver end?
Very interesting project! A quick aside on the subjects above: multi-resolution recording is indeed possible by utilizing a splitter and resizer in the encoding pipeline. Also, recent firmwares have the ability to include motion estimation data from the H.264 encoder in the stream, which can be used to implement a crude form of motion detection with minimal processing on the Pi (although those doc links are for my Python-based camera library, it's all implemented with MMAL underneath).

Author of / contributor to a few pi related things (picamera, Sense HAT emulator, gpio-zero, piwheels, etc.), and currently a software engineer at Canonical responsible for Ubuntu Server and Core on the Raspberry Pi.

Posts: 1
Joined: Sat Aug 09, 2014 10:55 pm

Re: RTSP Streaming

Sat Aug 09, 2014 11:01 pm

hi,would you share how we can modify width,height and fps?

Posts: 1
Joined: Wed Aug 27, 2014 6:09 pm

Re: RTSP Streaming

Wed Aug 27, 2014 6:44 pm

Is there a way to decrease resolution and fps? It's working now, but I need an instant transfer from raspberry pi to computer. There's a latency around 5 seconds. I've decreased network cache size in vlc player to 50 (This is the minimum value I can see the video), still there's a 1 second latency. Resolution and fps is not that important in my project (It's a quadcopter). If there's a way to decrease resolution and fps, please tell it in such a way that a newbie can understand :)

Posts: 12
Joined: Fri Sep 12, 2014 1:57 pm

Re: RTSP Streaming

Tue Dec 09, 2014 2:41 pm

Hello there,

I managed to this project correctly and it runs very well when i see it in vlc.
Now i want to merge it in wowza. As soon as I create a stream with the rtsp address of the pi stream
it stops and gives me the following error
app: ./src/sx_mgmt_rtsp.c:520: tcp_listener_thread: Assertion 'rc == 0' failed.

After deleting the stream and waiting for about 1/2 minute it can run again, but if i do the same to
view it in wowza it goes the same error again. What should i do?

Posts: 32
Joined: Sat Mar 30, 2013 9:33 am

Re: RTSP Streaming

Thu Dec 11, 2014 2:40 pm

Any news on customizing the camera parameters ? resolution would be a great start.

User avatar
Posts: 3716
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

Re: RTSP Streaming

Thu Dec 11, 2014 3:04 pm

A little off-topic (not RTSP Streaming) but I was able to get 250 msec latency with 640x480 30 fps using the method below. Certainly a lot better than several seconds delay. ... 43&t=93615

Here it is what it looks like streaming over wifi:

Posts: 5
Joined: Sun Dec 14, 2014 9:58 am

Re: RTSP Streaming

Sun Dec 14, 2014 10:22 am

"app" not work for me :(

When i started read stream from remote device i have crash on RPI :

MGMT_RTSP: RTSP Request [session ID = 0]:
SETUP rtsp:// RTSP/1.0
CSeq: 4
User-Agent: LibVLC/2.1.5 (LIVE555 Streaming Media v2014.05.27)
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
Segmentation fault


Posts: 32
Joined: Sat Mar 30, 2013 9:33 am

Re: RTSP Streaming

Sun Dec 14, 2014 7:28 pm

i'm also getting a lot of segmentation faults after a while of streaming.

Posts: 3
Joined: Fri Mar 07, 2014 1:12 am

Re: RTSP Streaming

Wed Nov 25, 2015 7:33 pm

This is working perfectly but how can I adjust size, fps etc to reduce bandwith?

The German
Posts: 11
Joined: Sun Feb 08, 2015 9:49 pm

Re: RTSP Streaming

Sun May 08, 2016 9:54 pm

Segmentation fault is all the app provides when a client connects (Jessie on Pi model 3).

Return to “Camera board”