From 5b69912ae4374f264fe0cd1f39e82ca4e021d9f3 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 4 Dec 2024 15:48:24 -0700 Subject: [PATCH] Make note of go2rtc encoded URLs --- 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..479737da8 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 values 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: