chronos

package module
v0.0.0-...-62b42b8 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

chronos

Chronos is a tool for manipulating metadata in MP4 files.

TODO:

  • Add CLI functionality

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MP4

type MP4 struct {
	File         *os.File
	Metadata     *Metadata
	MVHDPosition int64
}

func ReadMP4

func ReadMP4(file *os.File) (*MP4, error)

func (*MP4) WriteMVHD

func (mp4 *MP4) WriteMVHD() error

type MVHDData

type MVHDData struct {
	Version byte

	CreationTime     int32
	ModificationTime int32
	TimeScale        uint32
	Duration         uint32
	// contains filtered or unexported fields
}

MVHDData reflects the raw byte structure of the MP4 metadata

type Metadata

type Metadata struct {
	Version          int           `json:"version"`
	CreationTime     time.Time     `json:"creationTime"`
	ModificationTime time.Time     `json:"modificationTime"`
	TimeScale        uint32        `json:"timeScale"`
	Duration         uint32        `json:"duration"`
	TimeDuration     time.Duration `json:"timeDuration,string"`
}

Metadata is an internal representation of the MP4 metadata

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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