From: Joseph A. <jo...@mi...> - 2012-11-27 09:32:34
|
Yet another Avid Media Composer compatibility patch. I've noticed that some of the files generated by libquicktime produce a colorshift when loaded into Avid in AMA (as opposed to Import) mode. Further investigation revealed exactly what was going on: Avid calls FindNextComponent() from Windows QuickTime API in order to query its supported output formats. FindNextComponent() allows querying by component type (image decoder, sound encoder, ...), fourcc, vendor, or any combination of those. As you probably guessed by now, Avid includes vendor in the query. As a result, it's unable to query the decoder for its supported output formats and defaults to 8-bit ARGB. On files produced by Apple QuickTime libraries it finds some supported YUV-based formats and asks QuickTime to output that, converting to RGB later on its own. Now guess what, with some codecs the result of QuickTime doing YUV to RGB conversion differs from Avid doing the same! I don't really care which one of them is right, I only care that files we produce with libquicktime are visually indistinguishable in any software from files Apple QuickTime libraries would produce. Therefore, a patch is attached changing vendor from "lqt " to "appl". P.S: Also please apply my previous patch. -- Joseph Artsimovich Senior C++ Applications Developer MirriAd Ltd |