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,
|
outputFile,
|
||||||
}
|
}
|
||||||
case "qsv":
|
case "qsv":
|
||||||
scaleFilter := fmt.Sprintf("scale=-2:%d", height)
|
scaleFilter := fmt.Sprintf("scale_qsv=-2:%d", height)
|
||||||
ffmpegCmd = []string{
|
ffmpegCmd = []string{
|
||||||
FfmpegExec,
|
FfmpegExec,
|
||||||
"-hide_banner",
|
"-hide_banner",
|
||||||
"-y",
|
"-y",
|
||||||
"-hwaccel", "qsv",
|
"-hwaccel", "qsv",
|
||||||
|
"-hwaccel_output_format", "qsv",
|
||||||
"-i", inputFile,
|
"-i", inputFile,
|
||||||
"-vf", scaleFilter,
|
"-vf", scaleFilter,
|
||||||
"-c:v", "h264_qsv",
|
"-c:v", "h264_qsv",
|
||||||
|
|||||||
Reference in New Issue
Block a user