Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

NV12 to NV12 resize issue

KK
Beginner
766 Views

Hello,

We are using Intel Media SDK to resize NV12 1080p to NV12 960 x 540. This doesn’t produce right output image.

Whereas the same code works fine when we do NV12 to RGB4 conversion along with resizing (i.e.., NV12 1080p to RGB4 960 x 540).

Please suggest.

Code snippet attached for reference.

regards,

KK

0 Kudos
5 Replies
Renit_S_
Beginner
766 Views

In my application we are setting encoder and VPP paramter for same case.

Regards

Renit

0 Kudos
Petter_L_Intel
Employee
766 Views

Hi,

Can you explain what you mean by "does not produce right output image"?

From the first code segment clip you provided I do not see initialization of "m_mfxVPPParams.vpp.Out.Width". I'm assuming these are set based on the frame dimensions even if you do now show it in the code clip?

Regards,
Petter

0 Kudos
KK
Beginner
766 Views

Hello Petter,

Please find the output image attached.

Both Vpp.Out.CropW and Vpp.Out.Width has been assigned to destination Width.

Both Vpp.Out.CropH and Vpp.Out.Height has been assigned to destination Height.

Also we ensured Out.Width and Out.Height are 16 / 32 bit aligned.

The same parameters works fine if we change Out.FourCC from NV12 to RGB4.

 

Apart from the above, we also tried the source code attached by Renit.

When we give vpp.Out.Width and vpp.Out.Height as destination width and height

AND

vpp.Out.CropW and vpp.Out.CropH as Source Input Width and Height,

RunFrameVPPAync() returns error as MFX_ERR_INCOMPATIBLE_VIDEO_PARAM.

regards,

KK

 

0 Kudos
KK
Beginner
766 Views

Hello Petter,

Please find the output image attached.

Both Vpp.Out.CropW and Vpp.Out.Width has been assigned to destination Width.

Both Vpp.Out.CropH and Vpp.Out.Height has been assigned to destination Height.

Also we ensured Out.Width and Out.Height are 16 / 32 bit aligned.

The same parameters works fine if we change Out.FourCC from NV12 to RGB4.

 

Apart from the above, we also tried the source code attached by Renit.

When we give vpp.Out.Width and vpp.Out.Height as destination width and height

AND

vpp.Out.CropW and vpp.Out.CropH as Source Input Width and Height,

RunFrameVPPAync() returns error as MFX_ERR_INCOMPATIBLE_VIDEO_PARAM.

regards,

KK

 

0 Kudos
Petter_L_Intel
Employee
766 Views

Hi,

The YUV file you provided does not seem to match the specifications you provided. I do not see how it can be a 960x540 resolution frame (or frames) since the file is too small for that.

I suggest you try to use the Media SDK tutorial sample "simple_4_vpp_resize_procamp" as a reference to try to find your issue. That sample does showcase a similar VPP scenario. For a combined VPP-Encode sample look at "simple_4_vpp_resize_procamp" (does require slight change to add resizing).

http://software.intel.com/en-us/articles/intel-media-sdk-tutorial

Regards,
Petter

0 Kudos
Reply