Hello,
I’m currently a newcomer to using Janus.
I’m working on a project that streams CCTV RTSP video data through Janus, converting it into WebRTC for playback on the web.
For several basic CCTV cameras, the RTSP-to-WebRTC conversion works without any issues.
However, I encountered problems mounting certain RTSP cameras to Janus.
I have verified using FFplay that the RTSP stream from the problematic cameras can be received successfully over both TCP and UDP.
janus.pluging.streaming.jcfg
rtsp-test4: {
type = “rtsp”
id = 103
description = “RTSP Test”
audio = false
video = true
url = “rtsp://admin:!1Q2w3e4r@192.168.10.124:554/onvif/media?profile=M1_Profile1”
rtsp_user = “admin”
rtsp_pwd = “!Q2w3e4r”
rtsp_reconnect_delay = 5
rtsp_session_timeout = 0
rtsp_timeout = 10
rtsp_conn_timeout = 5
}
[janus] Adding Streaming mountpoint ‘rtsp-test4’
[janus] Starting streaming relay thread
[janus] Audio NOT enabled, Video enabled
< RTSP/1.0 200 OK
< CSeq: 4
< Date: Mon, 21 Jul 2025 10:09:23 GMT
< Server: RTSP Server
< Range: npt=now-
< Session: 313335663
< RTP-Info: url=rtsp://admin:admin@192.168.10.102:554/Master-0/trackID=1;seq=0;rtptime=1774247606
<
- Connection #0 to host 192.168.10.102 left intact
- Trying 192.168.10.124:554…
- Connected to 192.168.10.124 (192.168.10.124) port 554
DESCRIBE rtsp://admin:%21Q2w3e4r@192.168.10.124:554/onvif/media?profile=M1_Profile1 RTSP/1.0
CSeq: 1
Accept: application/sdp
- Request completely sent off
< RTSP/1.0 401 Unauthorized
< CSeq: 1
< WWW-Authenticate: Digest realm=“IDIS_RTSP_SERVER_0003226dab0f”, nonce=“5c03075ab21e869cd88516d47401925e”,algorithm=MD5 - Ignoring the response-body
< - Connection #0 to host 192.168.10.124 left intact
- Issue another request to this URL: ‘rtsp://admin:%21Q2w3e4r@192.168.10.124:554/onvif/media?profile=M1_Profile1’
- Re-using existing connection with host 192.168.10.124
- Server auth using Digest with user ‘admin’
DESCRIBE rtsp://admin:%21Q2w3e4r@192.168.10.124:554/onvif/media?profile=M1_Profile1 RTSP/1.0
CSeq: 2
Accept: application/sdp
Authorization: Digest username=“admin”, realm=“IDIS_RTSP_SERVER_0003226dab0f”, nonce=“5c03075ab21e869cd88516d47401925e”, uri=“rtsp://admin:%21Q2w3e4r@192.168.10.124:554/onvif/media?profile=M1_Profile1”, response=“3d8bc487845d49fe4f4a9be3d394c144”, algorithm=MD5
- Request completely sent off
[janus] DESCRIBE answer:RTSP/1.0 401 Unauthorized
CSeq: 1
WWW-Authenticate: Digest realm=“IDIS_RTSP_SERVER_0003226dab0f”, nonce=“5c03075ab21e869cd88516d47401925e”,algorithm=MD5
RTSP/1.0 200 OK
CSeq: 2
Content-Base: rtsp://192.168.10.124/media
Content-Type: application/sdp
Content-Length: 530
v=0
o=- 0 0 IN IP4 192.168.10.124
s=Media Presentation
e=NONE
c=IN IP4 0.0.0.0
t=0 0
a=control:*
a=range:npt=0.000000-
m=video 0 RTP/AVP 97
a=framerate:30
a=control:rtsp://192.168.10.124/media?channel=1&stream=1
a=rtpmap:97 H264/90000
a=fmtp:97 packetization-mode=1;profile-level-id=4D40280000000000;sprop-parameter-sets=Z01AKI2NQDwBE/LgLcBAQFAAAD6AAA6mDoYAf/AABfXgu8uNDAD/4AAL68F3lwo=,aO48gA==;
m=application 0 RTP/AVP 107
a=control:rtsp://192.168.10.124/media/trackID=300
a=rtpmap:107 vnd.onvif.metadata/90000
[janus] [rtsp-test4] Found sprop-parameter-sets: Z01AKI2NQDwBE/LgLcBAQFAAAD6AAA6mDoYAf/AABfXgu8uNDAD/4AAL68F3lwo=,aO48gA==
< RTSP/1.0 200 OK
< CSeq: 2
< Content-Base: rtsp://192.168.10.124/media
< Content-Type: application/sdp
< Content-Length: 530
<
- Connection #0 to host 192.168.10.124 left intact
- Re-using existing connection with host 192.168.10.124
- Server auth using Digest with user ‘admin’
SETUP rtsp://192.168.10.124/media?channel=1&stream=1?profile=M1_Profile1 RTSP/1.0
CSeq: 3
Transport: RTP/AVP/UDP;unicast;client_port=10008-10009
Authorization: Digest username=“admin”, realm=“IDIS_RTSP_SERVER_0003226dab0f”, nonce=“5c03075ab21e869cd88516d47401925e”, uri=“rtsp://192.168.10.124/media?channel=1&stream=1?profile=M1_Profile1”, response=“3382448a01d7c48fa3a82d036012880c”, algorithm=MD5
- Request completely sent off
< RTSP/1.0 461 Unsupported transport
< CSeq: 3
< - Connection #0 to host 192.168.10.124 left intact
[janus] [ERR] [plugins/janus_streaming.c:janus_streaming_rtsp_connect_to_server:8331] Couldn’t SETUP, got error code: 461
[janus] [ERR] [plugins/janus_streaming.c:janus_streaming_init:2826] Error creating ‘rtsp’ mountpoint ‘rtsp-test4’…