WebRTSP / ReStreamer

Media URLs ReStreamer and Cloud DVR
GNU General Public License v3.0
32 stars 6 forks source link

Can't connect with my IP camera #24

Closed Amattia closed 1 year ago

Amattia commented 2 years ago

Hi guy's, i'm trying to connect my ip camera (Imou Cue 2), I edited the config file properly but it doesn't work.

Below you will find the configuration file:

ws-port: 5554
http-port: 5080
#wss-port: 5555
#https-port: 5443
#certificate: "path/to/certificate"
#key: "path/to/private/key"
#loopback-only: false
#allow-client-urls: true

streamers: (
 {
    name: "Kitchen Camera",
    url: "rtsp://admin:password@xxx.xxx.x.xx:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif",
    description: "IP camera kitchen",
    force-h264-profile-level-id: "42c015"
 }
)

debug: {
  log-level: 3
  lws-log-level: 2
}

and this is the log

2022-04-29T11:40:11+02:00 rtsp-to-webrtsp.ReStreamer[689]: ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
2022-04-29T11:40:13+02:00 rtsp-to-webrtsp.ReStreamer[689]: [2022-04-29 11:40:13.099] [ReStreamer] [info] Config "/snap/rtsp-to-webrtsp/228/etc/restreamer.conf" not found
2022-04-29T11:40:13+02:00 rtsp-to-webrtsp.ReStreamer[689]: [2022-04-29 11:40:13.107] [ReStreamer] [info] Loading config "/var/snap/rtsp-to-webrtsp/common/restreamer.conf"
2022-04-29T11:40:13+02:00 -[689]: External plugin loader failed. This most likely means that the plugin loader helper binary was not found or could not be run. You might need to set the GST_PLUGIN_SCANNER environment variable if your setup is unusual. This should normally not be required though.
2022-04-29T11:40:13+02:00 rtsp-to-webrtsp.ReStreamer[689]: 0:00:00.404542917   689  0x1ae1400 WARN      GST_PLUGIN_LOADING gstplugin.c:792:_priv_gst_plugin_load_file_for_registry: module_open failed: libpulsecommon-13.99.so: cannot open shared object file: No such file or directory
2022-04-29T11:40:13+02:00 -[689]: Failed to load plugin '/snap/rtsp-to-webrtsp/228/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstfluidsynthmidi.so': libpulsecommon-13.99.so: cannot open shared object file: No such file or directory
2022-04-29T11:40:13+02:00 rtsp-to-webrtsp.ReStreamer[689]: 0:00:00.611514531   689  0x1ae1400 WARN      GST_PLUGIN_LOADING gstplugin.c:792:_priv_gst_plugin_load_file_for_registry: module_open failed: libpulsecommon-13.99.so: cannot open shared object file: No such file or directory
2022-04-29T11:40:13+02:00 -[689]: Failed to load plugin '/snap/rtsp-to-webrtsp/228/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstfluidsynthmidi.so': libpulsecommon-13.99.so: cannot open shared object file: No such file or directory
2022-04-29T11:40:13+02:00 rtsp-to-webrtsp.ReStreamer[689]: [2022-04-29 11:40:13.990] [HttpServer] [info] Starting HTTP server on port 5080
2022-04-29T11:40:13+02:00 rtsp-to-webrtsp.ReStreamer[689]: [2022-04-29 11:40:13.990] [WsServer] [info] Starting WS server on port 5554
2022-04-29T11:40:58+02:00 rtsp-to-webrtsp.ReStreamer[689]: 0:00:33.707251342   689  0x19faf28 WARN                 rtspsrc gstrtspsrc.c:6319:gst_rtsp_src_receive_response:<source> error: Could not receive message. (Timeout while waiting for server response)
2022-04-29T11:40:58+02:00 rtsp-to-webrtsp.ReStreamer[689]: 0:00:33.707958477   689  0x19faf28 WARN                 rtspsrc gstrtspsrc.c:7951:gst_rtspsrc_open:<source> can't get sdp
2022-04-29T11:40:58+02:00 rtsp-to-webrtsp.ReStreamer[689]: 0:00:33.708091862   689  0x19faf28 WARN                 rtspsrc gstrtspsrc.c:8490:gst_rtspsrc_play:<source> failed to open stream
2022-04-29T11:40:58+02:00 rtsp-to-webrtsp.ReStreamer[689]: 0:00:33.708205508   689  0x19faf28 WARN                 rtspsrc gstrtspsrc.c:6031:gst_rtspsrc_loop:<source> we are not connected
2022-04-29T11:40:58+02:00 rtsp-to-webrtsp.ReStreamer[689]: 0:00:33.711093425   689  0x19faf28 WARN                 rtspsrc gstrtspsrc.c:6031:gst_rtspsrc_loop:<source> we are not connected

I tryied to get the stream of my camera from VLC and i can watch it correcly !! Some idea ?

RSATom commented 2 years ago

rtspsrc gstrtspsrc.c:6319:gst_rtsp_src_receive_response: error: Could not receive message. (Timeout while waiting for server response)

Maybe it's some compatibility issue between your cam and GStramer's rtsp implementation. You can try gst-play-1.0 to check it.

RSATom commented 1 year ago

Closed due to no activity for a long time...