You've already forked VptPassiveAdapter
hwaccel qsv
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user