AI frame interpolation produces corrupted output
Windows 11, A380 card, latest drivers .6458.
Software works with in-memory frames in YV12, with NV12 output after VPP.
Attached source frame and the one generated by VPL. The image is somehow stretched and squeezed, plus overlaid with something that looks like a mask in a blocks 4x4 (or 8x8?).
I'm pretty sure my code is ok, because it works correctly after replacing mfxExtVPPAIFrameInterpolation with simple mfxExtVPPFrameRateConversion.
My init code:
mfxVideoParam VPPParams = {};
_fillFrameInfo(&VPPParams.vpp.In, MFX_FOURCC_YV12, width, height, 24, 1);
_fillFrameInfo(&VPPParams.vpp.Out, MFX_FOURCC_NV12, width, height, 24*mul, div);
VPPParams.IOPattern = MFX_IOPATTERN_IN_SYSTEM_MEMORY | MFX_IOPATTERN_OUT_SYSTEM_MEMORY;
mfxExtVPPAIFrameInterpolation aiFrameInterpolation = {};
aiFrameInterpolation.Header.BufferId = MFX_EXTBUFF_VPP_AI_FRAME_INTERPOLATION;
aiFrameInterpolation.Header.BufferSz = sizeof(mfxExtVPPAIFrameInterpolation);
aiFrameInterpolation.FIMode = MFX_AI_FRAME_INTERPOLATION_MODE_DEFAULT;
aiFrameInterpolation.EnableScd = 1;
mfxExtBuffer *ExtParam[] = { (mfxExtBuffer *)&aiFrameInterpolation };
VPPParams.NumExtParam = 1;
VPPParams.ExtParam = ExtParam;
MFXVideoVPP_Init(session, &VPPParams);
This looks like it might be related to the runtime. @FurongZhang what do you think?
Any update on this @mav-intel ?
@Usulyre I think @FurongZhang is probably the best person to look at this but is out, probably will be able to look at in the 2nd week in February
We will check that and give an update.
We will check that and give an update.
Hi, is there an update yet?
We have already fixed an similar corruption. The fix will be released 1-2 months in gfx official release. But I am not quite sure if the fix can resolve your issue. Is it possible for you to share you clips and let us try if our fix can resolve your issue?
dunno, this happens with any source frames, any resolution if this matters, I'm using YV12 input and NV12 output
@chainikdn Hi I'm trying to use this frame interpolation recently. I'm new to this vpl framework. This might be a stupid question. What is the div parameter in your code? I keep getting MFX_ERR_INVALID_VIDEO_PARAM error. Not sure if I missed some parameters. Thanks
We fixed one corruption issue, I will let you know once the new driver release.
We fixed one corruption issue, I will let you know once the new driver release.
Any new updates?
I think the latest driver could have the fix.
I'm having the same issue with the latest release. Are there any updates on this?
I'm having the same issue with the latest release. Are there any updates on this?
@aschuch1 Have you specified -iopattern d3d_to_d3d in your command? It fixed my problem.