Using a DirectShow filter with Encoder
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Using a DirectShow filter with Encoder

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Encoders
Author Message
Seyfullah Çetin
Guest





Posted: Fri Oct 01, 2004 11:00 am    Post subject: Using a DirectShow filter with Encoder Reply with quote

Hi,
I am writing an app that uses WMEncoder SDK to encode a video stream. As
Encoder SDK allows us to use DirectShow filters as Transform plugins, I had
added an overlay filter to the app to print date, time still image etc. to
the stream. It was OK because I didn't have to access filter's interfaces
through the code. I simply view the property page of the filter to use its
methods. But I added another filter. This time I MUST use its interfaces to
make it work. The whole app is written with C#. Is there a way to do that.
Any suggestions?

Back to top
Seyfullah Çetin
Guest





Posted: Sat Oct 09, 2004 12:53 pm    Post subject: Re: Using a DirectShow filter with Encoder Reply with quote

Hi again,
I have solved this problem. In case someone else faced the same problem, I
am posting how I solved it. My solution is in fact NOT a solution. I just
couldn't query the interface of the filter. The only thing I had was an
IUnknown instance which I still don't know refers to what. I queried an
ISpecifyPropertyPages interface from this pointer. Then queried "the
interface of the filter". Also I needed an IBaseFilter interface of the
filter. And surprisingly I could query that from "the interface of the
filter". I know this is not the normal way but at least now I can do what I
want.

"Seyfullah Çetin" <schwarzxxl@yahoo.com> wrote in message
news:OEk93S4pEHA.556@TK2MSFTNGP11.phx.gbl...
Quote:
Hi,
I am writing an app that uses WMEncoder SDK to encode a video stream. As
Encoder SDK allows us to use DirectShow filters as Transform plugins, I
had
added an overlay filter to the app to print date, time still image etc. to
the stream. It was OK because I didn't have to access filter's interfaces
through the code. I simply view the property page of the filter to use its
methods. But I added another filter. This time I MUST use its interfaces
to
make it work. The whole app is written with C#. Is there a way to do that.
Any suggestions?

Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Encoders All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB