Documentation ¶
Overview ¶
Package pktque provides packet Filter interface and structures used by other components.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter interface { // Change packet time or drop packet ModifyPacket(pkt *av.Packet, streams []av.CodecData, videoidx int, audioidx int) (drop bool, err error) }
Filter Filter
type FilterDemuxer ¶
FilterDemuxer Wrap origin Demuxer and Filter into a new Demuxer, when read this Demuxer filters will be called.
func (FilterDemuxer) ReadPacket ¶
func (instance FilterDemuxer) ReadPacket() (pkt av.Packet, err error)
ReadPacket ReadPacket
type Filters ¶
type Filters []Filter
Filters Combine multiple Filters into one, ModifyPacket will be called in order.
type FixTime ¶
type FixTime struct { StartFromZero bool // make timestamp start from zero MakeIncrement bool // force timestamp increment // contains filtered or unexported fields }
FixTime Fix incorrect packet timestamps.
type WaitKeyFrame ¶
type WaitKeyFrame struct {
// contains filtered or unexported fields
}
WaitKeyFrame Drop packets until first video key frame arrived.
Click to show internal directories.
Click to hide internal directories.