Re:YouTube to limit default video quality around the world f...
by Hamuko on Wednesday March 25, 2020 @02:50AM
(#22682513)
Or if you want to listen to it straight away
[ Parent
| on HN ]
Re:YouTube to limit default video quality around the world f...
by Zhyl on Wednesday March 25, 2020 @07:48AM
(#22683683)
if 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'
Re:YouTube to limit default video quality around the world f...
by Hamuko on Wednesday March 25, 2020 @07:58AM
(#22683732)
--no-video is not relevant to this conversation since it still fetches the video stream.
Re:YouTube to limit default video quality around the world f...
by Zhyl on Wednesday March 25, 2020 @08:23AM
(#22683869)
Interesting, I was not aware of that!
Shall amend my scripts immediately.
Re:YouTube to limit default video quality around the world f...
by dredmorbius on Wednesday March 25, 2020 @03:02AM
(#22682552)
mpv 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.