Nvv4l2h264enc returns broken frames

We have learnt that imx plugins are being deprecated. However, I have tried the nvv4l2h264enc (and 265 too) plugin today and found that there are a lot of broken frames shown in VLC player (frames are greyed out every 1-2 seconds). When I tried to use gst-launch-1.0 tool to view the stream, the stream terminated after few seconds. It did not happen when I use imx plugins.
May I ask if it is a known issue? I am using Jetson Xavier NX Jetpack 4.4 (L4T 32.3.4).

Cheers,
Max

Can you post your gstreamer pipeline? I believe the v4l2 encoder requires a h264parse element after the encoder.

We are using gstreamer’s gst-rtsp-server libary to start a RTSP service. Our current omx pipeline is

“nvarguscamerasrc ! video/x-raw(memory:NVMM), format=NV12, width=3264, height=2464, framerate=15/1 ! nvvidconv ! video/x-raw(memory:NVMM), format=NV12, width=1920, height=1080, framerate=15/1 ! nvvidconv ! omxh264enc bitrate=10000000 control-rate=4 ! rtph264pay name=pay0 config-interval=1”

I have tried to replace omxh264enc with nvv4l2h264enc and saw broken frames.

Hi,
It looks to be an issue in network bandwidth/instability. Please try to save to a local file:

gst-launch-1.0 nvarguscamerasrc num-buffers=300 ! video/x-raw(memory:NVMM), format=NV12, width=3264, height=2464, framerate=15/1 ! nvvidconv ! video/x-raw(memory:NVMM), format=NV12, width=1920, height=1080, framerate=15/1 ! nvvidconv ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=a.mp4

And check if you observe the issue in video file playback.