Documentation ¶
Index ¶
Constants ¶
View Source
const ( //Fferr when scanner return error Fferr = iota //Ffdone when process exited without err Ffdone //FframeUpdate is frame, encoding speed update line FframeUpdate //Ffother anything else Ffother )
Variables ¶
View Source
var Ffoutchan chan Ffoutmsg
Ffoutchan output lines from ffmpeg process
Functions ¶
func GetLoggers ¶
GetLoggers returns info and error logger
Types ¶
type Devices ¶
Devices has information about ffmpeg multimedia devices
func GetFfmpegDevices ¶
func GetFfmpegDevices(p ProberCommon) Devices
GetFfmpegDevices returns audio and video devices available
type Prober ¶
type Prober interface {
// contains filtered or unexported methods
}
Prober has logic that changes based on platform
type ProberCommon ¶
type ProberCommon struct { Devices // contains filtered or unexported fields }
ProberCommon has all options; common and platform prober
func (ProberCommon) GetPresets ¶
func (pc ProberCommon) GetPresets(typ Avtype) (ps []string)
GetPresets returns available presets
func (*ProberCommon) KillEncode ¶
func (p *ProberCommon) KillEncode()
KillEncode stop ffmpeg process
func (*ProberCommon) RmTmpFiles ¶
func (p *ProberCommon) RmTmpFiles()
RmTmpFiles removes intermediate stage avfiles
func (ProberCommon) SetInputs ¶
func (pc ProberCommon) SetInputs(uiips []UIInput, resumeCount int)
SetInputs to set configure input streams
func (*ProberCommon) StartEncode ¶
func (p *ProberCommon) StartEncode()
StartEncode starts ffmpeg process with configured options
func (*ProberCommon) StartMux ¶
func (p *ProberCommon) StartMux()
StartMux concats all resume split streams to single stream, and then avstreams to final container
Click to show internal directories.
Click to hide internal directories.