AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

Wrong Frame Rate when open local video file (mp4)

Forum to discuss AForge.NET Framework, its features, API, how-tos, etc.

Wrong Frame Rate when open local video file (mp4)

Postby enriquemp » Fri Aug 04, 2017 11:24 am

Hi all,

just starting to work with this cool framework. I'm facing a problem while getting the frame rate of a local video (mp4).
AForget.Net is telling me it is 32 FPS through the property FrameRate, so I calculate the duration by using the FrameCount property.

The problem is that the FPS value is wrong. I have checked it by executing FFMPEG in the command line, and it gives a different FPS (15.52 instead of 32)
Is this a known bug? I have searched in the forum about it, but with no luck.

I would thank you if you could give me some information about this situation, and if you know a way of getting the correct FPS value.
enriquemp
 
Posts: 2
Joined: Fri Aug 04, 2017 11:17 am

Re: Wrong Frame Rate when open local video file (mp4)

Postby enriquemp » Fri Aug 04, 2017 2:02 pm

I'm answering myself to add some extra information. The problem I explained is happening only with one video file...what is weird, isn't it?

Just for someone wanting to play with it, I'm uploading to this URL: https://drive.google.com/file/d/0B4uI56ZVDVxgYzFjUmZ4cTVnRGs/view?usp=sharing

Thaks,
enriquemp
 
Posts: 2
Joined: Fri Aug 04, 2017 11:17 am




Return to AForge.NET Framework

cron