Welcome to LEAD Support Forum Login | Register | Faq  

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

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

Print Search « Previous Thread
  01-18-2008, 1:27
twhif is not online. Last active: 12/29/2009 3:39:08 PM twhif

Top 500 Posts
Joined on 12-30-2007
Posts 11
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: 12/21/2008 9:12:09 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,187
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: 12/29/2009 3:39:08 PM twhif

Top 500 Posts
Joined on 12-30-2007
Posts 11
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: 12/21/2008 9:12:09 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,187
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 
  02-15-2010, 10:20
Walter is not online. Last active: 3/3/2010 10:34:42 AM Walter



Top 25 Posts
Joined on 04-14-2008
Charlotte, NC
Posts 278
Re: Apparent callback filter timeout when ReceiveProc is called
Reply Quote
For those experiencing this same issue, incident number 6420AMN was determined to not be a bug for the following reason:

The problem is the garbage collector. It does not release the sample in a timely manner, and the video renderer has no more to give. This can be solved with the following code:

Private Sub Timer1_Tick(ByVal eventSender As System.Object, ByVal eventArgs As
System.EventArgs) Handles Timer1.Tick
' get a sample and pass it along
Dim sample As LTMMLib.IltmmMediaSampleDisp
sample = SampleTarget.GetSample(1000)
SampleSource.DeliverSample(1000, sample)
System.Runtime.InteropServices.Marshal.ReleaseComObject(sample)
End Sub

If after this you continue to have issue regarding this, please send a small sample project (not your entire application) which isolates this issue to support@leadtools.com, so that we may look into the matter further. Please also include a link referencing this forum posting, as well as a detailed description of exactly the problem you're having so that we can assist you further.
Walter
Technical Support
LEADTOOLS
support@leadtools.com
   Report 
Post
LEAD Support Fo... » Developer » Multimedia Filt... » Re: Apparent callback filter timeout when ReceiveProc is called

Powered by Community Server, by Telligent Systems