opencv: RTSP streams freeze at version 3.1+ but not at 3.0
System information (version)
- OpenCV => 3.1+ including 3.4.1
- Operating System / Platform => Windows .Net C# x86
- Compiler => Visual Studio 2017
Detailed description
Using an RTSP camera such as “AimCam”, the stream freezes after 10 seconds. It does not freeze when using EMGU 3.0. It does not freeze when run through VLC utility either
Steps to reproduce
_capture = new VideoCapture("rtsp://192.168.1.254/12345678.mov");
_capture.ImageGrabbed += processFrame;
_capture.Start();
…
// processFrame
_capture.Retrieve(_frame);
_frameBmp?.Dispose();
_frameBmp = _frame.Bitmap;
```
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 17 (10 by maintainers)
On the internet there are instructions for saving the stream to a file (without any re-encoding). Please give it a try, and see if the freeze problem can be re-created when reading from that file.
Based on internet discussions, it is true that ip cameras can behave erratically, such as closing streams unexpectedly or reboot. The only way to investigate would be to ask the ip camera manufacturer to investigate. Otherwise, another venue is to ask in the user forums for that vendor/brand of ip camera.