mirror of
https://github.com/livepeer/lpms
synced 2026-04-23 00:07:25 +08:00
ffmpeg: move back to scale_cuda from scale_npp
This commit is contained in:
+2
-13
@@ -9,7 +9,6 @@ import (
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
@@ -1072,21 +1071,11 @@ func ffmpegStrEscape(origStr string) string {
|
||||
}
|
||||
|
||||
func hwScale() string {
|
||||
if runtime.GOOS == "windows" {
|
||||
// we don't build windows binaries with CUDA SDK, so need to use scale_cuda instead of scale_npp
|
||||
return "scale_cuda"
|
||||
} else {
|
||||
return "scale_npp"
|
||||
}
|
||||
return "scale_cuda"
|
||||
}
|
||||
|
||||
func hwScaleAlgo() string {
|
||||
if runtime.GOOS == "windows" {
|
||||
// we don't build windows binaries with CUDA SDK, so need to use the default scale algorithm
|
||||
return ""
|
||||
} else {
|
||||
return "super"
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func FfmpegSetLogLevel(level int) {
|
||||
|
||||
Reference in New Issue
Block a user