[Live-devel] propery way to reseting camera on frame timeout

Ross Finlayson finlayson at live555.com
Sat Dec 7 06:20:22 PST 2019


I don’t recommend checking for timeouts at such a low level in the codfe, because this will complicate the normal (common-case) running of the code, and because  timeouts (and/or other failures) of RTSP/RTP connections can occur at many different levels (e.g., closure of the RTSP TCP session by the server).

Instead, I suggest that you try running the existing “LIVE555 Proxy Server” - see <http://www.live555.com/proxyServer/> - as it automatically checks for (and recovers from) session timeouts (at several levels).  If you run the “LIVE555 Proxy Server” - with your camera as the ‘back end’ stream - then you may be able to run existing RTSP clients (e.g., “openRTSP”, “testRTSPClient”, or 3rd-party media players like VLC) as your ‘front end’ client, without modification.

Alternatively, if you still want to modify RTSP client code yourself, then you could look at how “openRTSP” <http://www.live555.com/openRTSP/> implements its "-D <maximum-inter-packet-gap>” option.  (Look at “testProgs/playCommon.cpp”, and search for “checkInterPacketGaps”.)


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the live-devel mailing list