Updated YouTube (markdown)

Lauri Ojansivu 2023-07-23 07:22:48 +03:00
parent addf0be5e1
commit 4cc76f6585

@ -5,10 +5,43 @@
- Ignores unavailable videos
- Using https://github.com/yt-dlp/yt-dlp
## Install on Debian or Ubuntu based Linux
## Install on macOS
1. Install vlc and yt-dlp:
```
brew install vlc yt-dlp
```
2. Edit .zshrc:
```
nano .zshrc
```
3. Add there this. (noglob option make possible that there is no no need to add escape backslash before `?` in YouTube URL)
```
alias yd="noglob /opt/homebrew/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"
```
4. Save and Exith with Ctrl-o Enter Ctrl-x
5. In new terminal download YouTube video or channel, and then play video:
```
yd https://youtube.com/....
vlc "filename.webm"
```
## Install on New Debian or Ubuntu based Linux
```
sudo apt install python3-pip ffmpeg
sudo apt-get -y install vlc 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"
```
## Install on old Debian or Ubuntu based Linux
```
sudo apt-get -y install vlc python3-pip ffmpeg
pip3 install pip --upgrade --user