ffmpeg

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: AGPL-3.0 Imports: 17 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 golog.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 {
	resource.TriviallyValidateConfig
	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.

Jump to

Keyboard shortcuts

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