4 ms·
youtube-dl --extract-audio --audio-format=best <url>
by matja 6y ago
youtube-dl --extract-audio --audio-format=best <url>
- godelmachine 6y agoI have downloaded Youtube-DL on my Windows 7 machine but have never done this kinda stuff before? Would you please guide me around, if it's not too much of an ask?
- matja 6y agoyoutube-dl is a command-line tool which downloads a webpage (not just youtube), finds the audio/video media link(s) on the page, and downloads them to whatever format the links are in, or a container format that is compatible in storing them in. That's your basic usage - open a command shell (cmd.exe on Windows) and run "youtube-dl <url>". The basic usage might give you a file format which isn't entirely appropriate, like a .flv/.mp4 of a audio file. It has special handling for lots of different sites, to be able to parse site-specific Javascript, navigate custom media players, etc, to get the media that you request. Additional options like --extract-audio do some additional processing to get exactly what you specify - I think it needs ffmpeg installed which you'd need to download and add to your %PATH% environment variable on Windows - I haven't tried on Windows myself.
- gitgud 6y agoIs there a list of supported websites for youtube-dl? Or does it just automatically grab whatever media is in the URL page?
- matja 6y agoIt has to be supported, there's a list here: https://github.com/ytdl-org/youtube-dl/blob/master/docs/supportedsites.md https://github.com/ytdl-org/youtube-dl/blob/master/docs/supp...