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).Show HN: Lofi.cafe
131–140 of 237 posts
Re: Show HN: Lofi.cafe
#132Earlier quoted context omitted.
Video cheaper than animated gif?
Yeah, lower bandwidth requirements and most computers/all smartphones have dedicated video decoding hardware, especially for h264.
Re: Show HN: Lofi.cafe
#133Could the CPU load be reduced? If I am only on the page, not even playing any music yet (probably because something is blocked), I get 1 core up at 100% CPU load. This can't all be for an animated background image, can it?
Re: Show HN: Lofi.cafe
#134It's all fun and games 'til you learn that YouTube's terms don't allow you to embed their player in any way that disables/hides their UI and logos. Source: A similar project I made like 8 years ago. Edit: But don't get me wrong, I like it nonetheless!
Iirc my hack to hide the UI was replacing pausing videos with an infinite loop of a millisecond (which was buggy as hell). VideoJS with the youtube plugin was able to hide most everything else.
Re: Show HN: Lofi.cafe
#135Hello there, I’m the guy who made https://lofimusic.app Just wanted to tell you it looks good :), keep up the good work!
Re: Show HN: Lofi.cafe
#136Re: Show HN: Lofi.cafe
#137Would love to see chat added. Then it'd really be a cafe.
Re: Show HN: Lofi.cafe
#138Earlier quoted context omitted.
If it's only a few frames you might be able to arrange them vertically in a PNG and animate background-position to get the same effect for cheaper. Correction: you want to use transform to force creation of a new rendering layer, then when adjusting the rendered position of the element using transform will not cause a repaint.
Ouch. What's wrong with APNG? https://caniuse.com/apng
Re: Show HN: Lofi.cafe
#139Re: Show HN: Lofi.cafe
#140Earlier quoted context omitted.
Show hn posts are already self-promotion so isn't it reasonable for other people to also be able to promote similar things they've created?
I think there's a line where it stops being reasonable. If I know every comment on a Show HN is going to be blatant self promotion, I'm not going to view those posts even if the OP is interesting to me.
https://news.ycombinator.com/showhn.html
> Show HN is for something you've made that other people can play with. HN users can try it out, give you feedback, and ask questions in the thread.
> On topic: things people can run on their computers or hold in their hands. For hardware, you can post a video or detailed article. For books, a sample chapter is ok.
I am glad to see work from other hacker news members. When it isn't interesting to me, I find something else on the internet or IRL that is.