Documentation ¶
Index ¶
- Constants
- func Chk(e error)
- func DeB64(b64 string) []byte
- func FileParser(fname string)
- func IsIn(slice []uint8, val uint8) bool
- func PktParser(pkt []byte)
- func SCTE35Parser(bites []byte)
- type SpCmd
- func (cmd *SpCmd) BandwidthReservation(bitn *bitter.Bitn)
- func (cmd *SpCmd) Decode(bitn *bitter.Bitn, cmdtype uint64)
- func (cmd *SpCmd) ParseBreak(bitn *bitter.Bitn)
- func (cmd *SpCmd) PrivateCommand(bitn *bitter.Bitn)
- func (cmd *SpCmd) SpliceInsert(bitn *bitter.Bitn)
- func (cmd *SpCmd) SpliceNull()
- func (cmd *SpCmd) SpliceTime(bitn *bitter.Bitn)
- func (cmd *SpCmd) TimeSignal(bitn *bitter.Bitn)
- type SpInfo
Constants ¶
View Source
const BufferSize = 384 * PktSz
BufferSize is the size of a read when parsing files.
View Source
const PktSz = 188
PktSz is the size of an MPEG-TS packet in bytes.
Variables ¶
This section is empty.
Functions ¶
func SCTE35Parser ¶
func SCTE35Parser(bites []byte)
SCTE35Parser parses a slice of bytes for SCTE 35 data.
Types ¶
type SpCmd ¶
type SpCmd struct { Name string SpliceEventId string SpliceEventCancelIndicator bool OutOfNetworkIndicator bool ProgramSpliceFlag bool DurationFlag bool BreakAutoReturn bool BreakDuration float64 SpliceImmediateFlag bool TimeSpecifiedFlag bool PTS float64 ComponentCount uint64 Components []uint64 UniqueProgramId uint64 AvailNum uint64 AvailExpected uint64 Identifier uint64 }
SpCmd is the splice command for the SCTE35 cue.
func (*SpCmd) BandwidthReservation ¶
BandwidthReservation splice command.
func (*SpCmd) ParseBreak ¶
ParseBreak parses out the ad break duration values.
func (*SpCmd) PrivateCommand ¶
PrivateCommand splice command.
func (*SpCmd) SpliceInsert ¶
SpliceInsert handles SCTE 35 splice insert commands.
func (*SpCmd) SpliceTime ¶
SpliceTime parses out the PTS value as needed.
func (*SpCmd) TimeSignal ¶
TimeSignal splice command is a wrapper for SpliceTime.
type SpInfo ¶
type SpInfo struct { Name string TableId string SectionSyntaxIndicator bool Private bool Reserved string SectionLength uint64 ProtocolVersion uint64 EncryptedPacket bool EncryptionAlgorithm uint64 PtsAdjustment float64 CwIndex string Tier string SpliceCommandLength uint64 SpliceCommandType uint64 DescriptorLoopLength uint64 }
SpInfo is the splice info section of the SCTE 35 cue.
Click to show internal directories.
Click to hide internal directories.