If I loop through a mysql query and run a popen on each row, it appears that the commands are only running 1 at a time. Is there some sort of "queue" i can access and force to process 3 or 4 at a time, or do i just have to wait? this is for ffmpeg and at this rate it will take days to complete all these commands one by one...
foreach($videos as $video){
popen('ffmpeg -i ........','r');
}