Thread v2(control thread and ffmpeg thread).