9 ms·
Do you know anywhere to find good decoders in pure Rust for common codecs like H.264 and H.265? Great tutorial by the way learnt a lot
by jackosdev 4y ago
Do you know anywhere to find good decoders in pure Rust for common codecs like H.264 and H.265? Great tutorial by the way learnt a lot
- DragonStrength 4y agoAre there many codecs of any sort with Rust implementations? The majority of Rust stuff I see linked are thin wrappers around existing C or C++ libraries.
- josephg 4y agoNot many. Weirdly, chatgpt can be remarkably good at translating code between programming languages. I suspect within a year or two it'll be pretty easy to translate a lot of C libraries to native rust code (or whatever) using modern AIs.
- pornel 4y agoI haven’t seen any implementations yet, and given their patent licensing situation, they’re probably not first in line for a rewrite in Rust. There’s rav1e for AV1 encoding.
- cillian64 4y agoDecoders also have the difficulty that you need to support most of the format’s features before they can support content found in the wild. Also you often need to add hacks to support encoders which technically violate the specification but are commonly used. In contrast, you can build a very simple encoder using very few of the format features and still have it be usable/useful (albeit with poor quality/compression ratio).
- dr-ando 4y agoNot exactly what you are asking for, but jcodec is a pretty readable codebase written in Java. (The readability part is often, ahh, lacking in the source for codecs, in my experience.) It might be a good candidate for rewriting in Rust. https://github.com/jcodec/jcodec https://github.com/jcodec/jcodec