use 1 thread per ffmpeg