preset

package
v0.0.0-...-c6b6372 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultVPPParams = VPPParams{
		VPPKNN:       nvenc.DefaultVPPKNN,
		VPPPMD:       nvenc.DefaultVPPPMD,
		VPPUnSharp:   nvenc.DefaultVPPUnSharp,
		VPPEdgeLevel: nvenc.DefaultVPPEdgeLevel,
	}
)

Functions

func GetCommandLineArgs

func GetCommandLineArgs(presets EncodingPresets, vppFlags VPPFlags, vppParams VPPParams) []string

Types

type EncodingPresets

type EncodingPresets struct {
	HEVC        bool
	Preset      int32 `default:"6"`
	Quality     int32 `default:"12"`
	QPInit      int32 `default:"1"`
	QPMin       int32 `default:"1"`
	QPMax       int32 `default:"12"`
	BFrames     int32 `default:"4"`
	Ref         int32 `default:"16"`
	LookAhead   int32 `default:"32"`
	GOPLen      int32 `default:"250"`
	Bitrate     int32 `default:"19000"`
	MaxBitrate  int32 `default:"59850"`
	AQ          int32 `default:"1"`
	AQStrength  int32
	Resize      bool
	OutputRes   string `default:"1920x1080"`
	OutputDepth int32  `default:"8"`
}

type VPPFlags

type VPPFlags struct {
	VPPKNN        bool
	VPPPMD        bool
	VPPUnSharp    bool
	VPPEdgeLevel  bool
	VPPSmooth     bool
	VPPColorSpace bool
}

type VPPParams

type VPPParams struct {
	VPPKNN       nvenc.VPPKNN
	VPPPMD       nvenc.VPPPMD
	VPPUnSharp   nvenc.VPPUnSharp
	VPPEdgeLevel nvenc.VPPEdgeLevel
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL