I want to convert any videos to FLV format.
code:
<?php
convertToFlv( "test.avi", "test.flv" );
function convertToFlv( $input, $output ) {
echo "Converting $input to $output<br />";
$command = "ffmpeg -i $input -s 320x240 -ar 44100 -r 12 $output";
echo "$command<br />";
shell_exec( $command );
echo "Converted<br />";
}
?>
For some reason, it doesn't output anything.
What am I missing here?
ffmpeg
ffmpeg support (ffmpeg-php) enabled
ffmpeg-php version 0.5.0
libavcodec version Lavc51.32.0
libavformat version Lavf51.8.0