Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ytmp3

Script to download/convert youtube videos to MP3 files

youtube, mp3, converter

readme

node-ytmp3

Prerequisits

This script uses FFMPEG for conversion which means that it needs to be installed on the system.

$ sudo apt-get install ffmpeg

And the mp3 codec is not included(I think)

$ sudo apt-get install libavcodec-extra-53

Or

$ sudo apt-get install libmp3lame0

Usage

To download and convert a youtube video to mp3

    $ ./node-ytmp3.js -u http://www.youtube.com/watch?v=sFrNsSnk8GM -f mp3

Where option -u is the url to the youtube video & -f is the format (mp3 or flv).