diff --git a/docs/docs/configuration/camera_specific.md b/docs/docs/configuration/camera_specific.md index 06a7690a9..5069d712e 100644 --- a/docs/docs/configuration/camera_specific.md +++ b/docs/docs/configuration/camera_specific.md @@ -107,8 +107,9 @@ According to [this discussion](https://github.com/blakeblackshear/frigate/issues ```yaml go2rtc: - reolink: ffmpeg:http://reolink_ip/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus - reolink_sub: ffmpeg:http://reolink_ip/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password + streams: + reolink: ffmpeg:http://reolink_ip/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=username&password=password#video=copy#audio=copy#audio=opus + reolink_sub: ffmpeg:http://reolink_ip/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=username&password=password cameras: reolink: 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}} +```