java [YouTube Downloader For Ubuntu 10.04] #tags:Ubuntu
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java [YouTube Downloader For Ubuntu 10.04] #tags:Ubuntu相关的知识,希望对你有一定的参考价值。
//YouTubeDownloader
//https://www.tecmint.com/install-youtube-dl-command-line-video-download-tool/
$ sudo add-apt-repository ppa:nilarimogard/webupd8
$ sudo apt-get update
$ sudo apt-get install youtube-dl
$ sudo curl https://yt-dl.org/latest/youtube-dl -o /usr/local/bin/youtube-dl
OR
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
$ sudo chmod a+rx /usr/local/bin/youtube-dl
//Upgrade
youtube-dl -U
//How to Use YouTube-DL to Download Videos
# youtube-dl https://www.youtube.com/watch?v=iRYvuS9OxdA
//To list all available formats of video, use option “–list-formats” with the youtube-dl command.
youtube-dl --list-formats https://www.youtube.com/watch?v=iRYvuS9OxdA
//To download a preferred file format, use the option ‘-f’ (video format code). For example, I would like to //download mp4 format, So I use format code as ‘18‘ as shown below.
youtube-dl -f 18 https://www.youtube.com/watch?v=iRYvuS9OxdA
//To download a list of video files, create a file and place all the YouTube links that you wish to download.
youtube-dl -a youtube_links.txt
//Type the following command in a terminal to list all the avialable options
youtube-dl --help
以上是关于java [YouTube Downloader For Ubuntu 10.04] #tags:Ubuntu的主要内容,如果未能解决你的问题,请参考以下文章