ffmpeg

package
v0.32.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

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.

func (*Config) Validate added in v0.26.0

func (cfg *Config) Validate(path string) ([]string, error)

Validate ensures all parts of the config are valid.

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.

Jump to

Keyboard shortcuts

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