No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitattributes
.gitignore
License
README.md
binaryHelpers.js
mp4-parser.js
package.json
test.js
test.m4a

README.md

MP4 M4A Audio Metadata parser

A simple streaming parser for retrieving mpeg4 metadata from an audio file

Install

npm install mp4-parser

Use

The parser is simply a stream in objectMode, so you can pipe and binary data into it and it will spit out tag objects.

var mp4 = require('mp4-parser')
  , stream = require('fs').createReadStream('./my-audio.m4a')

var parser = stream.pipe(new mp4());

parser.on('data', function(tag){
    console.log(tag.type)  // => 'aART'
    console.log(tag.value) // => 'Bastille'
})