Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct { ExitChan chan error // contains filtered or unexported fields }
func NewInstance ¶
func NewInstance(url, path string, recDuration, timeout time.Duration, verbose bool) (*Instance, error)
NewInstance starts a new instance of FFMPEG with the args provided Args:
- url: RTSP URL
- path: path of the file to save the recording
- recDuration: duration of the recording
- timeout: the extra time for finishing and saving. The instance will be killed at recDuration + timeout
Click to show internal directories.
Click to hide internal directories.