youtube-dl

Costas

Administrator
Staff member
Is a small command-line program to download videos from YouTube.com and a few more sites. It requires the Python interpreter (2.6, 2.7, or 3.2+), and it is not platform specific.

http://rg3.github.io/youtube-dl/

As per 2019.12.25 version and later, using this cmd, selects up to 720p videos with a bitrate of at least 56 KBit/s.
JavaScript:
// src - https://github.com/ytdl-org/youtube-dl/blob/master/README.md

// --youtube-skip-dash-manifest - skip DASH items (is only audio OR only video (without audio))
// -f mp4 - force get the best video resolution that is in mp4 format

youtube-dl.exe --youtube-skip-dash-manifest -f mp4 --batch-file list.txt

//or if you want to restrict till 720p (avoid 1080p)

youtube-dl.exe --youtube-skip-dash-manifest -f "(mp4)[height<=720]" --batch-file list.txt



example of use :
JavaScript:
youtube-dl -f best --batch-file batchlist.txt 

youtube-dl.exe https://www.youtube.com/watch?v=xzZh4fdaUpk --extract-audio --audio-quality 128k

-- all together, convert to mp3 --
youtube-dl.exe --batch-file playlist1.txt --extract-audio --audio-format mp3 --audio-quality 128k


download playlist
youtube-dl -i --extract-audio --audio-format mp3 --audio-quality 128k --yes-playlist "https://www.youtube.com/watch?v=jRGrNDV2mKc&start_radio=1&list=RDGMEMJQXQAmqrnmK1SEjY_rKBGA"



download user videos contains specific keyword
JavaScript:
// src - https://crackoworld.com/technology-tweaks/how-to-download-youtube-videos-easily/

youtube-dl.exe --youtube-skip-dash-manifest -f "(mp4)[height<=720]" --match-title "morning" https://www.youtube.com/c/yogawithkassandra/videos

to convert to mp3, extract near youtube-dl
https://ffmpeg.zeranoe.com/builds/




Download videos from Azure Media Services

tested domains :
streaming.mediaservices.windows.net
streaming-video-rt-microsoft-com.akamaized.net

JavaScript:
//src https://blog.yannickreekmans.be/download-videos-from-azure-media-services/

youtube-dl.exe --merge-output-format mp4 https://eus-streaming-video-rt-microsoft-com.akamaized.net/bba2a59a-8e1b-4ccf-88c2-b2e82d55e58e/243487f7-44d0-45b0-bf14-f711b775.ism/manifest(format=mpd-time-csf)

//or 

youtube-dl.exe --merge-output-format mp4 https://x.streaming.mediaservices.windows.net/1ab05fd4-053e-41c7-b69f-734b95ad3691/6051.ism/manifest(format=mpd-time-csf)
 
Top