KoynovStas / onvif_srvd

ONVIF Device(IP camera) Service server (Linux daemon)
GNU General Public License v2.0
279 stars 115 forks source link

Error: "Connection refused" using iSpy Agent DVR #42

Closed davidjaeckle closed 2 years ago

davidjaeckle commented 2 years ago

I'm coding with VSCode on Ubuntu (18.04) on a VM. I downloaded the latest Version of your repo and from gsoap (2.8.122).

I have a IP based Camera with an RTSP and HTTP Stream and want to make it ONVIF compatible through onvif_srvd.

After compiling and trying to get a connection to the Camera via the iSpy Agent DVR I got the following error:

[00007f51a00060e0] live555 demux error: Failed to connect with rtsp://10.50.8.121:1026/ [00007f51a0008b10] main stream error: connection failed: Connection refused [00007f51a0008b10] satip stream error: Failed to connect to RTSP server 10.50.8.121:1026 [00007f51a0008b10] main stream error: connection failed: Connection refused [00007f51a0008b10] access_realrtsp stream error: cannot connect to 10.50.8.121:1026 [00007f51a0008b10] main stream error: Connection failed [00007f51a0008b10] main stream error: VLC could not connect to "10.50.8.121:1026". [00007f5190072010] main input error: Your input can't be opened [00007f5190072010] main input error: VLC is unable to open the MRL 'rtsp://10.50.8.121:1026/'. Check the log for details. Error: SourceError: Camera 1: CoreLogic.Sources.Combined.VlcStream:Source Error

I also tried using HTTP, but the following errors come up:

[00007f6284009760] access stream error: HTTP connection failure [00007f6284009760] main stream error: connection failed: Connection refused [00007f6284009760] http stream error: cannot connect to 10.50.8.121:80 [00007f622000d9c0] main input error: Your input can't be opened [00007f622000d9c0] main input error: VLC is unable to open the MRL 'http://10.50.8.121:80/camera.mjpeg'. Check the log for details. Error: SourceError: Camera 1: CoreLogic.Sources.Combined.VlcStream:Source Error

I am using the S90onvif_srvd script, to start the DEAMON with the following arguments:

DAEMON_ARGS="$DAEMON_ARGS --ifs enp0s3" DAEMON_ARGS="$DAEMON_ARGS --scope onvif://www.onvif.org/name/TestDev" DAEMON_ARGS="$DAEMON_ARGS --scope onvif://www.onvif.org/Profile/S" DAEMON_ARGS="$DAEMON_ARGS --name Cam1_RTSP --width 1920 --height 1080 --url rtsp://%s:1026/ --type JPEG" DAEMON_ARGS="$DAEMON_ARGS --name Cam1_HTTP --width 1920 --height 1080 --url http://%s:80/camera.mjpeg --type JPEG"

The IP from my System is: 10.50.8.121 Config from ServiceContext: (I also tried it with a user and pw, it didn't change anything) port ( 3000 ), user ( "" ), password ( "" ),

//Device Information manufacturer ( "me" ), model ( "my_cam" ), firmware_version ( "1.0" ), serial_number ( "1.0" ), hardware_id ( "1.0" ),

This is what the log says:

14:54:33 | intervals: Camera 1: Reconnecting 14:54:33 | vlc start 14:54:33 | intervals: Camera 1: Reconnect Exit 14:54:33 | Discovery: Camera 1: ONVIF v2.0 14:54:33 | Discovery: Camera 1: Using Media Version 1 14:54:33 | vlc started 14:54:33 | SourceError: Camera 1: CoreLogic.Sources.Combined.VlcStream:Source Error 14:54:33 | Error: SourceError: Camera 1: CoreLogic.Sources.Combined.VlcStream:Source Error 14:54:33 | VLC stopped 14:54:33 | SourcePlayingFinished: Camera 1: Playing finished (SourceError) 14:54:33 | Reconnect: Camera 1: Reconnecting in 30s

I am searching for the error but I can't find it. I hope that you can help me. If you need any more information, please let me know.

Thank you so much! :)