Hi Riley,
Does the "Batcher" sample work for this AVI file?
If not, you may also try the wmcmd Sample since it does not use .NET, it
will be helpful to narrow down this issue to identify if it is a .NET
related issue or just WME issue.
If neither sample works for this AVI file, let's take a look at the file
itself, you may use vidtrace to check if the AVI file format is correct,
you may download it from
http://www.jmcgowan.com/aviauthor.html#VidTrace
Note, since this is utility is not downloaded from Microsoft site, it's
recommended to perform a virus scan before using it.
You may paste the beginning part of output to give us a rough image about
this AVI file. Also I assume you could play this AVI file using windows
media player without problem, right?
Thanks!
Best regards,
Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.
Riley Phelps - 09 Jun 2004 05:36 GMT
VidTrace showed that the AVI did not have an audio stream. This was causing the problem because the AVI file was being used as the input file for the IWMEncAudioSource. After removing it from the IWMEncAudioSource, the video stream encoded without any problem. Is there a function in any of the WM SDK's (that can be called from C#) the can test an AVI to determine if it has an audio stream
Thank you
Rile
"Ying-Shen Yu[MSFT]" - 09 Jun 2004 08:40 GMT
Hi Riley,
As far I know, there is no APIs available to check the AVI streams in WM
SDKs,
however you may use the MediaDet object in DirectX SDK 9 to do this.
The MediaDet.StreamTypeB Property will return the media type guid for
current media stream.
It is available for VB, so you should have not problem to reference by
adding a COM reference to "Dexter 1.0 Type Library".
Is it helpful to your problem?
Thanks!
Best regards,
Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.
"Ying-Shen Yu[MSFT]" - 09 Jun 2004 08:59 GMT
the returned guid is MEDIATYPE guid , you may find the definition in
uuids.h in DX9SDK\Include\
thanks!
Best regards,
Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.