Hi @chinthy2
I would try also changing the object meta rect params before your second encoder call:
objMeta->rect_params.width = frameMeta->source_frame_width;
objMeta->rect_params.height = frameMeta->source_frame_height;
objMeta->rect_params.top = 0.0f ;
objMeta->rect_params.left = 0.0f ;
Let me know if this helps