views:

439

answers:

1

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?

+3  A: 

The scheduling of the FFMPEG process is done by the kernel scheduler. You can't explicitly fire your processes at each core.

idea