This downloader can download youtube videos with resolution greatest possible resolution (limited to 1080p for perfomance reasons).
- Make sure that you installed
node
>= 18.x.x (or specifically versions with top level await support),ffmpeg
andgit
. - Clone this repository by
git clone https://github.com/MadProbe/youtube-video-downloader.git
. - Open your command prompt in cloned folder and install all required modules by
npm i
.
node index.mjs <video-url> <...options>
--help
|-h
: Prints a help message--re-encode
: By default input video file is not re-encoded because this immensely degrades download speed, does not affect if video already has an audio thread (typically, videos with resultion greater than 720p doesn't contain an audio thread, so you need to merge a video and audio thread to give video sound).-m
: download only audio