Welcome to LEAD Support Forum Login | Register | Faq  

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

Apparent callback filter timeout when ReceiveProc is called
Started by twhif at 01-18-2008 1:27. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  01-18-2008, 1:27
twhif is not online. Last active: 3/7/2008 1:39:39 PM twhif

Top 500 Posts
Joined on 12-30-2007
Posts 9
Apparent callback filter timeout when ReceiveProc is called
Reply Quote
When using a callback filter with the ltmmConvertCtrl object in .NET (C#), I run into a situation where there appears to be a timeout if the ILMVUserCallback.ReceiveProc method takes too long (i.e. over 550 milliseconds). When this happens the ltmmConvertCtrl.Complete event gets fired without all frames being sent through the ReceiveProc method.
Is there a timeout when the ReceiveProc method is called and if so can it be adjusted to allow for a longer time?
   Report 
  01-20-2008, 11:24
Qasem Lubani is not online. Last active: 8/27/2008 3:13:14 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,034
Re: Apparent callback filter timeout when ReceiveProc is called
Reply Quote

When you run a filter graph, DirectShow controls the timeout process if the filter is suspended for too long. Unfortunately, there is no function in LEADTOOLS to control the timeout period when using the Video Callback filter in a conversion graph.

However, there is another approach you could use that might work even with longer delays. Instead of using the callback filter, try to split the video stream into individual frames in a way similar to what the 'Splitting an AVI File into Multiple Bitmaps Using ltmmSampleTarget' help file code sample does.
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  01-22-2008, 10:51
twhif is not online. Last active: 3/7/2008 1:39:39 PM twhif

Top 500 Posts
Joined on 12-30-2007
Posts 9
Re: Apparent callback filter timeout when ReceiveProc is called
Reply Quote
I have tried the ltmmSampleTarget approach and ran into the same problem described in another thread (defect 6420AMN, http://support.leadtools.com/SupportPortal/cs/forums/17972/ShowPost.aspx) where the second time I call ltmmSampleTarget.GetSample it allways times out. According to this thread this is still an open issue.
Any update on resolving this issue would be useful to know moving forward.
   Report 
  01-23-2008, 2:46
Qasem Lubani is not online. Last active: 8/27/2008 3:13:14 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,034
Re: Apparent callback filter timeout when ReceiveProc is called
Reply Quote
The was assigned to an engineer but is still marked as "Open". I have added this forum post to be notified when the issue is addressed. I will notify you as soon as I hear back form our engineers.

Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
Post
LEAD Support Fo... » Developer » Multimedia Filt... » Apparent callback filter timeout when ReceiveProc is called

Powered by Community Server, by Telligent Systems