Integrating some Rust in VLC media player
summary
Claims that replacing security‑critical VLC parsers with Rust is practical using nom parser combinators and careful FFI. Rust code wraps unsafe C APIs, compiles as a Rust plugin DLL loadable by VLC, and handles streaming without taking ownership of C buffers. Build integration and Cargo vs. VLC build system need work, but a demo parser decodes and video plays in VLC, showing correctness and acceptable parser performance.
AI-written summary · about
chapters (20)
- 0:00Introduction
- 1:20About VLC
- 3:37Rust passer combinators
- 11:09VLC
- 13:31Loading a module
- 13:52The plan
- 14:35Macros in C
- 15:55FFI
- 16:39Interface
- 17:14Write code
- 17:34Macros
- 18:06FlashVideo
- 19:12Open method
- 21:38Tag
- 22:04Dmax
- 22:51Bitstream
- 27:09Build system
- 27:42Unsafe API
- 28:15Dependencies
- 29:22Make your own module
related talks
33mIntegrating Some Rust in VLC Media Player
30mGStreamer & Rust – A perfect match
25mFearless Multimedia Programming
26mMoving to modern languages in long-living projects
30mIntegrating Rust into Tor: Successes and Challenges
27mParsing Rust code considered harmful
41mWe can have nice things
21mRust in V4L2: a status report
