Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to detect framerate from video playing on video tag?

Tags:

html

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

like image 487
RollRoll Avatar asked Nov 09 '22 18:11

RollRoll


1 Answers

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/

like image 81
seanlevan Avatar answered Nov 14 '22 21:11

seanlevan