New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

youtube-mp3-downloader

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

youtube-mp3-downloader

Downloads Youtube videos (in parallel, as streams), encodes the audio data as mp3 and stores them in a defineable location

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
274
decreased by-2.49%
Maintainers
1
Weekly downloads
 
Created
Source

Youtube MP3 Downloader

Youtube MP3 Downloader is a module which allows to specify one or multiple YouTube videos from whom the audio data should be extracted, converted to MP3, and stored on disk.

Installation

Prerequisites

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

Checkout the project from Github to a local folder

git clone https://github.com/tobilg/youtube-mp3-downloader.git

Install module dependencies

Navigate to the folder where you checked out the project to in your console. Run npm install.

Running

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?
    "parallelismFactor": 2                  //How many parallel downloads/encodes should be started?
});

//Download video and save as MP3 file
YD.download(["rnkuRQ8tjIE"], function(result) {
    console.log(result);
});

Upon finish, the following output will be returned:

[
    {
        "file": "/path/to/mp3/folder/Nancy Sinatra & Lee Hazlewood - Jackson.mp3",
        "videoId": "rnkuRQ8tjIE",
        "youtubeUrl": "http: //www.youtube.com/watch?v=rnkuRQ8tjIE",
        "videoTitle": "Nancy Sinatra & Lee Hazlewood - Jackson",
        "artist": "Nancy Sinatra & Lee Hazlewood",
        "title": "Jackson",
        "took": 17708
    }
]

Keywords

FAQs

Package last updated on 31 Mar 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc