PHP Classes

File: info.php

Recommend this page to a friend!
  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: 9 years ago
Size: 633 bytes


Class file image Download

// 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

For more information send a message to info at phpclasses dot org.