ingestvideo

package
v2.0.0-...-e737136 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWorkerPool

func NewWorkerPool(num int, ingestTimeout time.Duration, doIt func(job *JobStruct) error, logger zLogger.ZLogger) (chan *JobStruct, io.Closer)

Types

type IngesterVideo

type IngesterVideo struct {
	// contains filtered or unexported fields
}

func NewIngester

func NewIngester(dbClient mediaserverproto.DatabaseClient, vfs fs.FS, concurrentWorkers int, ingestTimeout, ingestWait time.Duration, ffmpegPath, tempDir string, ffmpegOutputCodec map[string][]string, logger zLogger.ZLogger) (*IngesterVideo, error)

func (*IngesterVideo) Close

func (i *IngesterVideo) Close() error

func (*IngesterVideo) Start

func (i *IngesterVideo) Start() error

type JobStruct

type JobStruct struct {
	Width    int64
	Height   int64
	Duration int64
	Size     int64
	MimeType string
	Path     string
	Storage  *storageStruct
	Missing  []string
	// contains filtered or unexported fields
}

type WriterNopcloser

type WriterNopcloser struct {
	io.Writer
}

func (WriterNopcloser) Close

func (WriterNopcloser) Close() error

Jump to

Keyboard shortcuts

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