I am currently trying to customize an HTML5 video player so that I can add a button that returns the current frame number.
Lets say I have a 30fps video that lasts 9
There is a decent Video Frame JS lib to work with frames https://github.com/X3TechnologyGroup/VideoFrame
It's very old question, but this may be useful for new readers.
Ref: Get frame numbers in HTML5 Video