Skip to content

ccampbell/mp4

 
 

Repository files navigation

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

About

🎥 Basic MP4 reader in Go! CLI + Library for ISO/IEC 14496-12 - ISO Base Media File Format (QuickTime, MPEG-4, etc)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.1%
  • Makefile 0.9%