Discussion:
WM ASF Writer cannot be instantiated
(too old to reply)
Robert Fiegender
2010-06-09 12:30:43 UTC
Permalink
My software product uses the "WM ASF Writer" Filter (CLSID_WMAsfWriter) in
order to write WMV Video files.
One the machine of one of my customers, the Filter cannot be instantiated.

hr = CoCreateInstance(clsid,
NULL,
CLSCTX_INPROC_SERVER,
IID_IBaseFilter,
(void **) ppFilter);

As I do not have access to the customers machine at this time, I cannot tell
you the return value, but in the error lookup tool, it was named as "unknown
error".
Using the good old MS "GraphEdit" tool, the filter is listet, but cannot be
instantiated as well.
The WM ASF Reader Filter works fine though.

All attempts to install DirectX9, 10, 11 or the Windows Media Encoder did
not solve the problem. Also manual registration of qasf.dll using regsvr32
was reporting success, but no change.
Has anyone an idea about the reason for this or a solution for effectively
reinstall the Windows Media functionality?

Thank you!
Alessandro Angeli
2010-06-09 16:41:15 UTC
Permalink
From: "Robert Fiegender"
Post by Robert Fiegender
All attempts to install DirectX9, 10, 11 or the Windows Media Encoder
DirectX has nothing to do with DirectShow or Windows Media.
Post by Robert Fiegender
did not solve the problem. Also manual registration of qasf.dll using
regsvr32 was reporting success, but no change.
qasf.dll is only a lightweight wrapper around the Windows Media Format
runtime (wmvcore.dll, which doesn't need to be registered).
Post by Robert Fiegender
Has anyone an idea about the reason for this or a solution for
Without an error code (code, not message) it is impossible to tell. You
should ask your customer to download the free www.DependencyWalker.com,
profile GraphEdit with it and see what DLL fails to load when trying to
add the WMAsfWriter to the graph, reporting also the error code shown by
GE (and maybe the session saved by Depends).
Post by Robert Fiegender
effectively reinstall the Windows Media functionality?
You can re-install the Windows Media runtime (including qasf.dll using
the redist installer contained in the Windows Media Format SDK --
however it is only provided for x86 systems). Otherwise WMF is installed
by Windows Media Player or repaired by performing a Windows re-install
in repair mode.
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
Loading...