From 8d9f87061c19f040857dba99859586bce73f6ea2 Mon Sep 17 00:00:00 2001 From: Alex X Date: Tue, 5 Dec 2023 15:43:50 +0300 Subject: [PATCH] Add support hardware auto discovery for Rockchip --- internal/ffmpeg/hardware/hardware_linux.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/ffmpeg/hardware/hardware_linux.go b/internal/ffmpeg/hardware/hardware_linux.go index b2cc73e9..f0d4858e 100644 --- a/internal/ffmpeg/hardware/hardware_linux.go +++ b/internal/ffmpeg/hardware/hardware_linux.go @@ -71,10 +71,16 @@ func ProbeHardware(bin, name string) string { if run(bin, ProbeV4L2M2MH264) { return EngineV4L2M2M } + if run(bin, ProbeRKMPPH264) { + return EngineRKMPP + } case "h265": if run(bin, ProbeV4L2M2MH265) { return EngineV4L2M2M } + if run(bin, ProbeRKMPPH265) { + return EngineRKMPP + } } return EngineSoftware