Hacker News new | ask | show | jobs
by madars 1888 days ago
Nice concept, love the aesthetic! It was too CPU intensive for me on a laptop so I sourcedived to find the list of svideos which appear to be the following https://rentry.co/txqrq . I personally use

    mpv --no-video --vo=null --ytdl-format='bestaudio/best'
for listening to such streams. Unfortunately, as "youtube-dl --list-formats" will tell you, the live streams don't have separate audio tracks (which normal YouTube videos do) so this only helps with CPU savings but not bandwidth (you can choose a lower bitrate stream though).
2 comments

Works under Windows 10 command prompt too after changing the single quotes out for double quotes, very nice. Had been keeping a browser tab with the YouTube stream open, but this is undoubtedly going to be easier on battery.
Why --vo=null if --no-video?
(edit) I think the man page would really imply it is redundant, but when trying with just --no-video and no $DISPLAY (e.g. ssh'd to a machine with speakers but no X server running), it picks up vo=gpu (accelerated video decode) from my mpv.conf and runs with a warning:

    [vo/gpu] Failed initializing any suitable GPU context!
    Error opening/initializing the VO window.