
20.01.2009, 21:52
|
|
Участник форума
Регистрация: 04.10.2008
Сообщений: 154
Провел на форуме: 203408
Репутация:
7
|
|
Сообщение от nerezus
PHP код:
function video_convert_to_flv($input, $output="output.flv", $custom=false) {
if (!$custom) {
$custom = array(56, 300, 320, 240);
}
$command = sprintf('mencoder "%s" -o "%s" -of lavf -oac mp3lame -lameopts ' .
'abr:br=%d -srate 22050 -ovc lavc -lavcopts vcodec=flv:vbitrate=%d:mbd=2:' .
'mv0:trell:v4mv:cbp:last_pred=3 scale=%d:%d',
$input, $output, $custom[0], $custom[1], $custom[2], $custom[3]);
run($command);
run("flvtool2 -UP \"$output\""); // update metadata
}
А по подробнее можно? Там куча файлов и хз че куда пихать....
|
|
|