Versions in this module Expand all Collapse all v1 v1.2.2 Apr 29, 2020 v1.2.1 Apr 15, 2020 v1.2.0 Apr 11, 2020 v1.1.3 Apr 8, 2020 v1.1.2 Mar 22, 2020 v1.1.1 Mar 8, 2020 v1.1.0 Mar 5, 2020 v1.0.3 Mar 4, 2020 v1.0.2 Feb 29, 2020 v1.0.1 Feb 27, 2020 v1.0.0 Feb 27, 2020 Changes in this version + const ADTS_HEADER_SIZE + const FLV_TAG_TYPE_AUDIO + const FLV_TAG_TYPE_SCRIPT + const FLV_TAG_TYPE_VIDEO + const NALU_Access_Unit_Delimiter + const NALU_Coded_Slice_Extension + const NALU_DPS + const NALU_Data_Partition_A + const NALU_Data_Partition_B + const NALU_Data_Partition_C + const NALU_Filler_Data + const NALU_IDR_Picture + const NALU_Non_IDR_Picture + const NALU_NotReserved + const NALU_Not_Auxiliary_Coded + const NALU_PPS + const NALU_Prefix + const NALU_Reserved1 + const NALU_Reserved2 + const NALU_Reserved3 + const NALU_Reserved4 + const NALU_Reserved5 + const NALU_SEI + const NALU_SPS + const NALU_SPS_Extension + const NALU_SPS_Subset + const NALU_Sequence_End + const NALU_Stream_End + const NALU_Unspecified + var AVPacketPool = &sync.Pool + var CodecID = map[byte]string + var ErrDecconfInvalid = errors.New("decode error") + var FLVHeader = []byte + var FrameType = map[byte]string + var NALU_AUD_BYTE = []byte + var NALU_Delimiter1 = []byte + var NALU_Delimiter2 = []byte + var NALU_SEI_BYTE []byte + var RTMP_AVC_HEAD = []byte + var RTMP_KEYFRAME_HEAD = []byte + var RTMP_NORMALFRAME_HEAD = []byte + var SamplingFrequencies = [...]int + var SendPacketPool = &sync.Pool + var SoundFormat = map[byte]string + var SoundRate = map[byte]int + var SoundSize = map[byte]string + var SoundType = map[byte]string + func ADTSToAudioSpecificConfig(data []byte) []byte + func ReadPPS(w io.Writer) + func WriteFLVTag(w io.Writer, tag *SendPacket) (err error) + type ADTS struct + func AudioSpecificConfigToADTS(asc AudioSpecificConfig, rawDataLength int) (adts ADTS, adtsByte []byte, err error) + type ADTSFixedHeader struct + ChannelConfiguration byte + Home byte + ID byte + Layer byte + OriginalCopy byte + PrivateBit byte + Profile byte + ProtectionAbsent byte + SamplingFrequencyIndex byte + SyncWord uint16 + type ADTSVariableHeader struct + AACFrameLength uint16 + ADTSBufferFullness uint16 + CopyrightIdentificationBit byte + CopyrightIdentificationStart byte + NumberOfRawDataBlockInFrame byte + type AVCDecoderConfigurationRecord struct + AVCLevelIndication byte + AVCProfileIndication byte + ConfigurationVersion byte + LengthSizeMinusOne byte + NumOfPictureParameterSets byte + NumOfSequenceParameterSets byte + PictureParameterSetLength uint16 + PictureParameterSetNALUnit []byte + ProfileCompatibility byte + Reserved1 byte + Reserved2 byte + SequenceParameterSetLength uint16 + SequenceParameterSetNALUnit []byte + func (p *AVCDecoderConfigurationRecord) Unmarshal(b []byte) (n int, err error) + type AVPacket struct + IsAACSequence bool + IsADTS bool + IsAVCSequence bool + Payload []byte + RefCount int + Timestamp uint32 + Type byte + VideoFrameType byte + func NewAVPacket(avType byte) (p *AVPacket) + func ReadFLVTag(r io.Reader) (tag *AVPacket, err error) + func (av *AVPacket) ADTS2ASC() (tagPacket *AVPacket) + func (av *AVPacket) IsKeyFrame() bool + func (av *AVPacket) Recycle() + type AdditionalMetadataContainerBox struct + type AudioSampleEntry struct + ChannelCount uint16 + PreDefined uint16 + Reserved1 [2]uint32 + Reserved2 uint16 + SampleRate uint32 + SampleSize uint16 + type AudioSampleGroupEntry struct + type AudioSpecificConfig struct + AudioObjectType byte + ChannelConfiguration byte + SamplingFrequencyIndex byte + type AuxInfo struct + AuxInfoType uint32 + AuxInfoTypeParameter uint32 + type BinaryXMLBox struct + Data []uint8 + type BitRateBox struct + AvgBitrate uint32 + BufferSizeDB uint32 + MaxBitrate uint32 + type ChunkLargeOffsetBox struct + ChunkOffset []uint64 + EntryCount uint32 + type ChunkOffsetBox struct + ChunkOffset []uint32 + EntryCount uint32 + type CleanApertureBox struct + CleanApertureHeightD uint32 + CleanApertureHeightN uint32 + CleanApertureWidthD uint32 + CleanApertureWidthN uint32 + HorizOffD uint32 + HorizOffN uint32 + VertOffD uint32 + VertOffN uint32 + type ColourInformationBox struct + ColourType uint32 + type CompactSampleSizeBox struct + EntrySize interface{} + FieldSize uint8 + Reserved [3]uint8 + SampleCount uint32 + type CompositionOffsetBox struct + EntryCount uint32 + Table []CompositionOffsetTable + type CompositionOffsetTable struct + SampleCount uint32 + SampleOffset interface{} + type CompositionToDecodeBox struct + CompositionEndTime int32 + CompositionStartTime int32 + CompositionToDTSShift int32 + GreatestDecodeToDisplayDelta int32 + LeastDecodeToDisplayDelta int32 + type CopyrightBox struct + Language [2]byte + Notice string + Pad byte + type DataEntryUrlBox struct + Location string + type DataEntryUrnBox struct + Location string + Name string + type DataInformationBox struct + type DataReferenceBox struct + DataEntry interface{} + EntryCount uint32 + type DegradationPriorityBox struct + Priority []uint16 + type EditBox struct + type EditListBox struct + EntryCount uint32 + Tables []EditListTable + type EditListTable struct + MediaRateFraction int16 + MediaRateInteger int16 + MediaTime interface{} + SegmentDuration interface{} + type FDItemInformationBox struct + EntryCount uint16 + FDSGB FDSessionGroupBox + GidToNameB GroupIdToNameBox + PE []PartitionEntry + type FDSessionGroupBox struct + NumSessionGroups uint16 + Table []FDSessionGroupTable + type FDSessionGroupIDTable struct + GroupID uint32 + type FDSessionGroupTable struct + EntryCount uint8 + GIDTable []FDSessionGroupIDTable + HTIDTable []FDSessionHintTrackIDTable + NumChannelsInSessionGroup uint16 + type FDSessionHintTrackIDTable struct + HintTrackID uint32 + type FECReservoirBox struct + EntryCount uint16 + Table []FECReservoirTable + type FECReservoirTable struct + ItemID uint16 + SymbolCount uint32 + type FilePartitionBox struct + EncodingSymbolLength uint16 + EntryCount uint16 + FECEncodingID uint8 + FECInstanceID uint16 + ItemID uint16 + MaxNumberOfEncodingSymbols uint16 + MaxSourceBlockLength uint16 + PacketPayloadSize uint16 + Reserved uint8 + SchemeSpecificInfo string + Tanble []FilePartitionTable + type FilePartitionTable struct + BlockCount uint16 + BlockSize uint32 + type FileReservoirBox struct + EntryCount uint16 + Table []FileReservoirTable + type FileReservoirTable struct + ItemID uint16 + SymbolCount uint32 + type FileTypeBox struct + CompatibleBrands []uint32 + MajorBrand uint32 + MinorVersion uint32 + func NewFileTypeBox() (box *FileTypeBox) + type FreeSpaceBox struct + Data []uint8 + type GASpecificConfig struct + DependsOnCoreCoder byte + ExtensionFlag byte + FrameLengthFlag byte + type GroupIdToNameBox struct + EntryCount uint16 + Table []GroupIdToNameBox + type GroupIdToNameTable struct + GroupID uint32 + GroupName string + type H264 struct + type HandlerBox struct + HandlerType uint32 + Name string + PreDefined uint32 + Reserved [3]uint32 + type HintMediaHeaderBox struct + AvgBitrate uint32 + AvgPDUSize uint16 + MaxBitrate uint32 + MaxPDUSize uint16 + Reserved uint32 + type HintSampleEntry struct + Data []uint8 + type HintSampleGroupEntry struct + type IPMPControlBox struct + type IndependentAndDisposableSamplesBox struct + Table []IndependentAndDisposableSamplesTable + type IndependentAndDisposableSamplesTable struct + IsLeading byte + SampleDependsOn byte + SampleHasTedundancy byte + SampleIsDependedOn byte + type ItemDataBox struct + Data []byte + type ItemInfoBox struct + EntryCount uint16 + ItemInfos []ItemInfoEntry + type ItemInfoEntry struct + ContentEncoding string + ContentType string + ExtensionType uint32 + ItemID uint16 + ItemName string + ItemProtectionIndex uint16 + ItemType uint32 + ItemUriType string + type ItemInfoExtension struct + type ItemLocationBox struct + BaseOffsetSize byte + IndexSize byte + ItemCount uint16 + LengthSize byte + OffsetSize byte + Table interface{} + type ItemLocationExtentTable1 struct + ExtentIndex interface{} + type ItemLocationExtentTable2 struct + ExtentLength interface{} + ExtentOffset interface{} + type ItemLocationTable1 struct + BaseOffset interface{} + ConstructionMethod byte + DataReferenceIndex uint16 + ExtentCount uint16 + ExtentTable []ItemLocationExtentTable1 + ItemID uint16 + Reserved uint16 + type ItemLocationTable2 struct + BaseOffset interface{} + DataReferenceIndex uint16 + ExtentCount uint16 + ExtentTable []ItemLocationExtentTable2 + ItemID uint16 + type ItemProtectionBox struct + ProtectionCount uint16 + Table []ItemProtectionTable + type ItemProtectionTable struct + ProtectionInformation ProtectionSchemeInfoBox + type ItemReferenceBox struct + SITRB []SingleItemTypeReferenceBox + type LevelAssignmentBox struct + LevelCount uint8 + Table []LevelAssignmentTable + type LevelAssignmentTable struct + AssignmentType byte + PaddingFlag byte + TrackId uint32 + type MP4 interface + type MP4Body struct + type MP4Box interface + Body func() *MP4Body + Header func() *MP4Header + type MP4BoxHeader struct + BoxSize uint32 + BoxType uint32 + type MP4BoxLargeHeader struct + LargeSize uint64 + UUIDs [16]uint8 + type MP4FullBoxHeader struct + Flags [3]byte + Version uint8 + type MP4Header struct + type MediaBox struct + Mhb MediaHeaderBox + type MediaDataBox struct + Data []byte + type MediaHeaderBox struct + CreationTime interface{} + Duration interface{} + Language [2]byte + ModificationTime interface{} + Pad byte + PreDefined uint16 + TimeScale uint32 + type MediaInformationBox struct + type MediaInformationHeaderBoxes struct + type MetaBox struct + FileLocations DataInformationBox + IPMPControl IPMPControlBox + ItemData ItemDataBox + ItemInfos ItemInfoBox + ItemLocations ItemLocationBox + ItemRefs ItemReferenceBox + PrimaryResource PrimaryItemBox + Protections ItemProtectionBox + type MetaDataSampleEntry struct + type MetaboxRelationBox struct + FirstMetaboxHandlerType uint32 + MetaboxRelation uint8 + SecondMetaboxHandlerType uint32 + type MovieBox struct + func NewMovieBox() (box *MovieBox) + type MovieExtendsBox struct + type MovieExtendsHeaderBox struct + type MovieFragmentBox struct + type MovieFragmentHeaderBox struct + SequenceNumber uint32 + type MovieFragmentRandomAccessBox struct + type MovieFragmentRandomAccessOffsetBox struct + Size uint32 + type MovieHeaderBox struct + CreationTime interface{} + Duration interface{} + Matrix [9]int32 + ModificationTime interface{} + NextTrackID uint32 + PreDefined [6]int32 + Rate int32 + Reserved1 int16 + Reserved2 [2]uint32 + TimeScale uint32 + Volume int16 + type NALUHeader struct + type NALUnit struct + type NullMediaHeaderBox struct + type OriginalFormatBox struct + DataFormat uint32 + type PaddingBitsBox struct + SampleCount uint32 + Table []PaddingBitsTable + type PaddingBitsTable struct + Pad1 byte + Pad2 byte + Reserved1 byte + Reserved2 byte + type PartitionEntry struct + FECRB FECReservoirBox + FPB FilePartitionBox + FRB FileReservoirBox + type PixelAspectRatioBox struct + HSpacing uint32 + VSpacing uint32 + type PrimaryItemBox struct + ItemID uint16 + type ProducerReferenceTimeBox struct + MediaTime interface{} + NtpTimestamp uint64 + ReferenceTrackID uint32 + type ProgressiveDownloadInformationBox struct + InitialDelay uint32 + Rate uint32 + type ProtectionSchemeInfoBox struct + Info SchemeInformationBox + OriginalFormat OriginalFormatBox + Type SchemeTypeBox + type RBSP interface + type SPSInfo struct + CropBottom uint + CropLeft uint + CropRight uint + CropTop uint + Height uint + LevelIdc uint + MbHeight uint + MbWidth uint + ProfileIdc uint + Width uint + func ParseSPS(data []byte) (self SPSInfo, err error) + type SampleAuxiliaryInformationOffsetsBox struct + type SampleAuxiliaryInformationSizesBox struct + Table interface{} + type SampleAuxiliaryInformationSizesTable1 struct + AuxInfoType uint32 + AuxInfoTypeParameter uint32 + DefaultSampleInfoSize uint8 + SampleCount uint32 + type SampleAuxiliaryInformationSizesTable2 struct + DefaultSampleInfoSize uint8 + SampleCount uint32 + type SampleDescriptionBox struct + EntryCount uint32 + type SampleEntry struct + DataReferenceIndex uint16 + Reserved [6]uint8 + type SampleGroupDescriptionBox struct + EntryCount uint32 + GroupingType uint32 + type SampleGroupDescriptionEntry struct + type SampleSizeBox struct + EntrySize interface{} + SampleCount uint32 + SampleSize uint32 + type SampleSizeBoxes struct + type SampleTableBox struct + type SampleToChunkBox struct + EntryCount uint32 + Table []SampleToChunkTable + type SampleToChunkTable struct + FirstChunk []uint32 + SampleDescriptionIndex []uint32 + SamplesPerChunk []uint32 + type SampleToGroupBox struct + EntryCount uint32 + GroupingType uint32 + Table []SampleToGroupTable + type SampleToGroupTable struct + GroupDescriptionIndex uint32 + SampleCount uint32 + type SchemeInformationBox struct + SchemeSpecificData []SchemeTypeBox + type SchemeTypeBox struct + SchemeType uint32 + SchemeVersion uint32 + type SegmentIndexBox struct + EarliestPresentationTime interface{} + FirstOffset interface{} + ReferenceCount uint16 + ReferenceID uint32 + Reserved uint16 + Table []SegmentIndexTable + TimeScale uint32 + type SegmentIndexTable struct + ReferenceType byte + ReferencedSize uint32 + SAPDeltaTime uint32 + SAPType byte + StartsWithSAP byte + SubSegmentDuration uint32 + type SendPacket struct + Packet *AVPacket + Timestamp uint32 + func NewSendPacket(p *AVPacket, timestamp uint32) (result *SendPacket) + func (packet *SendPacket) Recycle() + type ShadowSyncSampleBox struct + EntryCount uint32 + Table []ShadowSyncSampleTable + type ShadowSyncSampleTable struct + ShadowedSampleNumber uint32 + SyncSampleNumber uint32 + type SingleItemTypeReferenceBox struct + FromItemID uint16 + ReferenceCount uint16 + Table []SingleItemTypeReferenceTable + type SingleItemTypeReferenceTable struct + ToItemID uint16 + type SoundMediaHeaderBox struct + Balance int16 + Reserved uint16 + type SubSampleCountTable struct + DiscardAble uint8 + Reserved uint32 + SubsamplePriority uint8 + SubsampleSize interface{} + type SubSampleInformationBox struct + EntryCount uint32 + Table []SubSampleInformationTable + type SubSampleInformationTable struct + CountTable []SubSampleCountTable + SampleDelta uint32 + SubsampleCount uint16 + type SubTrack struct + type SubTrackDefinition struct + type SubTrackInformation struct + AlternateGroup int16 + AttributeList []uint32 + SubTrackID uint32 + SwitchGroup int16 + type SubsegmentIndexBox struct + SubSegmentCount uint32 + Table []SubsegmentIndexTable + type SubsegmentIndexTable struct + RangesCount uint32 + Rtable []SubsegmentRangesTable + type SubsegmentRangesTable struct + type SyncSampleBox struct + EntryCount uint32 + SampleNumber []uint32 + type TextMetaDataSampleEntry struct + Brb BitRateBox + ContentEncoding string + MimeFormat string + type TimeToSampleBox struct + EntryCount uint32 + Table []TimeToSampleTable + type TimeToSampleTable struct + SampleCount []uint32 + SampleDelta []uint32 + type TrackBox struct + Thb TrackHeaderBox + type TrackExtendsBox struct + DefaultSampleDescriptionIndex uint32 + DefaultSampleDuration uint32 + DefaultSampleFlags uint32 + DefaultSampleSize uint32 + TrackID uint32 + type TrackFragmentBaseMediaDecodeTimeBox struct + BaseMediaDecodeTime interface{} + type TrackFragmentBox struct + type TrackFragmentHeaderBox struct + BaseDataOffset uint64 + DefaultSampleDuration uint32 + DefaultSampleFlags uint32 + DefaultSampleSize uint32 + SampleDescriptionIndex uint32 + TrackID uint32 + type TrackFragmentRandomAccessBox struct + LengthSizeOfSampleNum byte + LengthSizeOfTrafNum byte + LengthSizeOfTrunNum byte + NumberOfEntry uint32 + Reserved uint32 + Table []TrackFragmentRandomAccessTable + TrackID uint32 + type TrackFragmentRandomAccessTable struct + Moofoffset interface{} + SampleNumber interface{} + Time interface{} + TrafNumber interface{} + TrunNumber interface{} + type TrackFragmentRunBox struct + DataOffset int32 + FirstSampleFlags uint32 + SampleCount uint32 + Table []TrackFragmentRunTable + type TrackFragmentRunTable struct + SampleCompositionTimeOffset interface{} + SampleDuration uint32 + SampleFlags uint32 + SampleSize uint32 + type TrackGroupBox struct + type TrackGroupTypeBox struct + TrackGroupID uint32 + type TrackHeaderBox struct + AlternateGroup int16 + CreationTime interface{} + Duration interface{} + Height uint32 + Layer int16 + Matrix [9]int32 + ModificationTime interface{} + Reserved1 uint32 + Reserved2 [2]uint32 + Reserved3 uint16 + TrackID uint32 + Volume int16 + Width uint32 + type TrackReferenceBox struct + type TrackReferenceTypeBox struct + TrackIDs []uint32 + type TrackSelectionBox struct + AttributeList []uint32 + SwitchGroup int32 + type URIBox struct + TheURI string + type URIInitBox struct + UriInitializationData []uint8 + type URIMetaSampleEntry struct + Init URIInitBox + TheLabel URIBox + type UserDataBox struct + type VideoMediaHeaderBox struct + GraphicsMode uint16 + Opcolor [3]uint16 + type VisualSampleEntry struct + Cab CleanApertureBox + CompressorName [32]string + Depth uint16 + FrameCount uint16 + Height uint16 + HorizreSolution uint32 + Parb PixelAspectRatioBox + PreDefined1 uint16 + PreDefined2 [3]uint32 + PreDefined3 int16 + Reserved1 uint16 + Reserved3 uint32 + VertreSolution uint32 + Width uint16 + type VisualSampleGroupEntry struct + type XMLBox struct + XML string + type XMLMetaDataSampleEntry struct + Brb BitRateBox + ContentEncoding string + NameSpace string + SchemaLocation string Other modules containing this package github.com/Monibuca/engine/v2