mp4analyzer.js

mp4analyzer.js is a browser library for parsing mp4/mov files and extracting information. It uses the HTML5 FileReader and DataView APIs to read local files. Currently it only returns the codec of the first video and audio streams, but it can be extended to extract anything contained in mp4 atoms.

It was originally developed to validate user provided video files on the client before performing a costly upload operation.

You can find a demo and detailed documentation on the project’s website.

mp4analyzer.js is distributed under the open source MIT license.