video

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const FRAMENUMBER = 5

Variables

This section is empty.

Functions

func GetSource

func GetSource() api.Source

Types

type Source

type Source struct {
	Url string `json:"url"`
	// Run ffmpeg -formats to get all supported format, default to 'image2'
	Format string `json:"vformat"`
	// Check https://www.ffmpeg.org/general.html#Video-Codecs, default to 'mjpeg'
	Codec string `json:"codec"`
	// contains filtered or unexported fields
}

func (*Source) Close

func (s *Source) Close(_ api.StreamContext) error

func (*Source) Connect

func (s *Source) Connect(_ api.StreamContext, sch api.StatusChangeHandler) error

func (*Source) Provision

func (s *Source) Provision(ctx api.StreamContext, props map[string]any) error

func (*Source) Pull

func (s *Source) Pull(ctx api.StreamContext, trigger time.Time, ingest api.BytesIngest, ingestError api.ErrorIngest)

Jump to

Keyboard shortcuts

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