H264 Encoder element freezes when creating gstreamer streaming pipeline.

My FRC Team has been working on developing a custom Vision system for the past 2 years. We used to code on the Jetson TX1, but have made the switch to the newer Jetson Nano. When we tried to create a streaming pipeline on the Nano we would reach a roadblock when trying to use the omxh264enc. When we just ran the pipeline (without the OpenCV Code), we encountered the same problem. Does anyone know how to fix this problem?

Pipeline:

nvidia@nvidia:~/BetaVision/cpp$ gst-launch-1.0 v4l2src device="/dev/video0" ! nvvidconv ! omxh264enc control-rate=2 bitrate=4000000 ! h264parse ! video/x-h264, stream-format=byte-stream ! rtph264pay mtu=1400 ! udpsink host=10.26.1.5 port=5805

Terminal (the code freezes on the last line “H264: Profile = 66, Level = 40”)

nvidia@nvidia:~/BetaVision/cpp$ gst-launch-1.0 v4l2src device="/dev/video0" ! nvvidconv ! omxh264enc control-rate=2 bitrate=4000000 ! h264parse ! video/x-h264, stream-format=byte-stream ! rtph264pay mtu=1400 ! udpsink host=10.26.1.5 port=5805
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Framerate set to : 8 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
H264: Profile = 66, Level = 40

Thank you in advance.

Hi,
Please check if you can follow the steps to launch the camera:
https://devtalk.nvidia.com/default/topic/1057681/jetson-tx1/logitech-c930e-on-jetson-tx1-very-slow-and-choppy-video/post/5363417/#5363417

You may also try v4l2 plugin nvv4l2h264enc. Please share the release version for information.