RollRoll
RollRoll

Reputation: 8472

How to detect framerate from video playing on video tag?

Is there any way I can detect via javascript what is the framerate from the video referenced in the video html5 tag?

I'm also looking for bitrate and codec information since html5 video player is codec agnostic.

thanks

Upvotes: 7

Views: 3485

Answers (1)

seanlevan
seanlevan

Reputation: 1415

The FPS is stored in the metadata of the video file's header.

Here is an implementation API of what you are looking for: https://github.com/X3TechnologyGroup/VideoFrame

http://jsfiddle.net/Ck6Zq/184/

Upvotes: 1

Related Questions