Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nazar-pc/metadata-audio-parser
Library that parse metadata from mp3(ID3v1 and ID3v2 tags)/mp4(aac, m4a, etc.)/ogg audio files
https://github.com/nazar-pc/metadata-audio-parser
aac id3v1 id3v2 m4a metadata mp3 mp4 ogg
Last synced: about 1 month ago
JSON representation
Library that parse metadata from mp3(ID3v1 and ID3v2 tags)/mp4(aac, m4a, etc.)/ogg audio files
- Host: GitHub
- URL: https://github.com/nazar-pc/metadata-audio-parser
- Owner: nazar-pc
- Created: 2014-07-13T21:12:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-18T16:26:42.000Z (over 10 years ago)
- Last Synced: 2024-10-14T14:39:48.189Z (about 1 month ago)
- Topics: aac, id3v1, id3v2, m4a, metadata, mp3, mp4, ogg
- Language: JavaScript
- Size: 148 KB
- Stars: 8
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Metadata parser
Library that parse metadata from mp3(ID3v1 and ID3v2 tags)/mp4(aac, m4a, etc.)/ogg audio files.Originally written by Mozilla for Gaia project.
This version is standalone, more tags supported (year, genre, rating, playing count, etc) and some other improvements applied.
# Usage
Include `meta-audio-parser.js` file to your project, then use it:
```javascript
var success_callback = function (metadata) {
console.log(metadata);
};
var error_callback = function (e) {
console.log(e);
};
parse_audio_metadata(blob, success_callback, error_callback)
```
Where `blob` is blob audio file.`metadata` argument is an object and may have following properties:
* title
* artist
* album
* tracknum
* picture (image blob)
* year
* genre
* rated (0-5)
* played# Contribute
Feel free to open issues with bugs, feature requests and send pull requests, they all are highly appreciated.# License
Apache License, Version 2.0 as originally by Mozilla
http://www.apache.org/licenses/LICENSE-2.0