I'm trying to create a process for FFmpeg video compression at runtime. In my local system, it runs within 30 seconds. When I tried to run it in the server, it starts throwing a timeout error after 60 seconds. When I manually ran the command in the server, it took around 2 minutes. I came to know that some configuration in php.ini needs to be modified. I tried changing the configuration of the process to 300 seconds. Still, the same timeout error is being outputted.
The process "/usr/bin/ffmpeg -i '/var/temp/5e7de5a9de7c2/creme bulee-01-infuse
the cream and milk.mp4' -s 1668x2224 -c:a copy '/var/temp/5e7de5a9de7c2/compre
ssed/temp_creme bulee-01-infuse the cream and milk_1668x2224.mp4'" exceeded th
e timeout of 60 seconds.
In php.ini, I have the following configuration:
max_execution_time = 300
max_input_time = 300
How do I stop my process from timing out?