Here's a project that may be of interest that handles a handful of different codecs/formats:
The author has mentioned some means of support of Bink2 format(s).
You can find the code for the various projects on their self-hosted setup here:
Code:
https://git.nihav.org/