Setup youtube-dl github repo for downloading youtube-dl in Termux and Linux | List of commands

13:29
In this blog, we will use the best possible List Of Commands we can use with

youtube-dl GitHub repo to downloading youtube videos in Termux and Linux

youtube-dl is one of the best GitHub repo to download Youtube more than 1000 other domain videos easily. youtube-dl is available for Linux, Windows, Termux. Read more....

Install youtube-dl Git address https://github.com/ytdl-org/youtube-dl

INSTALL youtube-dl DEBIAN
Required curl and python
 $ sudo apt-get install ffmpeg curl python 

 $ sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl 

 $ sudo chmod a+rx /usr/local/bin/youtube-dl 

UPDATE youtube-dl 
$ youtube-dl --update

INSTALL YOUTUBE DL TERMUX
 $ pkg install ffmpeg curl python 

 $ curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /data/data/com.termux/files/usr/bin/youtube-dl  

 $ chmod a+rx /data/data/com.termux/files/usr/bin/youtube-dl  

UPDATE youtube-dl IN TERMUX
 UPDATE youtube-dl IN TERMUX
$ youtube-dl -U

List Of Commands youtube-dl
#List all available formates available for donwload
 $ youtube-dl --list-formats 'VideoLinkHere' 
#Download video in directly may not be supported by all the devices and encorders
 $ youtube-dl 'VideoLinkHerek' 
#Check the youtube link details (required).List all the avialable formates to download.
 $ youtube-dl -F 'VideoLinkHere' 
#Download the video (using numbers from above command). 37 can be the video low or high quality, check it using youtube link details $youtube-dl -f 37 'VideoLinkHere' #Download highest quality video with no audio. 137 can be the best quality video with no audio
 $ youtube-dl -f 137 'VideoLinkHere'  
#Download highest quality video with audio 137(video)+140(audio). 137 (highest quality video) + 140 (mp3 audio) helps to auto-merge audio with the best video video. Without + HD video dont come with audio.
 $ youtube-dl -f 137+141 'VideoLinkHere'  
#Download Sharable 480p formate with audio
 $ youtube-dl -f 'bestvideo[height<=480]+bestaudio/best[height<=480]' 'VideoLinkHere' 
#Download Specified Video size
 $ youtube-dl -f 'bestvideo[height<=720]+bestaudio/best[height<=720]' 'VideoLinkHere' 
#Download specified limited file size
 $ youtube-dl -f 'best[filesize<50M]' 
#Download the audio OGG/MP3. Default Download in ogg formate
 $ youtube-dl -x 'VideoLinkHere' 
 $ youtube-dl -x --audio-format mp3 'VideoLinkHere' 
#Download the subtitle only
 $ youtube-dl --all-subs --skip-download 'VideoLinkHere' 
#Download playlist
 $ youtube-dl -cit  
#Download the playlist
 $ youtube-dl -i 'Playlist_lin' 
 $ youtube-dl -i -f mp4 --yes-playlist 'Playlist URL' 
#Download video list from list.txt
 $ youtube-dl -a video-list.txt 
#Cut youtube video
 $ ffmpeg $(youtube-dl -g 'VideoLinkHere' | sed 's/.*/-ss 00:05 -i &/') -t 01:00 -c copy NewVideo.mkv 
#Download videos from a channel
 $ youtube-dl -f best -ciw -o "%(title)s.%(ext)s" -v 'ChannelHere'

You should also check:
  • What is ffmpeg?
  • Search and use Metasploit Exploits