lavc: VAAPI encode common infrastructure