Documentation
¶
Overview ¶
Package mp4read reads the video track of the MP4 files Reolink cameras write (to their SD card, and over FTP): a plain moov with an avc1 or hvc1 track, or a fragmented file (battery doorbells) whose moov is empty and whose samples sit in moof+mdat pairs. Just enough to hand the samples back as Annex-B access units, parameter sets in front of each keyframe.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sample ¶
type Sample struct {
Offset int64
Size uint32
// Dur is how long it shows, in Track.Timescale units.
Dur uint32
Key bool
}
Sample is one video access unit in the file.
type Track ¶
type Track struct {
Codec string // "H264" or "H265"
Timescale uint32
Params [][]byte // VPS/SPS/PPS or SPS/PPS, without start codes
Samples []Sample
// contains filtered or unexported fields
}
Track is a file's video track.