Skip to content

Commit 1b10d8d

Browse files
committed
Add gpu accelerate
1 parent d154549 commit 1b10d8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ffmpeg/ffmpeg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (t *Transcoder) Start(opts transcoder.Options) (<-chan transcoder.Progress,
5656
}
5757

5858
// Append input file and standard options
59-
args := append([]string{"-i", t.input}, opts.GetStrArguments()...)
59+
args := append([]string{"-vsync", "0", "-hwaccel", "cuvid", "-c:v", "h264_cuvid", "-i", t.input}, opts.GetStrArguments()...)
6060
outputLength := len(t.output)
6161
optionsLength := len(t.options)
6262

0 commit comments

Comments
 (0)