Forums > Jitter

State of a rtsp connection

January 17, 2010 | 12:02 pm

Throu a wireless rtsp connection I get a streaming from a network camera. Unfortunately the wireless connection is not stable and I need to know in my patcher the connection state. I’m using the object which is initialized by the message ‘read rtsp://‘ and I’m looking for a parameter which can tell me when the connection to the camera is lost in order to restart the streaming. I tried all parameters in the help files but no one helps.
I’ working with MAX5

Thank you very much for your help,

January 17, 2010 | 5:00 pm

Just a guess here, but if you set the "unique" attribute for to 1, it will only pass out new frames when it gets them. If you connect >> t b >> delay 5000 >> bang, that last bang will tell you within 5 seconds if you have lost a connection (since no new frames are coming in, won’t pass anything out its outlet). Change the delay time to adjust the amount of time you wish to wait before finding out if the connection is down.

It’s just a thought. There might be a better way to do this, but this might provide a starting point?


January 17, 2010 | 7:14 pm

Thank you very much for your reply, David. I tested your suggestion but unfortunately the attribute ‘unique’ does not work for streaming. If I activate the attribute, no frames are sent to the window.

I think I found a solution with the object During the streaming I send pings to the ip camera and if cannot reach it after a certain time I give the impulse to read the camera again. I wrote a patcher which you can download here:


Viewing 3 posts - 1 through 3 (of 3 total)

Forums > Jitter