ffmpeg

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 7 Imported by: 0

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

func (*Instance) Stop

func (i *Instance) Stop()

Stop tries to stop the instance gratefully. It is NON blocking. If it fails, it kills the instance.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL