- Notifications
You must be signed in to change notification settings - Fork22
🎥 Basic MP4 reader in Go! CLI + Golang Package for ISO/IEC 14496-12 - ISO Base Media File Format
License
NotificationsYou must be signed in to change notification settings
alfg/mp4
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Basic MP4 reader in Go!
CLI and library for ISO/IEC 14496-12 - ISO Base Media File Format
https://godoc.org/github.com/alfg/mp4
go get -u github.com/alfg/mp4
package mainimport ("fmt""os""github.com/alfg/mp4")funcmain() {file,err:=os.Open("test/tears-of-steel.mp4")iferr!=nil {panic(err) }deferfile.Close()info,err:=file.Stat()iferr!=nil {panic(err) }size:=info.Size()mp4,_:=mp4.OpenFromReader(file,size)file.Close()fmt.Println(file.Ftyp.Name)fmt.Println(file.Ftyp.MajorBrand)}
Seeexamples/ for more examples.
git clone https://github.com/alfg/mp4.gitgo run example\example.go
Or build the CLI:
go build -o mp4info cmd\mp4info\mp4info.gomp4info -i test\tears-of-steel.mp4
MIT
About
🎥 Basic MP4 reader in Go! CLI + Golang Package for ISO/IEC 14496-12 - ISO Base Media File Format
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published