4 ms·
This feels like an absurd ask. Who cares how big the codec is? If you watch a 480p video for 10 minutes, won't that have overwhelmingly dwarfed 20MB or whatever
by jauntywundrkind 3y ago
This feels like an absurd ask. Who cares how big the codec is? If you watch a 480p video for 10 minutes, won't that have overwhelmingly dwarfed 20MB or whatever of savings?
This feels like a gross gross misoptimization that is actively harmful to 99.999999999% of user experiences.
- ur-whale 3y agoesp32 with encoded video being streamed out to Wifi?
- jauntywundrkind 3y agoThere's mjpeg for that. Is there any evidence anyone has streamed to such a platform over real video codecs? No there's not. People just make up endless shit to justify anti use cases.
- rasz 3y agoYou wont be encoding any video with algorithm more computationally intensive than jpeg on esp32, and even mjpeg will be excruciatingly slow.
- userbinator 3y agoJust because DVDs are several GB doesn't mean it's acceptable for the decoder to be a few hundred MB. ...and in fact it doesn't need to be, as I can say so from having written an MPEG-2 (+MPEG-1) decoder myself, whose binary turned out to be less than 16KB. When one hears about a codec being dozens of MB, the natural instinct should be "for what?" and not "who cares?" The latter attitude is responsible for why software has gotten so much more inefficient, and serves only to line the pockets of hardware manufacturers.
- jdietrich 3y agoThe size of the codec is so unimportant as to be essentially irrelevant within reason outside of a few extremely niche cases. We care about video file size, we care about subjective quality, we care about power efficiency in compression and decompression, in many applications we care about latency; on all these metrics, modern codecs are stunningly well-optimised. Modern codecs are extremely complex, but that complexity is absolutely necessary for them to perform well on the dimensions that actually matter to users. Nobody uses Theora, because it's a bad codec. It was worse than H.264 back in 2009 and it hasn't been updated since. Removing support for dead formats is generally a very good idea, particularly in a web browser, because it reduces the attack surface; we have recently seen a number of major vulnerabilities caused by archaic, neglected file formats and codecs that provided almost no value to users.
- toast0 3y ago> The size of the codec is so unimportant as to be essentially irrelevant within reason outside of a few extremely niche cases. Codec size matters if you're going to include the codec in a phone app, which is a huge niche. You can try to rely on system codecs, but then you're at the mercy of system codec availability and system codec security.
- jdietrich 3y agoIf you're including a video codec in a phone app, you are almost certainly making a terrible mistake. Android and iOS have very comprehensive media APIs.
- tenebrisalietum 3y agoVLC is a mistake?
- jdietrich 3y agoI said almost certainly making a terrible mistake. VLC has an extremely specific niche as "that one media app that plays literally anything in any format ever". You are almost certainly not developing that app. The overwhelming majority of apps have lots of very good reasons to rely on the platform APIs and no good reasons to eschew them.
- cuu508 3y ago> Who cares how big the codec is? Small inefficiencies add up and in the end you have the janky laggy mess that is modern software.
- Cyphase 3y agoA larger codec doesn't mean it's more inefficient in other areas than a smaller codec. A 400KB codec is not necessarily less laggy or janky than a 4MB codec. Otherwise, why use a bunch of larger algorithms for map routing when BFS/DFS are so simple and small?
- hnav 3y agoit does contribute to software bloat, I’m always impressed when I install an app and it weighs in at 20MB