Mini Shell
<?
$NewImageName = "$pasta_novo";
$outputFile = "output.txt";
$command = "ffmpeg -y -i /home/sicomercio/domains/sicomerciomppa.com.br/public_html/adm/fotos/videos/$NewImageName -i logo.png -filter_complex \"overlay=x=(main_w-overlay_w):y=(main_h-overlay_h)\" /home/sicomercio/domains/sicomerciomppa.com.br/public_html/adm/fotos/videos/t$NewImageName 2> $outputFile";
exec($command);
// Verifique o arquivo de saÃda para capturar a saÃda de erro
$errorOutput = file_get_contents($outputFile);
echo $errorOutput;
$command = "ffmpeg -y -i /home/sicomercio/domains/sicomerciomppa.com.br/public_html/adm/fotos/videos/$NewImageName -i logo.png -filter_complex \"overlay=x=(main_w-overlay_w):y=(main_h-overlay_h),select='eq(n,0)'\" -vframes 1 /home/sicomercio/domains/sicomerciomppa.com.br/public_html/adm/fotos/videos/$NewImageName.jpg 2> $outputFile";
exec($command);
// Verifique o arquivo de saÃda para capturar a saÃda de erro
$errorOutput = file_get_contents($outputFile);
echo $errorOutput;
$arquivo = "/home/sicomercio/domains/sicomerciomppa.com.br/public_html/adm/fotos/videos/$NewImageName";
if (!unlink($arquivo))
{
echo ("Erro ao deletar $arquivo");
}
else
{
echo ("Deletado $arquivo com sucesso!");
}
sleep(2);
rename("/home/sicomercio/domains/sicomerciomppa.com.br/public_html/adm/fotos/videos/t$NewImageName","/home/sicomercio/domains/sicomerciomppa.com.br/public_html/adm/fotos/videos/$NewImageName");
$command = "ffmpeg -y -i /home/sicomercio/domains/sicomerciomppa.com.br/public_html/adm/fotos/videos/$nova.$ImageExt -i logo.png -filter_complex \"overlay=x=(main_w-overlay_w):y=(main_h-overlay_h),select='eq(n,0)'\" -vframes 1 /home/sicomercio/domains/sicomerciomppa.com.br/public_html/adm/fotos/videos/$nova.jpg 2> $outputFile";
exec($command);
$xml .= "$command";
// Escreve o arquivo
$fp = fopen('video.txt', 'w+');
fwrite($fp, $xml);
fclose($fp);
?>
Zerion Mini Shell 1.0