Hi all,
I have been trying to crop input frames before encoding them. The current pipeline I've build consists of decode -> VPP -> encode. According to the developpers guide, I understand that this is possible with such values:
VPP Input VPP output
W,H X,Y,W,H W,H X,Y,W,H
Cropping 720x480 16,16,688,448 720x480 16,16,688,448
In my case, I tried this set of values.
VPPParams.vpp.In.Width=1920
VPPParams.vpp.In.Height=1088
VPPParams.vpp.In.CropW=960
VPPParams.vpp.In.CropH=544
VPPParams.vpp.Out.Width=1920
VPPParams.vpp.Out.Height=1088
VPPParams.vpp.Out.CropW=960
VPPParams.vpp.Out.CropH=544
However, I get an error MFX_ERR_INCOMPATIBLE_VIDEO_PARAM -14.
I did try other combinations without sucess. Can anyone confirm that's the right way to perform cropping operations? If not, is there a better way to do it?
Thanks !