3 ms·
might be a bit off topic than what's discussed, but actually I never cease to be amazed by how easy it is to do image processing in browser. want some pixels? p
by high_byte 5y ago
might be a bit off topic than what's discussed, but actually I never cease to be amazed by how easy it is to do image processing in browser. want some pixels? pass an img element. moving pixels? pass a video element. dynamic pixels? pass a canvas element. it just works.
now try the same in any other runtime... go mess with different compressions, encodings, color spaces, list goes on and on...
- nyanpasu64 5y agoOops! Your forgot to specify the video metadata, and the browser guessed the wrong channel range, and the wrong color space from the video size! And the video colors change when the Youtube player controls appear and disappear! And it won't play your video because it's yuv444 and browsers only support yuv420 with blurry color channels!
- d2wa 5y agoMost video editing software does provide nice presets you can use. Then there’s always the FFMPEG wiki.
- nyanpasu64 5y agoI found https://trac.ffmpeg.org/wiki/colorspace https://trac.ffmpeg.org/wiki/colorspace baffling when trying to understand it.
- amelius 5y agoIn Rust you just install the respective Multimedia crate. https://crates.io/categories/multimedia https://crates.io/categories/multimedia
- jfrunyon 5y agoBut you have to mess with every single one of those things to actually get it working across the major browsers. And then it still won't work at all in older browsers.