Community
cancel
Showing results for 
Search instead for 
Did you mean: 
KK
Beginner
156 Views

NV12 to NV12 resize issue

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
156 Views

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

Regards

Renit

Petter_L_Intel
Employee
156 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

KK
Beginner
156 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

 

KK
Beginner
156 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

 

Petter_L_Intel
Employee
156 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

Reply