Hello, I am trying to restream video from an RTSP camera to a browser page. I have been able to do this with gstreamer sending the RTSP as RTP to Janus but now I would like to stream the video without gstreamer. The RTSP type seems perfect for this but I have not been able to get it to work. Currently my config is as follows:
[camera]
type = rtsp
id = 99
description = RTSP test
audio = no
video = yes
videopt = 96
videortpmap = H264:90000
videofmtp = profile-level-id=42e01f\;packetization-mode=1;
rtsp_usr =root
rtsp_pwd =password;
When I run Janus it seems to have no problems establishing this connection. However, when I try to view the feed in the streaming plugin(on the same machine that Janus is running on), I get an error. In Firefox it says "ICE failed, add a TURN server and see about:webrtc for more details" which confuses me as I am running the browser on the same machine as Janus. In Chrome I get "WebRTC error: DOMException: Failed to set remote offer sdp: Session error code: ERROR_CONTENT. Session error description: Failed to set remote video description send parameters.." from streaming.js:156.
I know the RTSP is correct as I have been able to display the feed with VLC using the address from the config. Here is the config that works with the corresponding gstreamer command:
[h264-sample]
type=rtp
id=4
description= H.264 live stream coming from gstreamer
audio= no
video= yes
videoport = 8004
videopt = 126
videortpmap = H264/90000
videofmtp = profile-level-id=42e01f\;packetization-mode=1;
Any help getting this to work with RTSP config would be greatly appreciated and thank you for your time.