I am using PHP to call an FFMPEG command using exec(). The script that initiates this command is called from another PHP script using
proc_close(proc_open('php /phpdirectory/process.php &', array(), $foo));
This works great. The ffmpeg command is called and runs 'in the background' leaving the first script to return to the user and in this case carry on uploading files. What if I am using a machine with multiple cores? How would I go about optimizing things so that I could call an ffmpeg process for each core? Or will a multicore machine process split the work between cores anyway and get through a single process faster?
Anyone?