@mbahadir No sir..I think there is some issue in the code ...I tried many methids but all of them failed

I tried using h264enc_v2.0 developed by Yibo Sir and it worked perfectly and so is using it