<?php
$cmd = "/usr/local/ffmpeg/bin/ffmpeg -i /data/web/tofflon/ceshi/4.mp4 -c:v libx264 -threads 5 -preset ultrafast -strict -2 -y /data/web/tofflon/ceshi/1625640536.mp4";
exec($cmd." 2>&1", $out, $ret);
if ($ret){
echo "There was a problem!\n";
print_r($out);
}else{
echo "Everything went better than expected!\n";
}
?>