A function that has to read an AVI and save it to an equivalent WMV has been coded using the Windows Media Format/Encoder 9 Automation SDK sample code, as amended. The installed WM Encoder **application** converts the AVI correctly, but there are problems getting the sample code to work. The issue is that the Encoder object created is not locating the correct profile group collection. I know where the code should be looking (in the WM Encoder application subdirectory, not system32 where it is looking) but I have not been able to work out why there is a problem, either from the MS SDK help or on Google.
This is likely a very simple problem for someone who knows all the quirks of the Windows Media Format/Encoder 8/9 SDK. I don't need any video formats other than WMV, and only Microsoft API calls are required. I don't need or require any 3rd party video conversion libraries.
Operating Systems to be supported:
* Win7-32 and -64
* Visual Studio 2008 project and C++ source.
* sample AVI from propriety camera in use.
The existing function source code is provided and includes a wrapper window. The function code can be editted or replaced at the programmer's discretion.
The project will be considered complete when it is demonstrated that the sample AVI can be successfully converted to WMV.
The Programmer shall provide
* a sample EXE with source that can be tested here.
* mandatory detailed notes as in-code comments that describe where the problem was located and why the fix now works.