File: README.md

Recommend this page to a friend!
  Classes of Dantigny francois   JavaScript MP4 Parser   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: JavaScript MP4 Parser
Parse and extract information from MP4 video files
Author: By
Last change: Update README.md
Update README.md
Date: 2 years ago
Size: 1,163 bytes
 

Contents

Class file image Download

MP4Info

Sort of "Mediainfo" for MP4 Files - little MP4Parser (just for main technics information about the file)

Dependances : null

Usage :

<script src="MP4Info.js" type="text/javascript" charset="utf-8"></script> 
(in single file .html)

importScripts('MP4Info.js');                                              
(in worker)

How use it :

 
        mp4(this.files[0], function(err, info) {
            if (err) {
                .....
            } else {
                sortie_texte = human_reading(info);
                ....
            }
        }); 

MP4Info return an object structured (named 'info') wich contains a lot of technicals information about the file. If we want to read this informations, we need to make them readable. So human_reading is here !

Examples :


for multiple or single file and no worker : index.html

Try it ?

http://aroug.eu/MP4Info/   (multiple + worker)       

Bugs :

This version use await/async so Microsoft Internet is forbiden ... but Edge run :-)
More : workers (multiple files) work now in kind of parallelism (not one after one)