moovutil

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MoovHeader

type MoovHeader struct {
	MOOV_loc int64
	//start location of trac atoms
	TRAC_locs []TrakLocInfo
}

func ReadMVHDTimescaleAndDuration

func ReadMVHDTimescaleAndDuration(file *os.File) (moov_info *MoovHeader, timescale uint32, duration uint64, err error)

The function doesn't assume anything regarding the position of the file. It will start from the beginning, and it will read until an MOOV atom is found. If not found, it errors out with the position of the file being left most probably at the EOF. IF an error occurs even before that, the file position is left where the error occurred. The user shouldn't make any assumption as of where the file's position is located.

type TrakLocInfo

type TrakLocInfo struct {
	TRAK_loc  int64
	TRAK_size int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL