Re: DirectShow Transcoding Woes
- From: "Alessandro Angeli [MVP::DS/MF]" <nobody@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 21 Apr 2006 10:09:46 +0200
DJW wrote:
However, I'm a bit concerned about handling all
exceptions this way; I don't think it's particularly wise
to assume that the addition of a particular filter
results in the exception being thrown by RenderFile().
Moreover, if it's a processor exception (Unhandled
exception at 0x09d42ae5 in rrtrans.exe: 0xC0000005:
Access violation reading location 0x00000000) and any
number of other things can cause that exception's being
thrown, then there doesn't seem to be a good way to know
whether or not adding the filter to the graph resulted in
the exception. My reading of the documentation didn't
reveal any clues regarding how to narrow down exceptions
thrown by DirectShow methods.
In theory, faults are not supposed to happen and the code
should never crash but just return failure HRESULTs so there
is no system-provided way to handle faults. This is not only
true for DirectShow, but for every other system component,
even though it's particularly annoying in DirectShow where
you use a lot of third-party modules and the entropy is
higher than usual.
I can only think of 2 suggestions:
1) first try to build the graph using filters you know will
work then fall back to your trial-and-error algorithm if the
filters are not available;
2) use the debug help library to walk the call stack of a
fault so that you can discover in what module the fault
occurred, then, if it's not a well-known module, enumerate
the filters in the graph and look up their inproc server in
the registry by CLSID so that you can find out which filter
owns that module, if any.
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// a dot angeli at psynet dot net
.
- References:
- Re: DirectShow Transcoding Woes
- From: Alessandro Angeli [MVP::DS/MF]
- Re: DirectShow Transcoding Woes
- From: DJW
- Re: DirectShow Transcoding Woes
- From: Alessandro Angeli [MVP::DS/MF]
- Re: DirectShow Transcoding Woes
- From: DJW
- Re: DirectShow Transcoding Woes
- From: The March Hare [MVP]
- Re: DirectShow Transcoding Woes
- From: DJW
- Re: DirectShow Transcoding Woes
- From: Alessandro Angeli [MVP::DS/MF]
- Re: DirectShow Transcoding Woes
- From: Peter Duniho
- Re: DirectShow Transcoding Woes
- From: Alessandro Angeli [MVP::DS/MF]
- Re: DirectShow Transcoding Woes
- From: Alessandro Angeli [MVP::DS/MF]
- Re: DirectShow Transcoding Woes
- From: DJW
- Re: DirectShow Transcoding Woes
- Prev by Date: Re: How to create a Render Filter from ground up?
- Next by Date: Re: DirectShow leaves a thread running on the system
- Previous by thread: Re: DirectShow Transcoding Woes
- Next by thread: Re: How to get the directshow trancoding graph status
- Index(es):
Relevant Pages
|
Loading