Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Read and write media file meta data (e.g., MP3 ID3 tags) using ffmpeg's metadata framework.
var ffmetadata = require("ffmetadata");
var 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
var data = {
artist: "Me",
};
ffmetadata.write("song.mp3", data, function(err) {
if (err) console.error("Error writing metadata");
else console.log("Data written");
});
You can optionally include an array of files to be added to the source file. This is a destructive action, it will overwrite any previous streams on the file. For audio data, this is typically just one image. For video, this is where you would write additional audio streams or subtitle tracks.
ffmetadata.write("song.mp3", {}, ["cover.jpg"], function(err) {
if (err) console.error("Error writing cover art");
else console.log("Cover art added");
});
FFmpeg meta data (for songs) might include
"artist"
: artist name"album"
: album name"title"
: song title"track"
: place in the album (e.g. "5/8"
)"disc"
: for multidisc albums"label"
: record label"date"
: arbitrary, but usually year (e.g. "2002"
)See FFmpeg Metadata for details.
Dependency: FFmpeg or libav must be installed on the system.
This module uses the ffmpeg
command-line tool. Version: 0.10.
npm install ffmetadata
FAQs
Read and write media metadata using avconv
The npm package avconv_id3 receives a total of 6 weekly downloads. As such, avconv_id3 popularity was classified as not popular.
We found that avconv_id3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.