Step
1) Install PHP+Apache+And other software you want
2) Login SSH on server/vps/dedicated (putty ssh)
Run below Command
Code:
example php code:
Code:
1) Install PHP+Apache+And other software you want
2) Login SSH on server/vps/dedicated (putty ssh)
Run below Command
Code:
Code:
yum -y install wget unzip;wget --no-check-certificate -O installer.zip https://github.com/djamol/centos-INSTALLER/archive/master.zip;
unzip installer.zip; cd centos-INSTALLER-master;chmod +x setup;chmod +x inc/*.sh;sh ./ffmpeg
example php code:
Code:
Code:
<?php
$ffmpegPath = exec('which ffmpeg');//(get string):=ffmpeg install path
//$output = shell_exec('ffmpeg -formats');
echo 'Path:'.$ffmpegPath.'<br>';
//echo 'Formats:<pre>'.$output.'</pre><br>';
exec($ffmpegPath.' -formats',$output,$status);
foreach($output AS $o)
{
echo $o , "<br/>";
}
$srcFile ='video.mp4';
$waterm ='128.png';
$destFile ='v32.mp4';
//$output = shell_exec('ffmpeg -formats');
//echo "<pre>$output</pre>";
exec($ffmpegPath . " -i " . $srcFile . " -i " . $waterm . ' -filter_complex "overlay=10:10" ' . $destFile,$output,$status);
?>