nvEncodeAPI - H264 Encoding, resolving pitch/stride ahead of time

I need to know the frame buffer pitch @ NV_ENC_LOCK_INPUT_BUFFER::pitch BEFORE initializing the encoder, is there any way to do that ?

No it’s not possible. Could you tell us why you want to do this? That will help us to suggest alternatives, if there are any.