Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / June 2004

Tip: Looking for answers? Try searching our database.

[Encoder] NS_E_NO_VALID_OUTPUT_STREAM

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Riley Phelps - 08 Jun 2004 01:21 GMT
Hi everybody

I am using the WM9 Encoder SDK in C# and have created an encodin
application
My piece of software is (was) working fine for weeks now, encodin
WMV's and AVI's into WMV's ... just fin

Now I have found an .avi movie that my encoder does NOT want t
encode
My Encoder.PrepareToEncode(true); gives me exception with _HResult = -1072882832 (0xC00D1B70) whic
is NS_E_NO_VALID_OUTPUT_STREAM

But when I try to transcode the same movie with the Microsoft Encoder
everything is going just fine

Where can I find more info about this problem
And what is the problem ? It acts as if the encoder object could no
uncompress the input .avi file (but then why does Microsoft softwar
work ?

Thank you for your ideas, I am lost
Riley
"Ying-Shen Yu[MSFT]" - 08 Jun 2004 09:53 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.