Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
hello
i want simple code to calculate frame per second for video in c# ....

do we need adding timer to the form??!!

please!!:)

_____________________________________thank you
Posted
Comments
Sergey Alexandrovich Kryukov 31-Mar-13 21:05pm    
The question makes no sense without explaining what do you have on input.
—SA
youshy 1-Apr-13 4:24am    
ok let me explain>>
i'm sending stream video JPEG and i want to calculate the frames of the this video, do u have a simple code for FPS ?
Sergey Alexandrovich Kryukov 1-Apr-13 9:19am    
No, I don't; and don't see any sense. How JPEG can be video? JPEG is the format for a static image.
—SA
youshy 1-Apr-13 11:14am    
yes i know. but when i want to calculate the frames per second as long as the video stream the code for fps how??!
Sergey Alexandrovich Kryukov 1-Apr-13 11:49am    
Not clear. What do you have on input?
—SA

1 solution

Your question doesn't make any sense as a video will normally have the playback rate embedded in its metadata, making your "calculation" pointless.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 1-Apr-13 14:48pm    
My 5. This is a correct answer, but, by some reason, OP keep asking me about the detail in the comments to the question, not explaining what's going on. Would you respond?
—SA
Dave Kreskowiak 1-Apr-13 14:54pm    
Sorry, I try not to talk to brick walls. ;)
Sergey Alexandrovich Kryukov 1-Apr-13 14:57pm    
Good idea, maybe I have to stop it, too; thank you.
—SA

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