3 ms·
youtube-dl -f bestaudio https://youtu.be/YT0k99hCY5I Or if you want to listen to it straight away mpv --ytdl-format=bestaudio https://youtu.be/YT0k99hCY5I
by Hamuko 7y ago
youtube-dl -f bestaudio https://youtu.be/YT0k99hCY5I
Or if you want to listen to it straight away
mpv --ytdl-format=bestaudio https://youtu.be/YT0k99hCY5I
- dredmorbius 7y agompv is absolutely transformative for Youtube (and a huge number of other platforms, services, & urls). youtube-dl can directly stream as well, e.g., youtube-dl -o - "https://www.youtube.com/watch?v=BaW_jenozKcj" | vlc - (from the manpage). And there's mps-youtube as well.
- Zhyl 7y agoif you want to search for a song: mpv --ytdl-format=bestaudio 'ytdl://ytsearch1:John Butler Trio Ocean' As a function: !#/bin/bash yt(){ mpv --ytdl-format=bestaudio "ytdl://ytsearch1:$*" } Edit: as per comment below, swapped '--no-video' for '--ytdl-format=bestaudio'