You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add tables for ffmpeg presets and how to use them
* Make it clear that ffmepg processes may not show when nvidia-smi is run inside the container
* Add specific example of mixed input arg presets
* Update docs/docs/configuration/ffmpeg_presets.md
Co-authored-by: Nate Meyer <[email protected]>
* typos
Co-authored-by: Nate Meyer <[email protected]>
Co-authored-by: Blake Blackshear <[email protected]>
Copy file name to clipboardExpand all lines: docs/docs/configuration/ffmpeg_presets.md
+68-3
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,71 @@ title: FFmpeg presets
5
5
6
6
Some presets of FFmpeg args are provided by default to make the configuration easier. All presets can be seen in [this file](https://github.com/blakeblackshear/frigate/blob/master/frigate/ffmpeg_presets.py).
7
7
8
-
<!--
9
-
TODO: Use [markdown-magic](https://github.com/DavidWells/markdown-magic) to generate this list from the source code.
10
-
-->
8
+
### Hwaccel Presets
9
+
10
+
It is highly recommended to use hwaccel presets in the config. These presets not only replace the longer args, but they also give frigate hints of what hardware is available and allows frigate to make other optimizations using the GPU such as when encoding the birdseye restream or when scaling a stream that has a size different than the native stream size.
11
+
12
+
See [the hwaccel docs](/configuration/hardware_acceleration.md) for more info on how to setup hwaccel for your GPU / iGPU.
| preset-http-reolink | Reolink HTTP-FLV Stream | Only for reolink http, not when restreaming as rtsp |
36
+
| preset-rtmp-generic | RTMP Stream ||
37
+
| preset-rtsp-generic | RTSP Stream | This is the default when nothing is specified |
38
+
| preset-rtsp-udp | RTSP Stream via UDP | Use when camera is UDP only |
39
+
| preset-rtsp-blue-iris | Blue Iris RTSP Stream | Use when consuming a stream from Blue Iris |
40
+
41
+
:::caution
42
+
43
+
It is important to be mindful of input args when using restream because you can have a mix of protocols. `http` and `rtmp` presets cannot be used with `rtsp` streams. For example, when using a reolink cam with the rtsp restream as a source for record the preset-http-reolink will cause a crash. In this case presets will need to be set at the stream level. See the example below.
Copy file name to clipboardExpand all lines: docs/docs/configuration/hardware_acceleration.md
+7-1
Original file line number
Diff line number
Diff line change
@@ -93,9 +93,15 @@ ffmpeg:
93
93
```
94
94
95
95
If everything is working correctly, you should see a significant improvement in performance.
96
-
Verify that hardware decoding is working by running `docker exec -it frigate nvidia-smi`, which should show the ffmpeg
96
+
Verify that hardware decoding is working by running `nvidia-smi`, which should show the ffmpeg
97
97
processes:
98
98
99
+
:::note
100
+
101
+
nvidia-smi may not show ffmpeg processes when run inside the container [due to docker limitations](https://github.com/NVIDIA/nvidia-docker/issues/179#issuecomment-645579458)
0 commit comments