Re:The First Media over QUIC CDN: Cloudflare
by kixelated on Friday August 22, 2025 @05:36PM
(#44990127)
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.
[ Parent
| on HN ]
Re:The First Media over QUIC CDN: Cloudflare
by chronicler on Friday August 22, 2025 @06:53PM
(#44990906)
I have got same issue with the black lines
Re:The First Media over QUIC CDN: Cloudflare
by Numerlor on Friday August 22, 2025 @08:26PM
(#44991688)
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
Re:The First Media over QUIC CDN: Cloudflare
by chrismorgan on Friday August 22, 2025 @11:53PM
(#44992989)
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.
Re:The First Media over QUIC CDN: Cloudflare
by kixelated on Saturday August 23, 2025 @12:29AM
(#44993164)
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.
Re:The First Media over QUIC CDN: Cloudflare
by DaleCurtis on Saturday August 23, 2025 @02:50AM
(#44993857)
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.
Re:The First Media over QUIC CDN: Cloudflare
by chrismorgan on Saturday August 23, 2025 @01:08PM
(#44997384)
> 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?
Re:The First Media over QUIC CDN: Cloudflare
by DaleCurtis on Saturday August 23, 2025 @01:54PM
(#44997778)
If only that were true, battery usage would be much better :) Just consider the prominence of content like tiktoks/shorts/reels/etc alone.
Re:The First Media over QUIC CDN: Cloudflare
by kixelated on Saturday August 23, 2025 @12:29AM
(#44993168)
Oh and the autoplay restrictions for <video> don't apply when muted.
Re:The First Media over QUIC CDN: Cloudflare
by chrismorgan on Saturday August 23, 2025 @12:32AM
(#44993177)
Depends on your configuration. Firefox has a “block audio and video” option. Which this bypasses.