Update restream.md

This commit is contained in:
Nicolas Mowen 2023-01-19 06:30:28 -07:00 committed by GitHub
parent b5f3199244
commit 4a6a34b733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ cameras:
- detect - detect
``` ```
#### With Sub Stream ### With Sub Stream
Two connections are made to the camera. One for the sub stream, one for the restream, `record` connects to the restream. Two connections are made to the camera. One for the sub stream, one for the restream, `record` connects to the restream.
@ -103,3 +103,15 @@ cameras:
roles: roles:
- detect - detect
``` ```
## Advanced Restream Configurations
The [exec](https://github.com/AlexxIT/go2rtc#source-exec) source in go2rtc can be used for custom ffmpeg commands. An example is below:
NOTE: The output will need to be passed with two curly braces `{{output}}`
```yaml
go2rtc:
streams:
stream1: exec:ffmpeg -hide_banner -re -stream_loop -1 -i /media/BigBuckBunny.mp4 -c copy -rtsp_transport tcp -f rtsp {{output}}
```