An open API service indexing awesome lists of open source software.

https://github.com/alphka/node-ytdl

Command-line youtube video downloader
https://github.com/alphka/node-ytdl

audio audio-downloader cli downloader ffmpeg nodejs sharp video video-downloader youtube youtube-api youtube-dl youtube-downloader

Last synced: 2 months ago
JSON representation

Command-line youtube video downloader

Awesome Lists containing this project

README

          

node-ytdl

### Description
A youtube downloader that uses ytdl-core and ffmpeg.
Both video and audio are downloaded using the highest quality available


### Usage

Using a video's url
```
node-ytdl [options]
```

Searching for a video
```
node-ytdl [options]
```


### Supported options

```
Usage: node-ytdl [options]

Arguments:
string Video's url or search

Options:
-v, --version Display program version
-vn, --novideo Only downloads audio (default: false)
-an, --noaudio Removes the audio from the video (default: false)
-pn, --nopic Downloads the audio without album art (default: false)
-f, --format [mp4 | webm | mp3 | aac | opus] Output format
-o, --output [path] Output directory
-y Overwrite file (default: false)
--forceDir Force output directory creation (default: false)
-th, --threads [number] Max CPU threads to be used
-O, --open Open file when finished (default: false)
-r, --resolution Choose video's resolution
-h, --help Display help
```


### Installation

```
npm install
npm link
```