Documentation ¶
Overview ¶
Package ffmpeg provides an implementation for an ffmpeg based camera
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFFMPEGCamera ¶
func NewFFMPEGCamera(ctx context.Context, attrs *AttrConfig, logger golog.Logger) (camera.Camera, error)
NewFFMPEGCamera instantiates a new camera which leverages ffmpeg to handle a variety of potential video types.
Types ¶
type AttrConfig ¶
type AttrConfig struct { *camera.AttrConfig VideoPath string `json:"video_path"` InputKWArgs map[string]interface{} `json:"input_kw_args,omitempty"` Filters []FilterAttrs `json:"filters,omitempty"` OutputKWArgs map[string]interface{} `json:"output_kw_args,omitempty"` }
AttrConfig is the attribute struct for ffmpeg cameras.
type FilterAttrs ¶
type FilterAttrs struct { Name string `json:"name"` Args []string `json:"args"` KWArgs map[string]interface{} `json:"kw_args"` }
FilterAttrs is a struct to used to configure ffmpeg filters.
Click to show internal directories.
Click to hide internal directories.