Hi there,
I would like to use the rtsp streaming feature of janus-gateway to stream an IP camera over webrtc.
I do noted the disclaimer about the format and such, but do you have an IP camera setup reference (brand, video configuration etc) that is tested to be working?
I mean this disclaimer:
;
; This is a sample configuration for an RTSP stream
; NOTE WELL: the plugin does NOT transcode, so the RTSP stream MUST be
; in a format the browser can digest (e.g., VP8 or H.264 for video)
;
I'm testing with 2 IP cameras and have tried many tweak, none of them had worked so far.
One of my setup is as below:
[rtsp-test]
type = rtsp
id = 99
description = RTSP Test
audio = no
video = yes
The video stream is configured as h264, 640x480, 30fps (also tried 15fps)
Some note/observation:
- Firefox 37 and above doesn't even accept the sdp offer properly. It returns answer like this:
v=0
o=mozilla...THIS_IS_SDPARTA-39.0 8660943037204991683 0 IN IP4 0.0.0.0
s=-
t=0 0
a=fingerprint:sha-256 34:26:72:A1:C6:19:C2:E2:52:AC:D2:1A:18:20:02:C8:67:FA:8D:48:69:90:E5:7E:D2:F1:08:B7:DE:88:3B:10
a=ice-options:trickle
a=msid-semantic:WMS *
m=video 0 RTP/SAVPF 111
c=IN IP4 0.0.0.0
a=inactive
a=rtpmap:111 NULL/0
And the session never succeed.
- Only firefox 36.0.x or below (tried down to 34) do succeed in establishing the session (status became "started"), afterward however, the video doesn't show up/render in the browser.
These are the sdp exchange between ip cam - janus - firefox
From the browser debug log and webrtc log, I can see that the stream is attached and the RTP packets are received and even reassembled. But it is not rendered for some reason.
- There's an option in the ip camera "Advanced Configuration - SPS & PPS". When this is enabled, the Firefox crash soon after the session is started.
From the wireshark log, it seems the sps and pps are sent as separate nal frame and the firefox is having problem to deal with them. It's quite sad if it's true...
Any guidance is appreciated.
Thanks
cm