From 5b29306d4fb8ed977d2d48e9508b9dafc229b836 Mon Sep 17 00:00:00 2001 From: Sergey Krashevich Date: Thu, 4 May 2023 22:18:58 +0300 Subject: [PATCH] Refactor video toolbox probe commands to use SVGA resolution in hardware_darwin.go --- internal/ffmpeg/hardware/hardware_darwin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ffmpeg/hardware/hardware_darwin.go b/internal/ffmpeg/hardware/hardware_darwin.go index 923f4159..4f59ca6a 100644 --- a/internal/ffmpeg/hardware/hardware_darwin.go +++ b/internal/ffmpeg/hardware/hardware_darwin.go @@ -4,8 +4,8 @@ import ( "github.com/AlexxIT/go2rtc/internal/api" ) -const ProbeVideoToolboxH264 = "-f lavfi -i testsrc2 -t 1 -c h264_videotoolbox -f null -" -const ProbeVideoToolboxH265 = "-f lavfi -i testsrc2 -t 1 -c hevc_videotoolbox -f null -" +const ProbeVideoToolboxH264 = "-f lavfi -i testsrc2=size=svga -t 1 -c h264_videotoolbox -f null -" +const ProbeVideoToolboxH265 = "-f lavfi -i testsrc2=size=svga -t 1 -c hevc_videotoolbox -f null -" func ProbeAll(bin string) []api.Stream { return []api.Stream{