-
Notifications
You must be signed in to change notification settings - Fork 457
vp9e: do not allocate internal resources via external allocator #762
Comments
@dvrogozh @onabiull @DmitryMalishev is D3DDDIFMT_INTELENCODE_MBSEGMENTMAP (MFX_FOURCC_VP9_SEGMAP) an internal resource ? According to
|
Hi @xhaihao,
It means that internal frame allocator should be used for this surface allocation: MediaSDK/_studio/shared/src/libmfx_core_vaapi.cpp Lines 560 to 563 in b1c624e
Do you see in debug that it is not the case? Please let us know if so. @eshiryae, could you please track this request if more help required? |
@DmitryMalishev @eshiryae No, it is not the case because m_Display is not NULL. Maybe MFX_FOURCC_VP9_SEGMAP should go into the else block too. MediaSDK/_studio/shared/src/libmfx_core_vaapi.cpp Lines 612 to 623 in b1c624e
|
@xhaihao, thank you for the clarification. MediaSDK/_studio/shared/src/libmfx_core_vaapi.cpp Lines 572 to 577 in b1c624e
|
@DmitryMalishev we are enabling vp9 encode in both ffmpeg/qsv and gst-msdk which have an external allocator. We may workaround it by returning an UNSUPPORTED status however we have to provide the workaround in both ffmpeg/qsv and gst-msdk, another thing is we failed to find MFX_FOURCC_VP9_SEGMAP in mfx header files, so we have to define it in ffmpeg/qsv and gst-msdk. Hence I think it would be better to fix it in MediaSDK. |
1. must enable low_power mode since just VDENC can be supported by iHD driver right now 2. Coding option1 and extra_data are not supported by MSDK 3. IVF header will be inserted in MSDK by default, but it is not needed in FFmpeg level, so disable it. 4. Internal buffer MFX_FOURCC_VP9_SEGMAP should not exposed to FFmpeg, see Intel-Media-SDK/MediaSDK#762 Signed-off-by: Zhong Li <zhong.li@intel.com>
Hi @xhaihao, thank you for the details, we understand the problem and will work to solve it. |
Hi @xhaihao, it is expected behavior for hw library and in this case you should return an unsupported error(MFX_ERR_UNSUPPORTED) for segmentation map allocation try. All resources which unsupported by external allocator are allocated by internal allocator.
|
Return MFX_ERR_UNSUPPORTED for MFX_FOURCC_VP9_SEGMAP to force internal allocator. See Intel-Media-SDK/MediaSDK#762 for more detail Signed-off-by: Zhong Li <zhong.li@intel.com> Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
Please, switch vp9 encoder to use internal mediasdk core and avoid any external allocations for internal resources.
The text was updated successfully, but these errors were encountered: