I'm trying to convert a large (40mb) mov file to mp4 using ffmpeg and php.
But it gives me a 504 time-out error on server. Can i fix this without changing set_time_limit
?
Here is my php code.
shell_exec($this->getFFmpegPath() . ' -i ' . $path . ' -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -preset slower -crf 18 -vf "scale=trunc(in_w/2)*2:trunc(in_h/2)*2" ' . $convertedPath . '.mp4');
So, any ideas on how to convert this without a timeout ? Any help will be much appreciated.