Youtube: Difference between revisions
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
= Youtube-dl = | = Youtube-dl = | ||
[[ | * https://rg3.github.io/youtube-dl/download.html | ||
* [https://linoxide.com/linux-how-to/best-youtube-video-downloader-ubuntu/ What are the Best Youtube Video Downloader for Ubuntu] | |||
{{Pre}} | |||
# which youtube-dl | |||
# sudo rm /usr/bin/youtube-dl | |||
# Method 1. | |||
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl | |||
sudo chmod a+rx /usr/local/bin/youtube-dl | |||
# Method 2. | |||
sudo pip install --upgrade youtube_dl | |||
# Log out and log in | |||
youtube-dl --version | |||
# 2019.01.02 | |||
# Download a youtube playlist | |||
youtube-dl -f mp4 --yes-playlist URL | |||
</pre> | |||
* For videos with 1080p resolution, youtube-dl will download 720p by default. To download 1080p, see [http://askubuntu.com/questions/486297/how-to-select-video-quality-from-youtube-dl this post] | |||
{{Pre}} | |||
# show the available resolutions | |||
youtube-dl -F XXX | |||
# download the desired resolution | |||
youtube-dl -f 137+141 XXXX | |||
# Note the two numbers 137, 141 is case dependent. They could be 137 & 140. | |||
youtube-dl -f 22 XXX | |||
# if the format 22 is mp4. If I do not specify the format, the mkv file will be downloaded | |||
# But playing mkv file tends to be stuttering with VLC. | |||
</pre> | |||
<s>This assumes Ubuntu has installed '''avconv'''; otherwise video(mp4) and audio(m4a) files will be downloaded separately. </s>To install avconv, install the '''libav-tools''' package. Note that '''libav-tools''' was replaced by '''ffmpeg''' in Ubuntu 18.04. | |||
{{Pre}} | |||
sudo apt-get install ffmpeg | |||
</pre> | |||
* To download mp3 from a Youtube Video (assume libav-tools or ffmpeg has been installed). See more info [https://askubuntu.com/questions/178481/how-to-download-an-mp3-track-from-a-youtube-video here]. | |||
{{Pre}} | |||
youtube-dl --extract-audio --audio-format mp3 URL | |||
</pre> | |||
* To convert the video to mp3 format, use soundconverter | |||
{{Pre}} | |||
sudo apt-get install soundconverter | |||
</pre> | |||
* [http://www.webupd8.org/2014/11/youtube-command-line-player-and.html Play/Download youtube video] using [https://github.com/np1/mps-youtube mps-youtube] | |||
{{Pre}} | |||
mps-youtube | |||
</pre> | |||
* 4k videos [http://www.imaging-resource.com/news/2014/11/19/samsung-nx1-4k-video-samples-and-new-full-res-frame-grabs-available-for-do samples] (vlc v2.1.4 cannot play), [https://youtu.be/ftlvreFtA2A FLYING OVER NORWAY] | |||
* 8K videos [https://youtu.be/mHUOCxVT5ro Yellowstone National Park in 8K 60P], [https://youtu.be/1La4QzGeaaQ Peru] | |||
== GUI == | |||
[https://mrs0m30n3.github.io/youtube-dl-gui/ youtube-dl-gui] | |||
= Learning = | = Learning = |
Revision as of 09:15, 7 April 2020
Youtube-dl
- https://rg3.github.io/youtube-dl/download.html
- What are the Best Youtube Video Downloader for Ubuntu
# which youtube-dl # sudo rm /usr/bin/youtube-dl # Method 1. sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl # Method 2. sudo pip install --upgrade youtube_dl # Log out and log in youtube-dl --version # 2019.01.02 # Download a youtube playlist youtube-dl -f mp4 --yes-playlist URL
- For videos with 1080p resolution, youtube-dl will download 720p by default. To download 1080p, see this post
# show the available resolutions youtube-dl -F XXX # download the desired resolution youtube-dl -f 137+141 XXXX # Note the two numbers 137, 141 is case dependent. They could be 137 & 140. youtube-dl -f 22 XXX # if the format 22 is mp4. If I do not specify the format, the mkv file will be downloaded # But playing mkv file tends to be stuttering with VLC.
This assumes Ubuntu has installed avconv; otherwise video(mp4) and audio(m4a) files will be downloaded separately. To install avconv, install the libav-tools package. Note that libav-tools was replaced by ffmpeg in Ubuntu 18.04.
sudo apt-get install ffmpeg
- To download mp3 from a Youtube Video (assume libav-tools or ffmpeg has been installed). See more info here.
youtube-dl --extract-audio --audio-format mp3 URL
- To convert the video to mp3 format, use soundconverter
sudo apt-get install soundconverter
mps-youtube
- 4k videos samples (vlc v2.1.4 cannot play), FLYING OVER NORWAY
- 8K videos Yellowstone National Park in 8K 60P, Peru
GUI
Learning
- The YouTube Starter Kit: 20 YouTubers Worth Watching
- 5 Nifty YouTube Channels for Learning a New Skill or Strength
Tips 1: SMTube
Tips 2: Pennywise
Open Websites In A Floating, Borderless Window/Picture in picture
Biology
Bypass any restricted youtube video without an extension
http://www.makeuseof.com/tag/bypass-restricted-youtube-video-without-extension/
7 of the Best YouTube Channels for Learning Drums
http://www.makeuseof.com/tag/best-youtube-channels-learn-drums/
Cooking
5 Unique YouTube Cooking Channels Worth Watching
How to find HDR content on YouTube
https://lifehacker.com/how-to-find-hdr-content-on-youtube-1829374364
Add YouTube Player Controls To Your Linux Desktop With browser-mpris2 (Chrome Extension)
https://www.linuxuprising.com/2018/08/add-youtube-player-controls-to-your.html
Live Stream on youtube
5 Relaxing YouTube Channels to Help You Chill Out
https://www.makeuseof.com/tag/relaxing-youtube-channels-chill-out/