ffmpeg info"; $ffmpegPath = whereis("ffmpeg"); echo "path: " . $ffmpegPath . "
"; $version = @shell_exec($ffmpegPath . " -version"); $version = explode("\n", $version); $version = $version[0]; $version = explode(" ", $version); $version = $version[1]; echo "version: " . $version . "
"; echo "codecs:
" . @shell_exec($ffmpegPath . " -codecs 2>&1") . "

"; echo "formats:
" . @shell_exec($ffmpegPath . " -formats") . "

"; } function whereis($app) { $op = @shell_exec("whereis " . $app); if ($op != "") { $op = explode(" ", $op); for ($i = 1; $i < count($op); $i++) { if (file_exists($op[$i]) && !is_dir($op[$i])) return $op[$i]; } } return false; } /* stdClass Object ( [video] => stdClass Object ( [codec] => h264, [height] => 576 [width] => 640 ) [audio] => stdClass Object ( ) ) */