<font color="#666666"><font size="4"><font face="times new roman,serif">Hello everyone,<br><br>I am using openRTSP for recording video clips of 5 seconds duration. I am doing this continuously, so my code looks like this:<br>
<br>while(1)<br>{<br></font></font></font><div style="margin-left:40px"><font color="#666666"><font size="4"><font face="times new roman,serif">// some code to generate a unique file-name for video clip based on date and time</font></font></font> <br>
</div><div style="margin-left:40px"><font color="#666666"><font size="4"><font face="times new roman,serif">system("openrtsp.exe -4 -b 100000 -d 5 -w 640 -h 480 -f 30 -N <unique_filename> <camera_url>");<br>
</font></font></font></div><font color="#666666"><font size="4"><font face="times new roman,serif">}<br><br>This seems to be working fine. I can see video clips getting generated of 5 seconds duration. However, when the IP camera stops giving an RTSP stream for a prolonged duration (2-3 hours) there are no video clips generated. That behavior is obvious, but what bothers me is that even when the IP camera recovers and starts giving an RTSP stream the openrtsp.exe just hangs. Then when I go to task manager and kill this process "openrtsp.exe", the application seems to recover and I can see new video clips being generated.<br>
<br>Could someone explain this behavior and how it can be resolved?<br><br clear="all"></font></font></font><br>--<br>Regards,<br>Saurabh Gandhi<br><br><br>