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
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.
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
MIT