nvr

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MP4 = "mp4"
	NVR = "nvr"
)
View Source
const (
	B  = 1
	KB = 1024 * B
	MB = 1024 * KB
	GB = 1024 * MB
)

Variables

View Source
var MIME = []byte{11, 22, 111, 222, 11, 22, 111, 222}

Functions

This section is empty.

Types

type Data

type Data struct {
	Time  int64
	Start int64
	Dur   int64
}

type DeMuxer

type DeMuxer struct {
}

func NewDeMuxer

func NewDeMuxer() *DeMuxer

NewDeMuxer func

func (*DeMuxer) ReadGop

func (obj *DeMuxer) ReadGop() (err error)

ReadGop func

func (*DeMuxer) ReadIndex

func (obj *DeMuxer) ReadIndex() (err error)

ReadIndex func

func (*DeMuxer) ReadRange

func (obj *DeMuxer) ReadRange() (err error)

ReadRange func

type Gof

type Gof struct {
	Streams []av.CodecData
	Packet  []av.Packet
}

type Muxer

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

func NewMuxer

func NewMuxer(serverID, streamName, channelName, streamID, channelID string, mpoint []string, patch, format string, limit int) (m *Muxer, err error)

func (*Muxer) OpenMP4

func (m *Muxer) OpenMP4() (err error)

func (*Muxer) OpenNVR

func (m *Muxer) OpenNVR() (err error)

func (*Muxer) WriteHeader

func (m *Muxer) WriteHeader(streams []av.CodecData) (err error)

func (*Muxer) WritePacket

func (m *Muxer) WritePacket(pkt av.Packet) (err error)

func (*Muxer) WriteTrailer

func (m *Muxer) WriteTrailer() (err error)

type Stream

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

Jump to

Keyboard shortcuts

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