From 9ddcf7b1fefbcbfd49d0cc14cef3a6e533ea5fee Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 25 Jan 2023 17:37:48 -0700 Subject: [PATCH] Add exec docs (#5230) --- docs/docs/configuration/restream.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/docs/configuration/restream.md b/docs/docs/configuration/restream.md index d28d3421d..9f7e54eb4 100644 --- a/docs/docs/configuration/restream.md +++ b/docs/docs/configuration/restream.md @@ -118,3 +118,15 @@ go2rtc: streams: stream1: exec:ffmpeg -hide_banner -re -stream_loop -1 -i /media/BigBuckBunny.mp4 -c copy -rtsp_transport tcp -f rtsp {{output}} ``` + +## Go2rtc Exec + +Go2rtc offers the ability to [run a full command with exec](https://github.com/AlexxIT/go2rtc#source-exec) and calls for `{output}` at the end of the stream. Due to frigate's handling of templates, the output will need to be passed as `{{output}}`. + +ex: + +```yaml +go2rtc: + streams: + test: exec:ffmpeg -hide_banner -re -stream_loop -1 -i /media/BigBuckBunny.mp4 -c copy -rtsp_transport tcp -f rtsp {{output}} +```