Re:Mpv – A free, open source, and cross-platform media player
by assbuttbuttass on Monday July 18, 2022 @11:26AM
(#32139466)
One of my favorite features of mpv, it integrates with yt-dlp to play youtube videos just given the URL!
[ Parent
| on HN ]
Re:Mpv – A free, open source, and cross-platform media player
by capableweb on Monday July 18, 2022 @11:40AM
(#32139615)
Worth 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....
Re:Mpv – A free, open source, and cross-platform media player
by account42 on Tuesday July 19, 2022 @06:31AM
(#32149675)
I use this in combination with 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.
Re:Mpv – A free, open source, and cross-platform media player
by neurostimulant on Monday July 18, 2022 @12:36PM
(#32140238)
And 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"
Re:Mpv – A free, open source, and cross-platform media player
by kitsunesoba on Monday July 18, 2022 @02:04PM
(#32141343)
Or 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'
Re:Mpv – A free, open source, and cross-platform media player
by badocr on Monday July 18, 2022 @03:15PM
(#32142285)
> 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.
Re:Mpv – A free, open source, and cross-platform media player
by kitsunesoba on Monday July 18, 2022 @03:56PM
(#32142850)
Maybe 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.
Re:Mpv – A free, open source, and cross-platform media player
by badocr on Monday July 18, 2022 @06:01PM
(#32144538)
I'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.
Re:Mpv – A free, open source, and cross-platform media player
by t-3 on Monday July 18, 2022 @01:26PM
(#32140823)
It 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.
Re:Mpv – A free, open source, and cross-platform media player
by anthk on Tuesday July 19, 2022 @05:43AM
(#32149400)
Check fbpdf2, fbida and links -g.
Re:Mpv – A free, open source, and cross-platform media player
by xfalcox on Monday July 18, 2022 @01:25PM
(#32140814)
Pair 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
Re:Mpv – A free, open source, and cross-platform media player
by 5e92cb50239222b on Monday July 18, 2022 @02:19PM
(#32141531)
Shove 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.
Re:Mpv – A free, open source, and cross-platform media player
by joveian on Tuesday July 19, 2022 @06:01AM
(#32149496)
For 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).
Re:Mpv – A free, open source, and cross-platform media player
by ufo on Monday July 18, 2022 @12:39PM
(#32140273)
I 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.
Re:Mpv – A free, open source, and cross-platform media player
by ews on Monday July 18, 2022 @01:08PM
(#32140641)
Emacs has a mode to control mpv for easy note taking which seems perfect for this https://github.com/kljohann/mpv.el
Re:Mpv – A free, open source, and cross-platform media player
by mssdvd on Monday July 18, 2022 @04:31PM
(#32143267)
See also this https://github.com/karthink/elfeed-tube