Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Binary string
MaxProc int64
MaxLogLines int
LogHistoryLength int
ValidatorInput Validator
ValidatorOutput Validator
Portrange net.Portranger
Collector session.Collector
}
Config is the configuration for ffmpeg that is part of the configuration for the restreamer instance.
type FFmpeg ¶
type FFmpeg interface {
New(config ProcessConfig) (process.Process, error)
NewProcessParser(logger log.Logger, id, reference string) parse.Parser
NewProbeParser(logger log.Logger) probe.Parser
ValidateInputAddress(address string) bool
ValidateOutputAddress(address string) bool
Skills() skills.Skills
ReloadSkills() error
GetPort() (int, error)
PutPort(port int)
States() process.States
}
type ProcessConfig ¶
type Validator ¶
type Validator interface {
// IsValid tests whether a text matches any expression of inputs
IsValid(text string) bool
}
The Validator interface is for validating strings whether they are eligible as input or output for a ffmpeg process
func NewValidator ¶
NewValidator creates a new Validator with the given input and output expressions. Empty expressions will be ignored. Returns an error if an expression can't be compiled.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package skills provides an easy way to find out which codec, de/muxers, filters, and formats ffmpeg supports and which devices are available for ffmpeg on the system.
|
Package skills provides an easy way to find out which codec, de/muxers, filters, and formats ffmpeg supports and which devices are available for ffmpeg on the system. |
Click to show internal directories.
Click to hide internal directories.