Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/mp4Public

🎥 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

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

Build StatusBuild statusGoDocGo Report Card

Usage

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.

Develop

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

Documentation

License

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

[8]ページ先頭

©2009-2025 Movatter.jp