eezstreet Posted January 21, 2014 Posted January 21, 2014 I suggest we refactor the video code to be in rd-common, and load different formats other than .ROQ for the cinematics. The idea is that the video loader would operate similar to the way the image code is done, with something like: static const videoLoader_t [] = { {"roq", OpenROQ, StreamROQ, CloseROQ}, {"mpeg", OpenMPEG, StreamMPEG, CloseMPEG}, {"mov", OpenMP4, StreamMP4, CloseMP4}, {"avi", OpenAVI, StreamAVI, CloseAVI}, }; I realize that most of these formats are container formats, so I suggest we use libavcodec, which is LGPL (compatible with GPLv2/3, yes?) arbitrary tags @@Xycaleth @@Raz0r @@ensiform
eezstreet Posted January 22, 2014 Author Posted January 22, 2014 I'm an idiot, this code is really handled by the client and not the renderer.But in a surprising twist of fate, libavcodec supports ROQ format, so we can just use that and replace all the ROQ code wholesale, while gaining support for all those other formats in the list. Tempust85 and Circa like this
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now