Icontem

JavaScript AVI Parser: Parse and extract information from AVI video files

Recommend this page to a friend!
  Info   View files Example   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-04-19 (3 years ago) RSS 2.0 feedStarStarStarStar 66%Total: 74 All time: 461 This week: 5Up
Version License JavaScript version Categories
aviinfo 1.0Custom (specified...5Audio, Video, Parsers
Description Author

This object can parse and extract information from AVI video files.

It can take the URL or selected file of a AVI video and read it to parse its information.

The object takes a callback function to handle errors, or if it succeed it calls another callback function passing the parse information in easy to process data structure.

It returns information about the audio and video streams like the format, compatibility, indexation, duration, bitrate, creator, codecs, size, samples, language, frame rate, width height, color depth, etc..

Innovation Award
JavaScript Programming Innovation award nominee
April 2016
Number 5
Many sites need to take videos uploaded by the users. When a user uploads a video he may not be certain if that is the right video that he wants to upload and may only realize that after a few hours when the video finishes uploading.

This object is one of several others that can help addressing this issue by being able to parse and extract data from an MP4 video even before the user uploads it. This way the user can confirm if the video was the right was that he wanted to upload.

Other versions of this package exist for parsing MP4 and MKV video files.

Manuel Lemos
  Performance   Level  
Name: Dantigny francois <contact>
Classes: 5 packages by
Country: France France
Age: ???
All time rank: 1397 in France France
Week rank: 63 Up2 in France France Up
Innovation award
Innovation award
Nominee: 5x

Details

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)  
  Files folder image Files  
File Role Description
Plain text file AVIInfo.js Class main class
Accessible without login Plain text file index.html Example example without worker
Accessible without login Plain text file indexw.html Example example with worker
Accessible without login Plain text file LICENSE Lic. license
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file workerAVI.js Appl. main class worker

 Version Control Unique User Downloads Download Rankings  
 100%
Total:74
This week:0
All time:461
This week:5Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:66%StarStarStarStar
Rank:23