Unable to record video in h264 encoder

I’m using ar2020 sensor using argus isp in JP6.0
Able to record in h265 encoder, but not in h264 encoder.
The command used to record stream is mentioned below.

H.265 ---- gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 sensor-mode=0 ! “video/x-raw(memory:NVMM),width=(int)5120,height=(int)3840,framerate=15/1,format=(string)NV12” ! nvvidconv ! nvv4l2h265enc ! h265parse ! queue2 ! qtmux ! filesink location=4K_h264HW_nvjpeg.mp4 -e

H.264 ---- gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 sensor-mode=0 ! “video/x-raw(memory:NVMM),width=(int)5120,height=(int)3840,framerate=15/1,format=(string)NV12” ! nvvidconv ! nvv4l2h264enc ! h264parse ! queue2 ! qtmux ! filesink location=4K_h264HW_nvjpeg.mp4 -e

Hi @abishekj1401, welcome to the NVIDIA developer forums!

JP6.0 is JetPack? Do you uses Jetson Hardware? If so, could you share which one exactly so I can refer you to the experts?

Thanks!