![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
youtube-mp3-downloader
Advanced tools
Downloads Youtube videos (in parallel, as streams), encodes the audio data as mp3 and stores them in a defineable location
Youtube MP3 Downloader is a module which allows to specify YouTube videos from which the audio data should be extracted, converted to MP3, and stored on disk.
To run this project, you need to have a local installation of FFmpeg present on your system. You can download it from https://www.ffmpeg.org/download.html
git clone https://github.com/tobilg/youtube-mp3-downloader.git
Navigate to the folder where you checked out the project to in your console. Run npm install
.
A basic usage example is the following:
var YoutubeMp3Downloader = require('youtube-mp3-downloader');
//Configure YoutubeMp3Downloader with your settings
var YD = new YoutubeMp3Downloader({
"ffmpegPath": "/path/to/ffmpeg", // Where is the FFmpeg binary located?
"outputPath": "/path/to/mp3/folder", // Where should the downloaded and encoded files be stored?
"youtubeVideoQuality": "highest", // What video quality should be used?
"queueParallelism": 2, // How many parallel downloads/encodes should be started?
"progressTimeout": 2000 // How long should be the interval of the progress reports
});
//Download video and save as MP3 file
YD.download("rnkuRQ8tjIE");
YD.on("finished", function(data) {
console.log(data);
});
YD.on("error", function(error) {
console.log(error);
});
YD.on("progress", function(progress) {
console.log(progress);
});
Upon finish, the following output will be returned:
{
"videoId": "rnkuRQ8tjIE",
"file": "/path/to/mp3/folder/Nancy Sinatra & Lee Hazlewood - Jackson.mp3",
"youtubeUrl": "http://www.youtube.com/watch?v=rnkuRQ8tjIE",
"videoTitle": "Nancy Sinatra & Lee Hazlewood - Jackson",
"artist": "Nancy Sinatra & Lee Hazlewood",
"title": "Jackson",
"stats": {
"transferred": 7315910,
"runtime": 9,
"averageSpeed": 713747.31
}
}
FAQs
Downloads Youtube videos (in parallel, as streams), encodes the audio data as mp3 and stores them in a defineable location
The npm package youtube-mp3-downloader receives a total of 245 weekly downloads. As such, youtube-mp3-downloader popularity was classified as not popular.
We found that youtube-mp3-downloader 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.