From 124a1ab389aea2428c28eb0afbbf20a2bbe9102d Mon Sep 17 00:00:00 2001 From: wangzewang Date: Mon, 15 Mar 2021 13:38:02 +0800 Subject: [PATCH] Fix gpu accelerate --- ffmpeg/ffmpeg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg/ffmpeg.go b/ffmpeg/ffmpeg.go index 8c5bb78..fb7380c 100644 --- a/ffmpeg/ffmpeg.go +++ b/ffmpeg/ffmpeg.go @@ -56,7 +56,7 @@ func (t *Transcoder) Start(opts transcoder.Options) (<-chan transcoder.Progress, } // Append input file and standard options - args := append([]string{"-vsync", "0", "-hwaccel", "cuvid", "-c:v", "h264_cuvid", "-i", t.input}, opts.GetStrArguments()...) + args := append([]string{"-vsync", "0", "-hwaccel", "cuvid", "-hwaccel_output_format", "cuda", "-i", t.input}, opts.GetStrArguments()...) outputLength := len(t.output) optionsLength := len(t.options)