Files
monibuca/plugin/mp4/pkg/box/mp4table.go
langhuihui f4923d9df6 in progress
2025-02-11 20:21:37 +08:00

53 lines
818 B
Go

package box
//based on ffmpeg
type STTSEntry struct {
SampleCount uint32
SampleDelta uint32
}
type SubSampleEntry struct {
BytesOfClearData uint16
BytesOfProtectedData uint32
}
type SencEntry struct {
IV []byte
SubSamples []SubSampleEntry
}
type CTTSEntry struct {
SampleCount uint32
SampleOffset uint32
}
type STSCEntry struct {
FirstChunk uint32
SamplesPerChunk uint32
SampleDescriptionIndex uint32
}
type ELSTEntry struct {
SegmentDuration uint64
MediaTime int64
MediaRateInteger int16
MediaRateFraction int16
}
type SENC struct {
Entrys []SencEntry
}
type FragEntry struct {
Time uint64
MoofOffset uint64
}
type TFRAEntry struct {
Time uint64
MoofOffset uint64
TrafNumber uint32
TrunNumber uint32
SampleNumber uint32
}