Documentation ¶
Index ¶
Constants ¶
View Source
const ( PacketSize = 188 SyncByte = 0x47 // Uppercase G ClockRate = 90000 // fixed clock rate for PTS/DTS of any type )
View Source
const ( StreamTypeMetadata = 0 // Reserved StreamTypePrivate = 0x06 // PCMU or PCMA or FLAC from FFmpeg StreamTypeAAC = 0x0F StreamTypeH264 = 0x1B StreamTypeH265 = 0x24 StreamTypePCMATapo = 0x90 StreamTypePrivateOPUS = 0xEB )
https://en.wikipedia.org/wiki/Program-specific_information#Elementary_stream_types
Variables ¶
This section is empty.
Functions ¶
func CutOPUSPacket ¶ added in v1.8.5
func StreamType ¶ added in v1.7.0
Types ¶
type Consumer ¶
type Consumer struct { core.Connection // contains filtered or unexported fields }
func NewConsumer ¶ added in v1.7.0
func NewConsumer() *Consumer
type Demuxer ¶ added in v1.7.0
type Demuxer struct {
// contains filtered or unexported fields
}
func NewDemuxer ¶ added in v1.7.0
func NewDemuxer() *Demuxer
type Muxer ¶ added in v1.7.0
type Muxer struct {
// contains filtered or unexported fields
}
func (*Muxer) GetPayload ¶ added in v1.7.0
GetPayload - safe to run concurently with different pid
type PES ¶
type PES struct { StreamID byte // from each PES header StreamType byte // from PMT table Sequence uint16 // manual Timestamp uint32 // manual PTS uint32 // from extra header, always 90000Hz DTS uint32 Payload []byte // from PES body Size int // from PES header, can be 0 // contains filtered or unexported fields }
PES - Packetized Elementary Stream
func (*PES) AppendBuffer ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.