User Tools

Site Tools


tool:software:youtube-dl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tool:software:youtube-dl [2018/07/28 00:57]
127.0.0.1 external edit
tool:software:youtube-dl [2020/05/13 14:33] (current)
rjt link to website
Line 1: Line 1:
 ====== Youtube-dl ====== ====== Youtube-dl ======
 +
 +===== Useful Arguments =====
 +
 +^ ''​-F''​ | List available formats for the video. |
 +^ ''​-f\_[code]''​ | Format, I usually go with ''​best''​. |
 +^ ''​-i''​ | Ignore errors. Sometimes comes in handy when trivial errors are holding things up. |
 +^ ''​-o''​ | Lets you set a template to format the filenames of the output. |
 +^ ''​-v''​ | Verbose process info. Good if something'​s going wrong. |
 +^ ''​-w''​ | Don't overwrite files. |
  
 ===== Uses ===== ===== Uses =====
 +
 +==== Video ====
 +YTDL will automatically grab the best-quality version, so often ''​youtube-dl [url]''​ is sufficient. ​
 +
 ==== Getting Audio from Videos ==== ==== Getting Audio from Videos ====
-  * ''​youtube-dl -F [url]''​ to list formats, then 
-  * ''​youtube-dl -f [number] [url]''​ to download selected. 
-  * This'​ll be .m4a, so if you want to convert it to .mp3 or .ogg (for example) use [[ffmpeg]]\\ ''​ffmpeg -i [filename.m4a] [filename.mp3|ogg]''​ 
  
 +Good for getting music on there, though if you can find it somewhere else in a not-video format it'll probably be better quality? ​ Still, this comes in really handy when you just want to share a song or something.
 +
 +  - ''​youtube-dl -F [url]''​ to list formats, then
 +  - ''​youtube-dl -f [number] [url]''​ to download selected.
 +    * __OR__ ''​youtube-dl %%--%%audio%%-%%format best -x''​ will just grab the best quality one.
 +    * Either option'​ll be a silly format like .m4a or .opus, so if you want to convert it to .mp3 or .ogg (for example) use [[ffmpeg]]\\ ''​ffmpeg -i [filename.m4a] [filename.mp3|ogg]''​
 +
 +==== Channel ====
 +You can grab all the videos from a channel too!
 +
 +''​youtube-dl [url]''​
 +
 +So just like normal, but you add the channel'​s URL instead of the video'​s.
 +
 +  * https://​askubuntu.com/​questions/​856911/​using-youtube-dl-to-download-entire-youtube-channel
 +
 +===== Links =====
 +  * https://​youtube-dl.org/​
tool/software/youtube-dl.1532753849.txt.gz · Last modified: 2018/07/28 00:57 by 127.0.0.1