Most active commenters
  • kixelated(4)
  • cchance(3)
  • chrismorgan(3)

←back to thread

292 points kixelated | 32 comments | | HN request time: 0.536s | source | bottom
1. barosl ◴[] No.44989954[source]
I tested the demo at https://moq.dev/publish/ and it's buttery as hell. Very impressive. Thanks for the great technology!

Watching the Big Buck Bunny demo at https://moq.dev/watch/?name=bbb on my mobile phone leaves a lot of horizontal black lines. (Strangely, it is OK on my PC despite using the same Wi-Fi network.) Is it due to buffer size? Can I increase it client-side, or should it be done server-side?

Also, thanks for not missing South Kora in your "global" CDN map!

replies(7): >>44990127 #>>44990314 #>>44992169 #>>44992678 #>>44992792 #>>44993660 #>>44996521 #
2. kixelated ◴[] No.44990127[source]
Horizontal black lines? Dunno what that could be about, we render to a <canvas> element which is resized to match the source video and then resized again to match the window with CSS.
replies(3): >>44990906 #>>44991688 #>>44992989 #
3. stronglikedan ◴[] No.44990314[source]
I don't get the black lines on Android/Chrome but it doesn't respect my aspect ratio when I go full screen. Instead of adding black bars to the sides, it excludes the top and bottom of the video completely.
replies(1): >>44990367 #
4. kixelated ◴[] No.44990367[source]
I am bad at CSS.
replies(1): >>44991951 #
5. chronicler ◴[] No.44990906[source]
I have got same issue with the black lines
6. Numerlor ◴[] No.44991688[source]
Doesn't show up on screen capture, but there's random rolling quickly flickering lines on my phone, kinda like from analog distortion on old tvs
7. Waterluvian ◴[] No.44991951{3}[source]
Managing aspect ratios in conjunction with managing a responsive page layout is one of the darker parts of CSS in my experience. You’re not alone.
replies(1): >>44993698 #
8. cchance ◴[] No.44992169[source]
Holy shit that starts streaming fast! like WTF
9. solardev ◴[] No.44992678[source]
Is it Chrome only? On Android Firefox it just says no browser support :(
replies(1): >>44993170 #
10. bb88 ◴[] No.44992792[source]
On a mac book air m4 with a 600mbps connection, it's instantaneous and amazing.
replies(1): >>44993789 #
11. chrismorgan ◴[] No.44992989[source]
What’s that like for performance and power usage? I understand normal videos can generally be entirely hardware-accelerated so that the video doesn’t even touch the CPU, and are passed straight through to the compositor. I’m guessing with this you’re stuck with only accelerating individual frames, and there’ll be more back and forth so that resource usage will probably be a fair bit higher?

An interesting and unpleasant side-effect of rendering to canvas: it bypasses video autoplay blocking.

replies(2): >>44993164 #>>44993168 #
12. kixelated ◴[] No.44993164{3}[source]
It's all hardware accelerated, assuming the VideoDecoder has hardware support for the codec. VideoFrame is available in WebGL and WebGPU as a texture or gpu-buffer. We're only rendering after a`requestAnimationFrame` callback so decoded frames may get automatically skipped based on the display frame rate.

I don't think the performance would be any worse than the <video> tag. The only exception would be browser bugs. It definitely sounds like the black bars are a browser rendering bug given it's fine when recorded.

replies(1): >>44993857 #
13. kixelated ◴[] No.44993168{3}[source]
Oh and the autoplay restrictions for <video> don't apply when muted.
replies(1): >>44993177 #
14. seany ◴[] No.44993170[source]
Same here
replies(1): >>44996799 #
15. chrismorgan ◴[] No.44993177{4}[source]
Depends on your configuration. Firefox has a “block audio and video” option. Which this bypasses.
16. nine_k ◴[] No.44993660[source]
The page mentions a lot of Rust code and WASM. Maybe your phone's CPU cannot run WASM fast enough?

My Samsung S20 shows no black lines.

replies(1): >>44994848 #
17. nine_k ◴[] No.44993698{4}[source]
Not dark anymore: https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-rati...
replies(1): >>44995117 #
18. tonyhart7 ◴[] No.44993789[source]
with this pc spec and internet speed, I expect its "normal"
replies(4): >>44994137 #>>44997196 #>>44998312 #>>45022262 #
19. DaleCurtis ◴[] No.44993857{4}[source]
Unfortunately canvas (rgb'ish) can't overlay as efficiently as <video> (yuv'ish), so there is some power cost relative to the lowest power video overlays.

It really only matters in long form content where nothing else on the page is changing though.

replies(1): >>44997384 #
20. ofrzeta ◴[] No.44994137{3}[source]
I have the same experience on a Macbook Air M1 (I don't think that matters at all) and 100 MBit/s DSL.
21. TheMrZZ ◴[] No.44994848[source]
My Samsung S24 Ultra shows black lines too, on Chrome and Samsung Internet.
22. Waterluvian ◴[] No.44995117{5}[source]
I wish it was true but there’s so many times aspect-ratio still doesn’t work. It’s a pretty weak property so things like flexbox parents will quickly cause it to be ignored.
23. Twirrim ◴[] No.44996521[source]
Chrome on my oneplus ten, I get flickering black lines routinely. The fact they're going from somewhere along the top, down towards the right makes me wonder if it's a refresh artifact maybe? It's sort of like the rolling shutter effect
24. jamiek88 ◴[] No.44996799{3}[source]
Same on safari
replies(1): >>44998527 #
25. cchance ◴[] No.44997196{3}[source]
You'd be surprised i have 1g/1g and youtube still is not buttery smooth lol on my m3 mac pro, theirs always a noticeable gap between clicking play and it actually starting to stream
26. chrismorgan ◴[] No.44997384{5}[source]
> It really only matters in long form content where nothing else on the page is changing though.

Did you not just describe at least 99% of all web video?

replies(1): >>44997778 #
27. DaleCurtis ◴[] No.44997778{6}[source]
If only that were true, battery usage would be much better :) Just consider the prominence of content like tiktoks/shorts/reels/etc alone.
28. maccard ◴[] No.44998312{3}[source]
You’d be amazed. A very significant number of websites are anything but instant on my i9 14900k and 1000mbps connection. Our work identity provider/vpn app for 80 people takes about 15 seconds to start up on said machine. Apparently that’s “normal”
29. englishm ◴[] No.44998527{4}[source]
Safari is still working to add full support for WebTransport.
replies(1): >>45009937 #
30. cchance ◴[] No.45009937{5}[source]
You can enable webtransport in safari, in privacy settings experimental tag, but its just black on the page
replies(1): >>45010092 #
31. englishm ◴[] No.45010092{6}[source]
Yes, Safari's WebTransport implementation is still a work in progress.
32. bb88 ◴[] No.45022262{3}[source]
Let's create a metric, call it "click to streaming time" (CTST).

This site was instantaneous. Youtube was not.

(Even if it's an M4)