ffmpeg

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: AGPL-3.0 Imports: 19 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, 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 {
	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              []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.

Jump to

Keyboard shortcuts

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