From f1634fcecca38a14debc53b924faa7058168ce39 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Fri, 13 Mar 2026 11:29:18 +0800 Subject: [PATCH] hwaccel qsv --- util/ffmpeg.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/ffmpeg.go b/util/ffmpeg.go index 5a3c8fb..c1854af 100644 --- a/util/ffmpeg.go +++ b/util/ffmpeg.go @@ -557,12 +557,13 @@ func compressVideoGPU(ctx context.Context, inputFile, outputFile string, height outputFile, } case "qsv": - scaleFilter := fmt.Sprintf("scale=-2:%d", height) + scaleFilter := fmt.Sprintf("scale_qsv=-2:%d", height) ffmpegCmd = []string{ FfmpegExec, "-hide_banner", "-y", "-hwaccel", "qsv", + "-hwaccel_output_format", "qsv", "-i", inputFile, "-vf", scaleFilter, "-c:v", "h264_qsv",