Skip to content
/ mp4 Public
forked from mstoykov/mp4

A MP4 encoder/decoder class

License

Notifications You must be signed in to change notification settings

studio-b12/mp4

This branch is 1 commit ahead of mstoykov/mp4:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d768dc6 · Aug 2, 2023

History

65 Commits
Oct 26, 2015
May 27, 2016
Mar 18, 2015
Mar 22, 2015
Oct 28, 2015
Sep 16, 2015
Sep 16, 2015
Sep 16, 2015
Oct 28, 2015
Apr 1, 2015
Sep 16, 2015
Oct 28, 2015
Sep 16, 2015
Sep 16, 2015
Nov 10, 2015
Sep 16, 2015
Sep 16, 2015
Sep 15, 2015
Sep 16, 2015
Sep 16, 2015
Sep 16, 2015
Oct 28, 2015
Sep 16, 2015
Sep 16, 2015
Sep 16, 2015
Nov 9, 2015
Oct 26, 2015
Sep 16, 2015
Sep 16, 2015
Sep 16, 2015
Sep 16, 2015
Sep 16, 2015
Sep 16, 2015
Sep 16, 2015
Sep 16, 2015
Sep 16, 2015
Sep 16, 2015
Sep 16, 2015
Sep 16, 2015
Sep 16, 2015
Sep 16, 2015
Aug 2, 2023
Oct 28, 2015
Sep 16, 2015
Nov 3, 2015
Sep 16, 2015
Nov 3, 2015
Sep 16, 2015
Mar 21, 2015

Repository files navigation

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

About

A MP4 encoder/decoder class

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%