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, conf *Config, logger logging.Logger) (camera.VideoSource, error)
NewFFMPEGCamera instantiates a new camera which leverages ffmpeg to handle a variety of potential video types.
Types ¶
type Config ¶ added in v0.2.36
type Config struct { CameraParameters *transform.PinholeCameraIntrinsics `json:"intrinsic_parameters,omitempty"` DistortionParameters *transform.BrownConrady `json:"distortion_parameters,omitempty"` Debug bool `json:"debug,omitempty"` VideoPath string `json:"video_path"` InputKWArgs map[string]interface{} `json:"input_kw_args,omitempty"` Filters []FilterConfig `json:"filters,omitempty"` OutputKWArgs map[string]interface{} `json:"output_kw_args,omitempty"` }
Config is the attribute struct for ffmpeg cameras.
type FilterConfig ¶ added in v0.2.36
type FilterConfig struct { Name string `json:"name"` Args []string `json:"args"` KWArgs map[string]interface{} `json:"kw_args"` }
FilterConfig is a struct to used to configure ffmpeg filters.
Click to show internal directories.
Click to hide internal directories.