Better HN
topnewbestaskshowjobs
Log inSign up

incognito65423

22 karma · joined Feb 2, 2018 (8y ago) · 3 submissions

Submissions

comment 8y ago · link · parent

Yes, the h.264 and hevc reference implementations are also terribly slow and alternative implementations with performance optimizations, tradeoffs and additional encoding features were developed over long time spans.

The bitstream formats provide enough flexibility for the encoders to go beyond what the reference implementation does.

Software encoders provide the best quality, hardware encoders are kind of meh but do their job in a low power envelope.

comment 8y ago · link · parent

The thing is that 4:2:0 chroma is the default in most codecs because the main profiles only support that. You couldn't stream full chroma video on twitch even if you wanted to.

And subsampled chroma looks terrible on colored text, edges between flat colored areas and similar things.[0] So 4:4:4 is a must, only once you have that you can think about adaptive quantization for chroma.

[0] https://upload.wikimedia.org/wikipedia/commons/1/1c/420-prog...

comment 8y ago · link · parent

Streaming of computer screens is quite different compared to real life footage. UIs contain very shallow gradients (thus you want 10bit+), lots of flat areas which are easy to entropy-encode without any frequency domain quantization at all (so a modern codec that has passthrough blocks) and font rendering engines use subpixel anti-aliasing so you want 4:4:4 chroma. And that annoying effect where image quality refines gradually after large-scale changes on a screen (not enough bits allocated to an I-frame?).

Screencasting is basically quite a different beast compared to live-action or even animation footage. At a minimum you need higher profiles of a modern codec and tweak the encoder settings for low latency AND different bit allocation compared to the usual.