Energy Efficiency of Modern Codecs
shkspr.mobi
shkspr.mobi
Furthermore, if energy efficiency is really what you care about, there are hardware encoders and decoders that are extremely energy efficient.
All in all, I guess what I'm trying to say is that I don't understand what is the point the article is trying to make.
And there are much lower hanging fruits than the computation.
This is exactly what I was arguing: comparing encoding speed (and "energy efficiency") of a codec in the way it's done in the article it's basically pointless and misleading. It can be done, but you have to compare specific encoders and decoders, not the codecs per se, and you can only do it meaningfully by measuring different inputs and configurations, as is done e.g. in the squash compression benchmark (that, note, only deals with lossless data compression: lossy data compression is a order of magnitude harder to compare, and video compression is a couple of orders of magnitude harder still because you have to consider delivery as well when designing your benchmark scenarios)
A 1 kW server running for a day is peanuts in carbon cost compared to sending data to millions of people.
My phone uses like, 5w sustained.
The video decoders on fancy new TVs are about the same.
That is essentially all video decoding. It's also encoding for e.g. TikTok or whatever because again, my phone uses 5w.
For example, Facebook prefer JPEG XL over AVIF;
>JPEG XL encoding at speed/effort 6 is as fast as JPEG encoding (using MozJpeg with Trellis encoding enabled). This means that it's practical to encode JPEG XL images on the fly and serve to client. This can be compared with the encoding speed of AVIF which necessitates offline encoding which offers much less flexibility when it comes to delivering dynamically sized and compressed content.
This is encoding complexity at scale. Decoding complexity are often discussed in codec development meetings due to the fact CPU performance improvement has slowed down a lot in recent years ( Apple M1 being an outliner here ). You have double the complexity, did we have double the CPU performance improvement?
People often assume hardware decoding = dedicated / low power decoding. Which isn't necessarily true. On Desktop and Laptop you could have hardware decoding using up to 2W if not 4W or more for Semi-GPU assisted. Compared to Smartphone which generally prefer to have average ~0.1W during decoding. This is only for Qualcomm and Apple though. Some other brand may allow much higher power budget.
Then there is the storage requirement question. It makes sense for Netflix, which is a comparatively tiny amount of content, they could serve using any codec they sit fit and have all these different variation to lower bandwidth / provide higher quality. Compared to Youtube, which has more than 500 HOURS of content uploaded every "minute". Adding an additional codec variant will have a different storage cost calculation.
And Bandwidth, quoting Cloudflare;
>During the last ten years, industry wholesale transit prices have fallen an average of 23% annually. Compounded over that time, wholesale bandwidth is 93% less expensive than 10 years ago.
Compared to video codec development, x264 started "pre 2010", to the best AV1 / VVC Encoder ( Not even publicly available ), only provided a maximum of ~64% bitrate reduction ( or 40% reduction per generation )in both subjective and objective test by Moscow State University. Over the span of 15 years, compared to the best and non-widely available, non-widely supported codec we only have a 64% reduction. While bandwidth had 93% reduction in 10 years only.