Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.23 KB

README.md

File metadata and controls

55 lines (41 loc) · 1.23 KB

MP4

Basic MP4 parser in Go!

CLI and library for ISO/IEC 14496-12 - ISO Base Media File Format (QuickTime, MPEG-4, HEIF, etc)

https://godoc.org/github.com/alfg/mp4

Build Status Build status GoDoc Go Report Card

Usage

go get -u github.com/alfg/mp4
package main

import (
    "fmt"
    "github.com/alfg/mp4"
)

func main() {
    file, _ := mp4.Open("test/tears-of-steel.mp4")
    file.Close()
    fmt.Println(file.Ftyp.Name)
    fmt.Println(file.Ftyp.MajorBrand)
}

See example.go for a full example.

Develop

git clone github.com/alfg/mp4
go run example/example.go

Or build the CLI:

go build -o mp4info.exe cmd\mp4info\mp4info.go
mp4info -i test/tears-of-steel.mp4

Documentation

License

MIT