mp4-box-encoding

WebJar for mp4-box-encoding

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

mp4-box-encoding
Last Version

Last Version

1.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

mp4-box-encoding
WebJar for mp4-box-encoding
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jhiesey/mp4-box-encoding

Download mp4-box-encoding

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/mp4-box-encoding/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>mp4-box-encoding</artifactId>
    <version>1.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/mp4-box-encoding/
implementation 'org.webjars.npm:mp4-box-encoding:1.3.0'
// https://jarcasting.com/artifacts/org.webjars.npm/mp4-box-encoding/
implementation ("org.webjars.npm:mp4-box-encoding:1.3.0")
'org.webjars.npm:mp4-box-encoding:jar:1.3.0'
<dependency org="org.webjars.npm" name="mp4-box-encoding" rev="1.3.0">
  <artifact name="mp4-box-encoding" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='mp4-box-encoding', version='1.3.0')
)
libraryDependencies += "org.webjars.npm" % "mp4-box-encoding" % "1.3.0"
[org.webjars.npm/mp4-box-encoding "1.3.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm : buffer-alloc jar [1.2.0,2)
org.webjars.npm : buffer-from jar [1.1.0,2)
org.webjars.npm : uint64be jar [2.0.2,3)

Project Modules

There are no modules declared in this project.

abstract-encoding

mp4-box-encoding

This module provides encoders and decoders with the abstract encoding interface.

The module exports the interface for a generic box, including all headers and children (for container boxes) Encodings for many leaf (non-container) boxes, without headers, is available keyed by the box type:

var box = require('mp4-box-encoding')

var buffer = fs.readFileSync('myvideo.mp4')
// decode any box including headers
// decode the entire moov box and its children
var moov = box.decode(buffer.slice(24, 236989))

var moov.mfhd.mtime = new Date() // Change the modification time

// now this is an encoding of the modified moov box
var moofBuffer = box.encode(moov)

// decode the contents of just the stts box
var stts = box.decode(buffer.slice(609, 625))

These encodings are factored out of mp4-stream.

License

MIT

Versions

Version
1.3.0