I would like to be able to stop and then restart an ecndoing session. Basically I want to call MFXIinit() only once but then be able to use the same session for multiple encoding runs with possibly different video parameters. I initialize VPP and encoding by calling MFXVideoVPP_Init and MFXVideoENCODE_Init and then call MFXVideoVPP_Close and MFXVideoENCODE_Close to stop the encoding. Then when I want to start again, the call to the Init function for VPP and ENCODE fails. I tried using MFXVideoVPP_Reset and MFXVideoENCODE_Reset instead of Close/Init. This worked fine for VPP but for ENCODE I get a MFX_ERR_INCOMPATIBLE_VIDEO_PARAM error, but I'm using the exact same video parameters for the call to Reset as I used the first time in the call to Init which had succeeded.
Any help would be appreciated.