Skip to content

Commit

Permalink
Make note of go2rtc encoded URLs (#15348)
Browse files Browse the repository at this point in the history
* Make note of go2rtc encoded URLs

* clarify
  • Loading branch information
NickM-27 authored Dec 4, 2024
1 parent 32322b2 commit 47d495f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/docs/configuration/restream.md
Original file line number Diff line number Diff line change
Expand Up @@ -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%[email protected]
```

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:
Expand Down

1 comment on commit 47d495f

@iamhermes
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Environmental vars for username/password also affected?
For example - rtsp://{FRIGATE_ANNKE_USER}:{FRIGATE_ANNKE_PASS}@192.168.220.51:554/Streaming/channels/101

Please sign in to comment.