Documentation ¶
Index ¶
- Constants
- func NewPool(encoder Encoder, parallel int) pool
- func SetLogger(l *zap.SugaredLogger)
- type Configuration
- func (c *Configuration) FfmpegPath(p string) *Configuration
- func (c *Configuration) FfprobePath(p string) *Configuration
- func (c *Configuration) Ladder(l ladder.Ladder) *Configuration
- func (c *Configuration) Log(l logging.KVLogger) *Configuration
- func (c *Configuration) SpritegenPath(p string) *Configuration
- type Encoder
- type Result
- type SpriteGenerator
Constants ¶
View Source
const MasterPlaylist = "master.m3u8"
Variables ¶
This section is empty.
Functions ¶
func SetLogger ¶
func SetLogger(l *zap.SugaredLogger)
Types ¶
type Configuration ¶ added in v0.14.0
type Configuration struct {
// contains filtered or unexported fields
}
func Configure ¶ added in v0.14.0
func Configure() *Configuration
Configure will attempt to lookup paths to ffmpeg and ffprobe. Call FfmpegPath and FfprobePath if you need to set it manually.
func (*Configuration) FfmpegPath ¶ added in v0.14.0
func (c *Configuration) FfmpegPath(p string) *Configuration
func (*Configuration) FfprobePath ¶ added in v0.14.0
func (c *Configuration) FfprobePath(p string) *Configuration
func (*Configuration) Ladder ¶ added in v0.15.0
func (c *Configuration) Ladder(l ladder.Ladder) *Configuration
Ladder configures encoding ladder.
func (*Configuration) Log ¶ added in v0.14.0
func (c *Configuration) Log(l logging.KVLogger) *Configuration
Log configures encoder logging. Default configuration is a no-op logger.
func (*Configuration) SpritegenPath ¶ added in v0.15.1
func (c *Configuration) SpritegenPath(p string) *Configuration
type Encoder ¶
type Encoder interface { Encode(in, out string) (*Result, error) GetMetadata(input string) (*ladder.Metadata, error) }
func NewEncoder ¶
func NewEncoder(cfg *Configuration) (Encoder, error)
type SpriteGenerator ¶ added in v0.15.1
type SpriteGenerator struct {
// contains filtered or unexported fields
}
func NewSpriteGenerator ¶ added in v0.15.1
func NewSpriteGenerator(cmdPath string, log logging.KVLogger) (*SpriteGenerator, error)
func (SpriteGenerator) Generate ¶ added in v0.15.1
func (g SpriteGenerator) Generate(input, output string) error
Click to show internal directories.
Click to hide internal directories.