From 4a6a34b733132e4c349b56476bc0805245f69445 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 19 Jan 2023 06:30:28 -0700 Subject: [PATCH] Update restream.md --- docs/docs/configuration/restream.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/docs/configuration/restream.md b/docs/docs/configuration/restream.md index 6f24b3199..09967ea8b 100644 --- a/docs/docs/configuration/restream.md +++ b/docs/docs/configuration/restream.md @@ -57,7 +57,7 @@ cameras: - 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. @@ -103,3 +103,15 @@ cameras: roles: - 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}} +```