add a new attribute in the AVCodecContext thread_opaque2
enable WPP and framebased
separate the number of threads for frame and slice