Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2016-04-08 (6 months ago) | | Not enough user ratings | | Total: 64 | | All time: 438 This week: 18 |
|
Description | | Author |
This object can parse and extract information from MP4 video files.
It can take the URL or selected file of a MP4 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, progressivity, duration, bitrate, creator, codecs, size, samples, language, frame rate, widthm height, color depth, etc.. Innovation Award
April 2016
Number 3
Prize: One downloadable e-book of choice by O'Reilly |
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 AVI and MKV video files.
Manuel Lemos |
| |
|
|
Innovation award
Nominee: 5x |
|
Details
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 a single file and no worker : index.html
for multiple files and worker : indexw.html
Try it ?
http://aroug.eu/MP4Info/ (multiple + worker)
Bugs :
FileReader() isn't supported by Firefox in WebWorkers :( but is OK with Opera, Chrome and IE) : fixed with FileReaderSync !
Date() isn't supported by IE (NaN NaN and so on) : fixed !! lastModified --> lastModifiedDate
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.