Youtube Extractor
Download and extract data from youtube videos.
curl http://yt-dl.org/latest/youtube-dl -o /usr/local/bin/youtube-dl
chmod +x /usr/local/bin/youtube-dl
apt install lame libav-tools
Windows requires manual installation of the binary and libav tools:
libav-tools <http://builds.libav.org/windows/release-gpl/>
Copy all .dll and .exe from libav-tools/win64/usr/bin to the location of youtube-dl.exe.
Snippets
youtube-dl --extract-audio --audio-format mp3 --audio-quality 320K --keep-video --add-metadata {URL}
youtube-dl --extract-audio --audio-format flac --audio-quality 0 --add-metadata {URL}
youtube-dl -F {URL}
youtube-dl -f ###+### {URL}
youtube-dl -f "bestvideo[height<=1080]+bestaudio/best[height<=1080]" {URL}
youtube-dl https://youtube.com/playlist?list={PLAYLIST ID} --yes-playlist
youtube-dl --download-archive {FILE}
Note
Download only videos not listed in file and adds any downloaded videos to the given file.
Azure Media Services
These can be downloaded by forcing a m3u8 stream and downloading. This works for MS streaming vieos and other services using Azure Media Service backends.
ctrl + shift + i › network › all
Load the video/stream page
Locate the manifest(format=…) URI in Chrome Dev Tools
{RMB} › copy › copy linke address
Use with youtube-dl, changing manifest portion of the URI to manifest(format=m3u8-aapl-v3)
References