This python script uses Pytube library for downloading videos. One can use pytube directly in terminal to download videos but pytube only download upto 720p directly. Downloading 1080p (Full HD) takes a little effort which repititive also that's why i made this script which download both video and audio stream from youtube using Pytube then merge them using FFMPEG.
1. Python And Pytube pyhton library2. FFMPEG for merging 1080p video and audio stream
For Debian Distro
1. Python -
sudo apt install python3
2. Pytube -
pip install pytube
3. FFMPEG -
sudo apt install ffmpeg
After installing requirements clone the repo
https://github.com/kalactor/youtube-video-downloader.git
Navigate to downloaded folder and give execute permission to conver.sh file by running this command
chmod +x convert.sh
in terminal And hit
python3 youtube.py
or python youtube.py
in terminal