File: README.md

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

Contents

Class file image Download

AVIInfo

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

Dependances : null

Usage :

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

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

How use it : 2 ways :

1

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

2 -------------------------------------------------------------------------------------

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

where 'withmovis' is false or true (false by default or by ignore). When withmovis is true, AVIInfo will calculate sizes by reading each size of each frame. It's more exact but more slower

AVIInfo 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 a single file and no worker : index.html
for multiple files and worker   : indexw.html

Try it ?

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

PS : AVI files should have troubles (http://www.virtualdub.org/blog/pivot/entry.php?id=25 (common problems in 'bad AVI files')) In these cases, you should use some tool to repair it. I use AviDemux (https://fr.wikipedia.org/wiki/Avidemux) ;-)