C++/VB - Multiple calls to createinstance
Asked By daniele.bettell
22-Jan-10 02:16 PM
Hi all,
I have a virtual device based on Vivek's VCam that works as intended
when opened from amcap.
If I open it from the flash app it was crated for there are problems.
When debugging the code I noticed that after the
CClassFactory::CreateInstance returns it is called again.. and again
(I think this stops after four or five times).
I am no directshow expert, so it is quite possible I am doing something
stupid.
The strange thing is that amcap spawns only an instance of the
device...
CClassFactory
(1)
WMEncoder
(1)
VCam
(1)
Createinstance
(1)
Directshow
(1)
Spawns
(1)
Times
(1)
Amcap
(1)
daniele.bettell replied to daniele.bettell
Ok, I read somewhere that someone else got the same thing happening...
Guess I will have to deal with it. Anyone have a clue on why on flash
there are four instantiation calls?
rep_movsd replied to daniele.bettell
A lot of applications do that multiple instantiation thing...
WMEncoder for example creates and destroys the device 5 times or so,
so if you set properties on a source filter that are not persistent,
they are lost when the filter is created for the last time.

Vcam with Transform filter C++ / VB hi, is it possible to extend Vcam ( virtual webcam adapter ) to use Transform filter ? I want to add input pin to the Vcam so that an some other application can write frames on the input pin, the sequence Win32 DirectX Video Discussions Adobe (1) Class (1) Application (1) Alessandro Angeli (1) Capture (1) VCam (1) Alessandro (1) Source filter (1) From: "pankaj" Are you talking about the vcam sample source filter by Vivek on TMH's web site? Pins are used by filters transform a pre-package filter or your own code? And so on. . . - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot com / / http: / / www.riseoftheants.com / mmx / faq.htm thanx Alessandro write a virtual webcam adapter which can be read by the flash player. Vivek's vcam does playback the content, but it does not take input from anywhere ( as it is other people to implement their own way). I wanted to add an input pin to Vcam class, after that I can add one output filter in my application which an provide
From: "VideoWaves" DMO_E_TYPE_NOT_ACCEPTED Have you tried setting biBitCount to 12 or 24? - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot com / / http: / / www.riseoftheants.com / mmx / faq.htm Thanks for come from somewhere and this somewhere knows about the real media type). - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot com / / http: / / www.riseoftheants.com / mmx / faq.htm Thanks once that probably is not enough to let you invent valid extra bytes). - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot com / / http: / / www.riseoftheants.com / mmx / faq.htm I was bytes, that comes with the WVC1 data you are going to decode. - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot com / / http: / / www.riseoftheants.com / mmx / faq.htm I am which is the default behavior) - draw the decoded pictures: yourself 4. - parse the ASF: using DirectShow - decode the VC-1 stream: using DirectShow - draw the decoded pictures: using DirectShow You seem to be heading towards #1, which is a bloodbath, while #4 is half for you, even using hardware acceleration for decoding and drawing (if available). - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot com / / http: / / www.riseoftheants.com / mmx / faq.htm I forgot
text - Win32 DirectX Video Discussions Silverlight (1) Vista (1) CoCreateInstance (1) XP (1) ProcessInput (1) DirectShow filter (1) Alessandro Angeli (1) MediaFoundation (1) From: "chom" Each process has its own virtual you need to know *a lot* about executable code to manage that. - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot com / / http: / / www.riseoftheants.com / mmx / faq.htm kinginvolves re and I already gave you several pointers on how to do that. - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot com / / http: / / www.riseoftheants.com / mmx / faq.htm Alessandro has video support for a wide variety of streaming media formats supported by players based on DirectShow, DirectX Media Objects (DMO), or Media Foundation (MF) filter technology. How citrix is able to format does not really matter. Of course a decoder can be any of: 1. a DirectShow filter in a DirectShow graph 2. a DMO in a DirectShow graph 3. a VCM codec in a DirectShow graph 4. an ACM codec in a DirectShow graph 5. a DMO in the WMReader
have since you are trying to connect its pin. Always the 36th? - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot com / / http: / / www.riseoftheants.com / mmx / faq.htm Sorry not connect the filters manually, to make sure of what fails and where. - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot com / / http: / / www.riseoftheants.com / mmx / faq.htm I am the graph builder will not insert additional filters in between if necessary. - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot com / / http: / / www.riseoftheants.com / mmx / faq.htm Hi back. . Information on environnement, I work with VS2008, in multibyte configuration. DirectSHow BaseClasses has been compiled with the same configuration (I have compile the four version : multibyte 40*test.avi It will create 40 graphs all playing test.avi. - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot com / / http: / / www.riseoftheants.com / mmx / faq.htm From: "Nicolas the code in a remote desktop session, maybe through a virtual machine? - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot com / / http: / / www.riseoftheants.com / mmx / faq.htm nop, physical even knows whether there is an audio stream. That would be useful. - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot com / / http: / / www.riseoftheants.com / mmx / faq.htm From: "Nicolas an RDP redirector then? Does it end up in the complete graph? - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot com / / http: / / www.riseoftheants.com / mmx / faq.htm nop, in
Using Vivek's vcam sample (from http: / / tmhare.mvps.org / ) C++ / VB Hi, im realy not good at all this directshow stuff an i just wanted to now what i have to do to render a .avi file on the output pin of Vivek's vcam sample. I dont want a whole code. It would be great if somebody just shows startingpoint for that. Win32 DirectX Video Discussions Library (1) Alessandro Angeli (1) Avi file (1) Vcam (1) From: "Chrises" http: / / msdn.microsoft.com / en-us / Library / dd318627.aspx - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot com / / http: / / www.riseoftheants.com / mmx / faq.htm Thank you this isnt what i am actually looking for. I try to phrase it differently: The Vcam simulate a webcam and i want to "send" a avi file to the filter. Example chat. But instead of seeing me he sees the avi clip. keywords: Using, Vivek's, vcam, sample, (from, http: / / tmhare.mvps.org / ) description: Hi, im realy not good at all this directshow stuff an i just wanted to now what i have to do to render a