recorder

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RTSP_H264Recorder

type RTSP_H264Recorder struct {
	// contains filtered or unexported fields
}

func NewRTSP_H264Recorder

func NewRTSP_H264Recorder(rtspURL string, recordChan chan RecordedEvent, fchan chan image.Image) *RTSP_H264Recorder

This code requires the FFmpeg libraries, that can be installed with this command: apt install -y libavformat-dev libswscale-dev gcc pkg-config

func (*RTSP_H264Recorder) Start

func (r *RTSP_H264Recorder) Start() error

func (*RTSP_H264Recorder) Stop

func (r *RTSP_H264Recorder) Stop() error

type RecordedEvent

type RecordedEvent struct {
	VideoName string
	StartTime time.Time
	EndTime   time.Time
}

type Recorder

type Recorder interface {
	Start() error // Starts the recording
	Stop() error  // Stops the recording
	// contains filtered or unexported methods
}

Recorder is an interface for recording streams.

Jump to

Keyboard shortcuts

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