functions

If you have ffmpeg on your server you can do a lot of great things with videos with egards to conversions, this example shows how to create a thumbnail from a video

<?php
convertToFlv( "some-video-input.avi", "output.jpg" );
 
function convertToFlv( $input, $output ) {
   echo "Converting $input to $output<br />";
   $command = "ffmpeg -v 0 -y -i $input -vframes 1 -ss 5 -vcodec mjpeg -f rawvideo -s 286x160 -aspect 16:9 $output ";
   echo "$command<br />";
   shell_exec( $command );
   echo "Converted<br />";
}
?>