3 ms·
One of my favorite features of mpv, it integrates with yt-dlp to play youtube videos just given the URL! mpv 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
by assbuttbuttass 4y ago
One of my favorite features of mpv, it integrates with yt-dlp to play youtube videos just given the URL!
mpv 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
- capableweb 4y agoWorth noting, yt-dlp doesn't just handle YouTube (as the name and your comment might imply) but basically any multimedia on the web. Another example: mpv 'https://www.instagram.com/p/CfZK86fozXa/' Or mpv 'https://twitter.com/thesalaam10/status/1547180911606767616' And many more sites. Here is the full list of supported websites: https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites....
- account42 4y agoI use this in combination with https://addons.mozilla.org/en-US/firefox/addon/send-to-mpv-player/ https://addons.mozilla.org/en-US/firefox/addon/send-to-mpv-p... as my pimary way to play video content on the web. It's nice having everything play in a consistent player with consistent controls as well as tons of useful features.
- neurostimulant 4y agoAnd with `--vo=tct` argument, you can watch youtube videos directly on your terminal! No GUI necessary! mpv --vo=tct "https://youtube.com/watch?v=dQw4w9WgXcQ"
- t-3 4y agoIt can also use SDL or DRM to render video on the console. I use this for viewing video and images (even pdfs, with imagemagick) without a graphical environment.
- anthk 4y agoCheck fbpdf2, fbida and links -g.
- kitsunesoba 4y agoOr if you want to play something without video at all for e.g. music livestreams, that can be done too. Example below uses the famous lofi girl stream. mpv --no-video --vo=null --ytdl-format='bestaudio/best' 'https://www.youtube.com/watch?v=jfKfPfyJRdk'
- badocr 4y ago> mpv --no-video --vo=null --ytdl-format='bestaudio/best' 'lofi hip hop radio - beats to relax/study to' With --ytdl-format='bestaudio' there's no need to disable the video track or use the null vo.
- kitsunesoba 4y agoMaybe that behavior is Linux-exclusive? Under macOS and Windows, if I only use --ytdl-format='bestaudio/best' with livestreams mpv will spawn a window with the video.
- badocr 4y agoI'm on Windows as well. Just get rid of the 'best' argument for '--ytdl-format'. Also, 'bestaudio' is mostly only known as a keyword for Youtube videos.
- ufo 4y agoI recommend this for watching lectures & other long videos. Compared to the web player mpv gives finer control of playback speed and seeking forwards and backwards.
- piffey 4y agoReally great for studying other languages too. Can quickly go back and relisten to the same section over and over and over again without an ad popping in midway through a listen.
- ews 4y agoEmacs has a mode to control mpv for easy note taking which seems perfect for this https://github.com/kljohann/mpv.el https://github.com/kljohann/mpv.el
- mssdvd 4y agoSee also this https://github.com/karthink/elfeed-tube https://github.com/karthink/elfeed-tube
- xfalcox 4y agoPair it with GPU acceleration for smooth and low CPU overhead playback for livestreams: mpv -vo=gpu --hwdec=vaapi --gpu-context=wayland https://www.twitch.tv/gorgc
- 5e92cb50239222b 4y agoShove that into ~/.config/mpv/mpv.conf (each parameter on its own line and without the dash prefix) if you don't want to repeat yourself over and over again.
- joveian 4y agoFor some reason hwdec doesn't seem to make much difference for me in terms of power or CPU usage. Also worth mentioning is profile=gpu-hq (can just uncomment in the example config).