Skip to content

SeanBannister/node-ffmetadata

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-ffmetadata

Read and write media file meta data (e.g., MP3 ID3 tags) using ffmpeg's metadata framework.

Example

var ffmetadata = require("ffmetadata"),
	fs = require("fs");

// Read song.mp3 metadata
ffmetadata.read("song.mp3", function(err, data) {
	if (err) console.error("Error reading metadata, err");
	else console.log(data);
});

// Set the artist for song.mp3
ffmetadata.write("song.mp3", {
	artist: "Me",
}, function(err) {
	if (err) console.error("Error writing metadata");
	else console.log("Data written");
});

Installation

The ffmpeg command-line tool (or the libav fork) must be installed.

npm install ffmetadata

About

Read and write media metadata using ffmpeg

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%