diff --git a/YouTube.md b/YouTube.md new file mode 100644 index 0000000..a34b742 --- /dev/null +++ b/YouTube.md @@ -0,0 +1,33 @@ +## How to download videos from YouTube + +- Embeds multistream audio and video +- Embeds subs, chat, etc, without saving them to external files +- Ignores unavailable videos + + +## Install + +``` +sudo apt install python3-pip ffmpeg + +pip3 install pip --upgrade + +pip3 install yt-dlp +``` + +Add to .bashrc: +``` +alias yd="~/.local/bin/yt-dlp -f 'bv+ba/b' --sub-langs all,-live_chat --compat-options no-youtube-unavailable-videos --audio-multistreams --video-multistreams --no-clean-infojson --embed-subs" +``` + +## Download one or more videos from YouTube + +- All from channel +- All from some favorite list +- One video +- Etc, any YouTube URL + +Here, all from one channel: +``` +yd https://www.youtube.com/c/Somechannel/videos +``` \ No newline at end of file