Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
Process is the main type for creating new processes
func NewProcess ¶
NewProcess creates a new process able to spawn transcoding FFMPEG processes
type ProcessLoggingOpts ¶
type ProcessLoggingOpts struct { Enabled bool // Option to set logging for transcoding processes Directory string // Directory for the logs MaxSize int // Maximum size of kept logging files in megabytes MaxBackups int // Maximum number of old log files to retain MaxAge int // Maximum number of days to retain an old log file. Compress bool // Indicates if the log rotation should compress the log files }
ProcessLoggingOpts describes options for process logging
type Stream ¶
type Stream struct { ID string `json:"id"` Path string `json:"path"` Running bool `json:"running"` CMD *exec.Cmd `json:"-"` Process IProcess `json:"-"` Mux *sync.Mutex `json:"-"` Streak *hotstreak.Hotstreak `json:"-"` OriginalURI string `json:"-"` StorePath string `json:"-"` KeepFiles bool `json:"-"` LoggingOpts *ProcessLoggingOpts `json:"-"` Logger *lumberjack.Logger `json:"-"` WaitTimeOut time.Duration `json:"-"` }
Stream describes a given host's streaming
func NewStream ¶
func NewStream( URI string, storingDirectory string, keepFiles bool, audio bool, loggingOpts ProcessLoggingOpts, waitTimeOut time.Duration, ) (*Stream, string)
NewStream creates a new transcoding process for ffmpeg
Click to show internal directories.
Click to hide internal directories.