From f1c2f59703c72904178a02a25f29ce09d0e03bc1 Mon Sep 17 00:00:00 2001 From: MarcA711 <40744649+MarcA711@users.noreply.github.com> Date: Mon, 20 Nov 2023 17:22:14 +0000 Subject: [PATCH] add docs about go2rtc presets --- .../configuration/hardware_acceleration.md | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/docs/configuration/hardware_acceleration.md b/docs/docs/configuration/hardware_acceleration.md index 6811c4bec..7f5e69108 100644 --- a/docs/docs/configuration/hardware_acceleration.md +++ b/docs/docs/configuration/hardware_acceleration.md @@ -354,3 +354,29 @@ ffmpeg: Make sure that your SoC supports hardware acceleration for your input stream. For example, if your camera streams with h265 encoding and a 4k resolution, your SoC must be able to de- and encode h265 with a 4k resolution or higher. If you are unsure whether your SoC meets the requirements, take a look at the datasheet. ::: + +### go2rtc presets for hardware accelerated transcoding + +If your input stream is to be transcoded using hardware acceleration, there are these presets for go2rtc: `h264/rk` and `h265/rk`. You can use them this way: + +``` +go2rtc: + streams: + Cam_h264: ffmpeg:rtsp://username:password@192.168.1.123/av_stream/ch0#video=h264/rk + Cam_h265: ffmpeg:rtsp://username:password@192.168.1.123/av_stream/ch0#video=h265/rk +``` + +:::warning + +The go2rtc docs may suggest the following configuration: + +``` +go2rtc: + streams: + Cam_h264: ffmpeg:rtsp://username:password@192.168.1.123/av_stream/ch0#video=h264#hardware=rk + Cam_h265: ffmpeg:rtsp://username:password@192.168.1.123/av_stream/ch0#video=h265#hardware=rk +``` + +However, this does not currently work. + +:::