-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support SRTP for UniFi RTSPS cameras #81
Comments
You need to increase logs level. Maybe there will be something useful there. |
|
Oh. SRTP not supported. You shouldn't enable it. There is no need to enable SRTP if you have an RTSPS with a TCP stream. It is already encrypted. |
Easy fix, thanks! FYI- the latest build of UniFi Protect automatically includes the "?enableSrtp" when you copy the RTSP address but seems to work fine after deleting it. |
SRTP is useful for RTSPS+UDP. But go2rtc support only TCP for now. |
@saxopwn Did your fix involve only removing from url "?enableSrtp"? I tried changing URL using generic camera integration configuration, but with no luck. Could you please share your config? Thank you |
Use |
How do I use |
I managed to get my UniFi cameras to show stream removing the parameter and using rtspx and manually configuring a stream, however this seems impossible to resolve using the Home Assistant Integration. It appears that whenever I start a stream it overrides my configured value and adds Am I missing a way to get my configuration to persist or maybe a way to tell go2rtc to remove this? |
@ViViDboarder I don't understand what you talking about |
Hmm. Sorry. I think I left off some important context while in a debugging rabbit hole. I tried using go2rtc and configuring it with the Home Assistant RTSP2WebRTC integration. In this integration it seems to pull the RTSP URLs from the entities in Home Assistant. Those URLs look like the ones shown here, with RSTPS and this parameter. I tried to override it by storing the updated URL in the configuration file using the same entity id, but that didn’t seem to work. |
This automatically applies the recommended configuration for UniFi cameras. Closes AlexxIT#81
This automatically applies the recommended configuration for UniFi cameras. Closes AlexxIT#81
This automatically applies the recommended configuration for UniFi cameras. Closes AlexxIT#81
Added a number of UniFi cameras via yaml as below:
When I open go2rtc to view the stream, I either get:
07:42:38.656 WRN [streams] start error="rtcp: invalid packet version" url=rtspx://192.168.1.1:7441/E1oZmxXGX4dAzBsz?enableSrtp
or
07:43:30.654 WRN [streams] start error="rtcp: packet too short" url=rtspx://192.168.1.1:7441/E1oZmxXGX4dAzBsz?enableSrtp
Doesn't matter if I use rtsps or rtspx
The text was updated successfully, but these errors were encountered: