Documentation
¶
Index ¶
- Variables
- func Manager()
- type Config
- type EncodeFormat
- type EncodeResult
- type Encoder
- func (e *Encoder) CreateEncode(ctx context.Context, file VideoFile, formatID int) (EncodeResult, error)
- func (e *Encoder) Refresh(ctx context.Context) error
- func (e *Encoder) RefreshVideo(ctx context.Context, videoID int) error
- func (e *Encoder) TranscodeFinished(ctx context.Context, taskID string) error
- type TaskIdentification
- type VideoFile
- type VideoItem
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoPreset = errors.New("no presetID on video") ErrNoVideoFiles = errors.New("no video files") ErrNoSourceFile = errors.New("no source file set") ErrTooManySourceFiles = errors.New("too many source files set") ErrNoFormats = errors.New("preset has no formats set") ErrNoArgs = errors.New("no encoding arguments set") ErrVTFailedToCreate = errors.New("vt failed to create encode job") ErrVTFailedToAuthenticate = errors.New("failed to authenticate to vt") ErrVTUnknownResponse = errors.New("unknown vt response") )
Functions ¶
Types ¶
type EncodeFormat ¶ added in v0.7.0
type EncodeResult ¶ added in v0.7.0
type Encoder ¶ added in v0.7.0
type Encoder struct {
// contains filtered or unexported fields
}
func (*Encoder) CreateEncode ¶ added in v0.7.0
func (e *Encoder) CreateEncode(ctx context.Context, file VideoFile, formatID int) (EncodeResult, error)
CreateEncode creates an encode item in the message queue.
func (*Encoder) Refresh ¶ added in v0.7.0
Refresh will check all existing videoitems to ensure that they match their preset, creating new job
func (*Encoder) RefreshVideo ¶ added in v0.7.0
RefreshVideoItem will run CreateEncode() on a VideoItem for any encodes missing in the preset.
type TaskIdentification ¶ added in v0.7.0
TaskIdentification is for initially informing the user of their job starting and its given ID for later checking
Click to show internal directories.
Click to hide internal directories.