Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

Hi, i need to find code that can get me the frame rate of a live video stream in FPS mode.

please help! 

Posted

Have you tried to use the sample grabber filter to add to a frame counter variable for each frame delivered.  You can then grab the count once a second and reset.  I have used this method before, and if you just need it for simple debugging purposes it should be fast and accurate enough.
 
Share this answer
 
Hi BryanWilkins yes i did it before and it was successfully worked! you can add just a simple counter in your function that will be called when a new frame arrived, but there is a problem and it is that you need to calculate how much time it takes to add a new frame. :) fortunately you can do this by adding a time calculator to your function and for sure you can see your frame rate easily.

have a nice time.
ask me your question if you need to know more about directshow.

Sincerely Arash Shirkhorshidi.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900