Whenever I am running this script, it compresses my MP4 video but the output is 0 bytes.
It works well for AVI & FLV format. Please help me understand what I am doing wrong?
@session_start();
@include_once("start.php");
$command = '/usr/local/bin/ffmpeg -i '. FILEPATH .'/video_1244579292.mp4'.' -strict -2 -crf 20 '. COMPRESSPATH .'/my_video.mp4';
shell_exec($command);
echo "<br><br><br>";
echo $command;