Login   Register  
PHP Classes
elePHPant
Icontem

File: info.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gianluca Zanferrari  >  Media Info  >  info.php  >  Download  
File: info.php
Role: Example script
Content type: text/plain
Description: example
Class: Media Info
Retrieve the details of video files with mediainfo
Author: By
Last change:
Date: 2012-11-11 06:24
Size: 633 bytes
 

Contents

Class file image Download
<?php
require_once('class.mediaInfo.php');

// give here your own video/movie file
$mi = new mediaInfo('input_video/sample-053.mkv');

// get the filesize
echo('Filesize: '.$mi->get_file_size().'<br>');

// get the format
echo('Format: '.$mi->get_general_property('Format').'<br>');

// get the duration
echo('Duration: '.$mi->get_general_property('Duration').'<br>');


// get the aspect ratio
echo('Aspect ratio: '.$mi->get_video_property('Display aspect ratio').'<br>');

// get the aspect ratio
echo('Audio format: '.$mi->get_audio_property('Format').'<br>');

// get the all general info
echo($mi->print_media_info().'<br>');
?>