Matthew Shaver wrote:
[Quoted Text] > I have some new interesting test results. I re-encoded a file using the > Windows Media Encoder utility to create a WMV file with a lossless audio > stream and the file plays fine on my system. > > I tried using the wmvcopy sample program to copy this new file and that > succeeds. Note though that this program copies the data in its > compressed form. > > Then I modified the WMVRecompress sample program to use the the source > file's profile for the output file. This modified program works fine > when copying files which don't contain a lossless audio stream but when > I try to copy the file which contains a lossless audio stream I get the > NS_E_AUDIO_CODEC_NOT_INSTALLED error back from the BeginWriting() call. > > So the writer does not like the profile I got from the reader. Given > this it is not surprising that I get the same error for my constructed > profile. So this seems to be some fundamental problem with my setup or > the tools in general. > > Before doing these latest tests I upgraded to the following environment: > > Visual Studio 2005 and all the latest patches. > Windows Media Format 11 SDK > Windows SDK for Windows Vista > > Is there anything else I can install to make sure my environment is OK? >
I installed the modified WMVRecompress program on another XP machine and again get the audio codec not found error when copying a file with a lossless audio track. So that would seem to mean that the problem is not the setup of my development machine.
So for some reason the Encoder can create a file with a lossless audio track but a program using the latest SDK cannot re-encode that file using the same profile. Seems to me that something fundamental is broken.
Any help would be appreciated.
|