- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In my application we are setting encoder and VPP paramter for same case.
Regards
Renit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page