We recently migrated to using the nvv4l2h264enc and nvv4l2h265enc GStreamer encoders from omx, which the documentation describes as deprecated.
However, when recording from a live source using the nvv4l2 encoders, we have noticed that every n-th frame is blurry compared to the preceding and next frame, where n appears to be equal to the iframeinterval that we provide in the GStreamer launch string - the image goes blurry 30/iframeinterval times per second.
gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM),width=4032,height=3040,format=NV12,framerate=30/1' ! nvvidconv ! 'video/x-raw(memory:NVMM),width=3840,height=2160' ! nvv4l2h264enc bitrate=60000000 iframeinterval=30 ! h264parse ! qtmux ! filesink location=/mnt/SSD/test_nvv4l2.mp4 -e
The problem is much more apparent in areas with good lighting where camera noise is less present (i.e. outdoors).
Simply changing to omx resolves the issue. Any suggestions regarding the settings we should be using to obtain an equivalent level of quality with nvv4l2h26Xenc?