mp4

package module
v0.0.0-...-c093cd0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 3 Imported by: 0

README

MP4

Basic MP4 reader 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 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

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(path string) (f *atom.File, err error)

Open opens a file and returns a &File{}.

func OpenStream

func OpenStream(at io.ReaderAt, off, l int64) (f *atom.File, err error)

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL