Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alfg/mp4
:movie_camera: Basic MP4 reader in Go! CLI + Golang Package for ISO/IEC 14496-12 - ISO Base Media File Format
https://github.com/alfg/mp4
iso14496 media mp4 mpeg-4 parser quicktime video
Last synced: 1 day ago
JSON representation
:movie_camera: Basic MP4 reader in Go! CLI + Golang Package for ISO/IEC 14496-12 - ISO Base Media File Format
- Host: GitHub
- URL: https://github.com/alfg/mp4
- Owner: alfg
- License: mit
- Created: 2018-08-19T04:14:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-11-26T09:33:31.000Z (about 3 years ago)
- Last Synced: 2024-12-25T00:07:38.856Z (16 days ago)
- Topics: iso14496, media, mp4, mpeg-4, parser, quicktime, video
- Language: Go
- Homepage: https://github.com/alfg/mp4
- Size: 3.57 MB
- Stars: 126
- Watchers: 5
- Forks: 22
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MP4
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 Status](https://travis-ci.org/alfg/mp4.svg?branch=master)](https://travis-ci.org/alfg/mp4)
[![Build status](https://ci.appveyor.com/api/projects/status/63ky9q869j8xetst?svg=true)](https://ci.appveyor.com/project/alfg/mp4)
[![GoDoc](https://godoc.org/github.com/alfg/mp4?status.svg)](https://godoc.org/github.com/alfg/mp4)
[![Go Report Card](https://goreportcard.com/badge/github.com/alfg/mp4)](https://goreportcard.com/report/github.com/alfg/mp4)## Usage
```
go get -u github.com/alfg/mp4
``````go
package mainimport (
"fmt"
"os"
"github.com/alfg/mp4"
)func main() {
file, err := os.Open("test/tears-of-steel.mp4")
if err != nil {
panic(err)
}
defer file.Close()info, err := file.Stat()
if err != nil {
panic(err)
}
size := info.Size()mp4, _ := mp4.OpenFromReader(file, size)
file.Close()
fmt.Println(file.Ftyp.Name)
fmt.Println(file.Ftyp.MajorBrand)
}
```See [examples/](/examples/) for more examples.
## Develop
```
git clone https://github.com/alfg/mp4.git
go run example\example.go
```Or build the CLI:
```
go build -o mp4info cmd\mp4info\mp4info.go
mp4info -i test\tears-of-steel.mp4
```## Documentation
* [GoDocs](https://godoc.org/github.com/alfg/mp4)## License
MIT