A MP4 encoder/decoder class
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is even with ThankYouMotion:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cli
filter
LICENSE
README.md
box.go
ctts.go
dinf.go
doc.go
dref.go
edts.go
elst.go
free.go
ftyp.go
hdlr.go
iods.go
mdat.go
mdhd.go
mdia.go
meta.go
minf.go
moov.go
mp4.go
mvhd.go
smhd.go
stbl.go
stco.go
stsc.go
stsd.go
stss.go
stsz.go
stts.go
tkhd.go
trak.go
udta.go
vmhd.go
wercker.yml

README.md

mp4

wercker status

A encoder/decoder class, io.Reader and io.Writer compatible, usable for HTTP pseudo streaming

For the complete MP4 specifications, see http://standards.iso.org/ittf/PubliclyAvailableStandards/c061988_ISO_IEC_14496-12_2012.zip and http://standards.iso.org/ittf/PubliclyAvailableStandards/c061989_ISO_IEC_15444-12_2012.zip

Doc

See http://godoc.org/github.com/jfbus/mp4 and http://godoc.org/github.com/jfbus/mp4/filter

Warning

Some boxes can have multiple formats (ctts, elst, tkhd, ...). Only the version 0 of those boxes is currently decoded (see https://github.com/jfbus/mp4/issues/7). Version 1 will be supported, and this will break a few things (e.g. some uint32 attributes will switch to uint64).

CLI

A CLI can be found in cli/mp4tool.go

It can :

  • Display info about a media
mp4tool info file.mp4
  • Copy a video (decode it and reencode it to another file, useful for debugging)
mp4tool copy in.mp4 out.mp4
  • Generate a clip
mp4tool clip --start 10 --duration 30 in.mp4 out.mp4

(if you really want to generate a clip, you should use ffmpeg, you will ge better results)

LICENSE

See LICENSE