Read metadata of video file


I’ve been at this for hours, it’s time to ask for a little help.

I need to know the frame rate of a video on load in JavaScript/HTML and I’m trying to avoid VLC plug-in or ffmpeg.

Chromium reads the video metadata to check the intended frame rate, so how can I do this as well? I read a lot of online things and didn’t find anything useful but I can’t believe that this is unfeasible.

I’m looking for this but for videos. Should be simple, right?


Found out the solution.