From 47d495fc012c0d897db1f6aa5c54e40225d795ed Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 4 Dec 2024 16:54:57 -0600 Subject: [PATCH] Make note of go2rtc encoded URLs (#15348) * Make note of go2rtc encoded URLs * clarify --- docs/docs/configuration/restream.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/docs/configuration/restream.md b/docs/docs/configuration/restream.md index 1ad09cc8d..0db4ded80 100644 --- a/docs/docs/configuration/restream.md +++ b/docs/docs/configuration/restream.md @@ -132,6 +132,28 @@ cameras: - detect ``` +## Handling Complex Passwords + +go2rtc expects URL-encoded passwords in the config, [urlencoder.org](https://urlencoder.org) can be used for this purpose. + +For example: + +```yaml +go2rtc: + streams: + my_camera: rtsp://username:$@foo%@192.168.1.100 +``` + +becomes + +```yaml +go2rtc: + streams: + my_camera: rtsp://username:$%40foo%25@192.168.1.100 +``` + +See [this comment(https://github.com/AlexxIT/go2rtc/issues/1217#issuecomment-2242296489) for more information. + ## Advanced Restream Configurations The [exec](https://github.com/AlexxIT/go2rtc/tree/v1.9.2#source-exec) source in go2rtc can be used for custom ffmpeg commands. An example is below: