add limiting the number of forks & fix ffmpegLog