init
This commit is contained in:
commit
fa47df6d89
22 changed files with 1724 additions and 0 deletions
33
ffmpeg/const.go
Normal file
33
ffmpeg/const.go
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
package ffmpeg
|
||||
|
||||
import "slices"
|
||||
|
||||
const SlicerTargetDurationSec = 4
|
||||
|
||||
var ValidNVENCPresets = []string{
|
||||
// ffmpeg -hide_banner -h encoder=h264_nvenc
|
||||
// ffmpeg -hide_banner -h encoder=hevc_nvenc
|
||||
"default",
|
||||
"slow",
|
||||
"medium",
|
||||
"fast",
|
||||
"hp",
|
||||
"hq",
|
||||
"bd",
|
||||
"ll",
|
||||
"llhq",
|
||||
"llhp",
|
||||
"lossless",
|
||||
"losslesshp",
|
||||
"p1",
|
||||
"p2",
|
||||
"p3",
|
||||
"p4",
|
||||
"p5",
|
||||
"p6",
|
||||
"p7",
|
||||
}
|
||||
|
||||
func IsNVENCPresetValid(preset string) bool {
|
||||
return slices.Contains(ValidNVENCPresets, preset)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue