Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Change Vpp resolution dynamically

kkbee
Beginner
117 Views

Does SDK support VPP change resolution(MFXVideoVPP_Reset) dynamically such as MFXVideoENCODE_Reset?

I call MFXVideoVPP_Reset and MFXVideoVPP_Reset return MFX_ERR_NONE.

But output resolution doesn't change.

Thanks

0 Kudos
1 Reply
Petter_L_Intel
Employee
117 Views
Hi kkbee, sorry for the late reply. Dynamic VPP output resolution change is supported without needing to call Reset() with the limitation that the dynamically selected resolution must be smaller than the resolution set during VPP initialization. If there is a need to change to greater resolution compared to Init resolution then VPP pipeline must be reinitialized and surfaces reallocated to the new resolution. The Media SDK manual is somewhat misleading when it comes to describing this usage. We will work to improve the manual to describe this better. To change to new output resolution at runtime the only thing you have to do is to modify the CropW and CropH values in the output surface Info field (mfxFrameSurface1). This will effectively resize the frame to the new desired resolution. Regards, Petter
Reply