by rvanlaar · 3y ago · 0 comments
After writing a couple of python decoders [2] for movie encodings from the 90's it got old quickly.
As luck would have it, FFmpeg has support for almost all video encodings under the sun. For my usecase I wanted to send one frame per time to FFmpeg to decode.
Luckily I found PyAV[3]. It's a Cython project which binds to FFmpeg.
Which brings me to the article. It reads more like a C bad, rust good. Cythons tag line is: 'Cython gives you the combined power of Python and C`
Just wanting speed and less memory bugs, then rust will fare better. If you want to have the combined power of Python and C then Cython is pretty cool.
[1] https://github.com/rvanlaar/QTVR [2] https://github.com/rvanlaar/QTVR/tree/master/qtvr/decoders [3] https://github.com/PyAV-Org/PyAV
Agreed. Sometimes it is fun (and useful) to use tools that can blow your feet off if misused.