ispysoftware / iSpy

Open source surveillance software
http://www.ispyconnect.com
Other
1.36k stars 534 forks source link

Agent DVR on Linux not working with a MediaMTX RTSP stream #260

Closed gabriel-lando closed 1 year ago

gabriel-lando commented 1 year ago

I'm trying to use Agent DVR Linux on an x64 LXC container running Ubuntu Server 22.04 and I could connect an ONVIF camera using RTSP stream successfully, but when I try to add another RTSP stream (an webcam from another machine streaming using MediaMTX, it doesn't work. When I add the camera, I can see a message on the display instead of the camera feed:

Connecting...
Reader: Camera 2: OPEN_INPUT:Input/output error

The RTSP stream is: rtsp://192.168.XXX.XXX:8554/cam

I tried to create a VM running Windows 10 and the Agent DVR version for Windows and both cameras worked well, so the issue is not on the stream. Also, I can connect using VLC to this webcam stream too. It seems to be something on the Agent DVR for Linux.

ispysoftware commented 1 year ago

can you set ffmpeg logging under server settings - logging to verbose and try connecting again and paste in the logs from /logs.html?

gabriel-lando commented 1 year ago

Ohhh thanks :) I found the issue looking at the logs. This LXC container wasn't able to resolve the camera hostname because I forgot to set the DHCP server properly. Sorry bothering you about this. Thanks for your help :)