Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: The Frame Rate Control Filter
Started by zwen at 11-26-2007 5:15. Topic has 2 replies.

Print Search « Previous Thread Next Thread »
  11-26-2007, 5:15
zwen is not online. Last active: 11/21/2007 7:16:35 PM zwen

Top 500 Posts
Joined on 11-20-2007
Posts 7
The Frame Rate Control Filter
Reply Quote
Hi,

We have been trying to add the frame rate control filter in the directshow graph. The following procedure used to work but not working anymore:

IBaseFilter* pFrameRate;
hr = CoCreateInstance(CLSID_LMVFrameRateCtrl,
NULL,CLSCTX_INPROC,IID_IBaseFilter,
(void**)&pFrameRate);

hr = pGB->AddFilter(pFrameRate, L"My Frame Rate");

ILMVFrameRateCtrl* pRate;

hr = pFrameRate->QueryInterface(IID_ILMVFrameRateCtrl,(void**) &pRate);

the QueryInterface function seems to work, but the system report a system access violation when calling the fuction to change the frame rate:
hr = pRate->put_FrameRate(15.0);
but the function hr = pRate->put_ChangeStreamLength(TRUE) seems to work.

Any idea?

Many thanks for your help

Jeff
Imagination Technologies, UK
   Report 
  11-26-2007, 8:20
Maen Hasan is not online. Last active: 8/14/2008 8:56:49 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,715
Re: The Frame Rate Control Filter
Reply Quote
Hello,

You mentioned that the code used to work but not working anymore.
Did you change anything in the code?
What is the build number of the LMVFramCtrl2.dll and DSKernel2.dll files on your system32 folder?

Thanks,
Maen Badwan
LEADTOOLS Technical Support

   Report 
  11-26-2007, 8:27
zwen is not online. Last active: 11/21/2007 7:16:35 PM zwen

Top 500 Posts
Joined on 11-20-2007
Posts 7
Re: The Frame Rate Control Filter
Reply Quote
thanks, i will try
   Report 
Post
LEAD Support Fo... » Developer » Multimedia Filt... » Re: The Frame Rate Control Filter

Powered by Community Server, by Telligent Systems