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.
2935 Discussions

Different size input frames for mfxExtVPPComposite possible?

elsparro
Beginner
116 Views

Hi,

I am testing the composite feature in VPP.

I configure the VPP to have 2 input streams, first one is 0, 0, 1920, 1080 and second is 0, 0, 1280,720 (x, y, w, h), params.vpp.In with 1290x1080 and params.vpp.Out with 1920x1080 also.

When i input 2 frames with size 1920x1080 it works perfectly and i get the second frame as an picture-in-picture on the first.

However when I try to input a 1280x720 as the second frame setting the mfxFrameInfo the output frame gets corrupted.

Is it possible at all to use different input sizes and if so, how should it be done?

Best Regards

 

 

0 Kudos
2 Replies
elsparro
Beginner
116 Views

Solved, sort of.

Had not read the manual enough it seems,  a little RTFM gave me a solution.

Got it to work by using same size input frames, copy the smaller frames into the input frames and adjusting the CropWH.

I will call this a workaround until someone with greater wisdom tells me that this is in fact the right way to do it.

Best Regards

 

 

Surbhi_M_Intel
Employee
116 Views

Hi elsparro,

A similar question has been asked before in the forum as well https://software.intel.com/en-us/forums/topic/344229
Your work around seems to be a decent way i.e. by changing the CropW and CropH, which is also mentioned as solution in the forum as well.
However, if you put frames of same resolution you can definitely integrate more vpp resize pipeline to resize the frame according to your needs before passing the frame to other function. 
 

Reply