mirror of https://github.com/q191201771/lal.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1018 B
Go
56 lines
1018 B
Go
// Copyright 2019, Chef. All rights reserved.
|
|
// https://github.com/q191201771/lal
|
|
//
|
|
// Use of this source code is governed by a MIT-style license
|
|
// that can be found in the License file.
|
|
//
|
|
// Author: Chef (191201771@qq.com)
|
|
|
|
package httpflv
|
|
|
|
const (
|
|
TagHeaderSize int = 11
|
|
PrevTagSizeFieldSize int = 4
|
|
|
|
flvHeaderSize int = 13
|
|
)
|
|
|
|
const (
|
|
TagTypeMetadata uint8 = 18
|
|
TagTypeVideo uint8 = 9
|
|
TagTypeAudio uint8 = 8
|
|
)
|
|
|
|
const (
|
|
frameTypeKey uint8 = 1
|
|
frameTypeInter uint8 = 2
|
|
)
|
|
|
|
const (
|
|
codecIdAvc uint8 = 7
|
|
codecIdHevc uint8 = 12
|
|
)
|
|
|
|
const (
|
|
AvcKeyFrame = frameTypeKey<<4 | codecIdAvc
|
|
AvcInterFrame = frameTypeInter<<4 | codecIdAvc
|
|
|
|
HevcKeyFrame = frameTypeKey<<4 | codecIdHevc
|
|
HevcInterFrame = frameTypeInter<<4 | codecIdHevc
|
|
)
|
|
|
|
const (
|
|
AvcPacketTypeSeqHeader uint8 = 0
|
|
AvcPacketTypeNalu uint8 = 1
|
|
|
|
HevcPacketTypeSeqHeader uint8 = 0
|
|
HevcPacketTypeNalu uint8 = 1
|
|
|
|
AacPacketTypeSeqHeader uint8 = 0
|
|
AacPacketTypeRaw uint8 = 1
|
|
)
|
|
|
|
const (
|
|
SoundFormatAac uint8 = 10
|
|
)
|