Ffmpeg-php

Php-ffmpeg
php-ffmpeg is a component that can be used in a php script. Here are some details:
 * php-ffmpeg is free
 * php-ffmpeg installation is similar to installing a perl module
 * php-ffmpeg is used for many youtube clones
 * unlike other scripts, php-ffmpeg supports all video types

Full Code
getFrameWidth); $srcHeight = makeMultipleTwo($ffmpegObj->getFrameHeight); $srcFPS = $ffmpegObj->getFrameRate; $srcAB = intval($ffmpegObj->getAudioBitRate/1000); $srcAR = $ffmpegObj->getAudioSampleRate; // Call our convert using exec exec($ffmpegPath . " -i " . $srcFile . " -ar " . $srcAR . " -ab " . $srcAB . " -f flv -s " . $srcWidth . "x" . $srcHeight . " " . $destFile . " | " . $flvtool2Path . " -U stdin " . $destFile); function makeMultipleTwo ($value) { if ($value % 2) return $value - 1; else return $value; } ?>