OpenCVForUnity icon indicating copy to clipboard operation
OpenCVForUnity copied to clipboard

how to open rtsp camera

Open HanGaaaaa opened this issue 6 years ago • 2 comments

how to open rtsp camera

HanGaaaaa avatar May 10 '19 03:05 HanGaaaaa

I also have a question about this

It opens the camera but then locks up

   capture.open("rtsp://admin:[email protected]:554/media/video1");
   // Check if the camera is opened
   if (!capture.isOpened())
   {
       UnityEngine.Debug.Log("Camera is not opened!");
       return;
   } else
   {
       UnityEngine.Debug.Log("Camera is opened!");
   }

   Mat mat = new Mat();
   await Task.Delay(1000);
   ////////////// BELOW fails for some reason //////////////
   //capture.grab();
   bool frameRead = capture.read(mat);
   UnityEngine.Debug.Log("frameRead: " + frameRead);

Has anyone figured it out?

m0ose avatar Apr 08 '24 16:04 m0ose

It is possible to receive rtsp using ffmpeg.dll, although it is Windows-only. #142

EnoxSoftware avatar Apr 09 '24 08:04 EnoxSoftware