Versions in this module Expand all Collapse all v1 v1.0.7 Feb 13, 2025 v1.0.6 Feb 12, 2025 Changes in this version type StreamHandler + CodecType string + func (s *StreamHandler) String() string v1.0.5 Jan 27, 2025 v1.0.4 Jan 27, 2025 v1.0.3 Jan 27, 2025 v1.0.2 Jan 10, 2025 v1.0.1 Jan 10, 2025 v1.0.0 Sep 11, 2024 Changes in this version + const DefaultStatGridNum + const DelayInterval + const StatInterval + type AVFlow struct + AudioBitrate *Bitrate + AudioDuration *Duration + AudioFPS *FPS + VideoBitrate *Bitrate + VideoDelay *Delay + VideoDuration *Duration + VideoFPS *FPS + VideoGop *Gop + func NewAVFlow() *AVFlow + func (s *AVFlow) Stat(pkt *av.Packet) + type Bitrate struct + func NewBitrate() *Bitrate + func (b *Bitrate) Add(size uint64) + func (b *Bitrate) GetBitTotal() uint64 + func (b *Bitrate) GetBitrate() uint64 + func (b *Bitrate) String() string + type Delay struct + func NewDelay() *Delay + func (d *Delay) Add(pktTS int64) + func (d *Delay) GetDelay() int64 + func (d *Delay) String() string + type Duration struct + func NewDuration() *Duration + func (d *Duration) Add(pktTS int64) + func (d *Duration) GetDuration() int64 + type FPS struct + func NewFPS() *FPS + func (f *FPS) Add() + func (f *FPS) GetFPS() uint32 + func (f *FPS) String() string + type Gop struct + func NewGop() *Gop + func (g *Gop) Add(pkt *av.Packet) + func (g *Gop) GetGop() float64 + func (g *Gop) String() string + type PeriodicStatistic struct + func NewPeriodicStatistic(gridNum, gridPeriod int64) *PeriodicStatistic + func (rcv *PeriodicStatistic) Avg() int64 + func (rcv *PeriodicStatistic) Max() int64 + func (rcv *PeriodicStatistic) Min() int64 + func (rcv *PeriodicStatistic) Stat(val int64) + func (rcv *PeriodicStatistic) Sum() int64 + type ProcStat struct + CMajFlt uint + CMinFlt uint + CSTime uint + CUTime uint + Comm string + Flags uint + MajFlt uint + MinFlt uint + Nice int + NumThreads int + PGRP int + PID int + PPID int + Priority int + RSS uint64 + STime uint + Session int + Starttime uint64 + State string + TPGID int + TTY int + UTime uint + VSize uint64 + func CurrentProcStat() (ProcStat, error) + func NewProcStat(statfile string, pid int) (ProcStat, error) + func (s ProcStat) ResidentMemory() uint64 + func (s ProcStat) VirtualMemory() uint64 + type Stream struct + ForwarderNum int32 + HlsBw uint64 + HlsPlayerNum int32 + InBW uint64 + OutBW uint64 + PlayerNum int32 + QuicPlayerNum int32 + SliceInBW uint64 + SliceOutBW uint64 + SlicePlayerNum int32 + type StreamHandler struct + AudioBitrate uint64 + AudioDuration int64 + AudioFPS uint32 + VideoBitrate uint64 + VideoDelay int64 + VideoDuration int64 + VideoFPS uint32 + VideoGop float64 + VideoHeight uint32 + VideoWidth uint32 + func (sh *StreamHandler) VideoDurationDelay() int64