Click here to Skip to main content
15,991,071 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi people.
I need to know how may I detect frame rate of a video file in VB.NET?

What I have tried:

I just found some articles they did this via FFMPEG and FFPROBE. But I found no luck with them. Also I don't like to use process to run shell file.
Posted

1 solution

 
Share this answer
 
Comments
Sh.H. 5-Jul-24 11:28am    
@M-Badger
TagLib does not show frame rate.
M-Badger 7-Jul-24 10:05am    
You're right in that it's not required in the metadata, which is what taglib-sharp reads, but it can be - depends on what your needs are.
You could also look at https://github.com/radek-k/FFMediaToolkit
Or https://www.visioforge.com/help/

M
Sh.H. 7-Jul-24 10:36am    
@M-Badger
I checked taglib-sharp also. I doesn't give me frame rate.
Could you please kindly help me on this and let me know its code to determine frame rate with taglib-sharp ?
Thanks
M-Badger 8-Jul-24 6:44am    
taglib-sharp can recover the frame rate from the meta data IF AND ONLY IF it is included in the metadata - so those formats that allow optional information like ID3v2 does for mp3.
I have given you two other alternatives, FFMediaToolkit and Visio Forge. Try them.
Sh.H. 9-Jul-24 11:05am    
@M-Badger
Thanks for alternatives, but they are not open source. Actually I am looking for code. I mean a low-level code without using third parties or components or external files.

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