Welcome to LEAD Support Forum Login | Register | Faq  

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

Frame rate control filter, possible bug?
Started by zwen at 12-03-2007 4:48. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  12-03-2007, 4:48
zwen is not online. Last active: 11/21/2007 7:16:35 PM zwen

Top 500 Posts
Joined on 11-20-2007
Posts 7
Frame rate control filter, possible bug?
Reply Quote
Hi,

I am using the frame rate control filter in my directshow graph.

I can adjust the frame rate by calling the put_FrameRate(value).

The problem is the put_ChangeStreamLength() function. I called this function with parameter (TRUE), it didn't take any effect.

The only way I can change the change stream length is via the GraphEdit. I can tick the "change stream length" option in the interface. Therefore, the trick to make my program work is :
1. start GraphEdit, insert the Frame Rate Conrol Filter, select the "change Stream Length" option, click "Apply".
2. do the programing in normal way.

But whenever I call the put_ChangeStreamLength() with either TRUE or FALSE, the change stream length option will be disabled and I have to use the Graphedit to enable that option.

Any idea of the problem? Mnay thanks in advance.

Jeff

   Report 
  12-04-2007, 3:20
Maen Hasan is not online. Last active: 10/13/2008 7:35:45 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,748
Re: Frame rate control filter, possible bug?
Reply Quote
Hello,

I checked the ChangeStreamLength property of the LEAD Video Frame Rate Controller Filter and it works correctly.
I checked this issue by using the following code:
+-------------+
Private Sub Command1_Click()
'Set the Source File
ltmmPlayCtrl1.sourcefile = "c:\DaDa_CMW.avi"
ltmmPlayCtrl1.Run
End Sub

Private Sub Command2_Click()
Dim nIndex As Integer
Dim LMVFrame As LMVFramCtrl
   
'The string below is retrieved from the Filters List utility
nIndex = ltmmPlayCtrl1.VideoProcessors.Find("@device:sw:{E526D606-22E7-494C-B81E-AC0A94BFE603}\{E2B7DD97-38C5-11D5-91F6-00104BDB8FF9}")

ltmmPlayCtrl1.SelectedVideoProcessors.Add ltmmPlayCtrl1.VideoProcessors.Item(nIndex), 0

Set LMVFrame = ltmmPlayCtrl1.GetSubObject(ltmmPlay_Object_SelVideoProcessor)

ltmmPlayCtrl1.Pause

LMVFrame.Enable = 1
LMVFrame.FrameRate = 10
LMVFrame.ChangeStreamLength = True
ltmmPlayCtrl1.Run
End Sub
+-------------+

If you check the same issue using thee above code, do you face the same problem?
Also, what is the build number of the LMVFramCtrl2.dll and DSKernel2.dll files on your system32 folder?

Thanks,
Maen Badwan
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » Multimedia Filt... » Frame rate control filter, possible bug?

Powered by Community Server, by Telligent Systems