Gstreamer video record limitation fix

Hi All,

Currently testing Gstreamer command to record video on the Jetson TX2 NX, but current command is only producing 20 second video file. Here is the gstreamer command being used:

gst-launch-1.0 nvarguscamerasrc sensor-id=0 num-buffers=1200 ! ‘video/x-raw(memory:NVMM), width=3840, height=2160, framerate=60/1’ ! nvtee ! omxh264enc bitrate=2000000 ! qtmux ! filesink location=video.mp4

Any explanation for the record limitation? Replacement command to test fix would be helpful.

Thanks in advance.

Hi,
Please not to set num-buffers=1200 in the command:

gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM), width=3840, height=2160, framerate=60/1' ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=video.mp4

And we have deprecated omx plugins. Please use nvv4l2h264enc plugin. For saving to mp4, please add -e so that EoS is sent in termination.

Ok thanks for your prompt reply! We’ll try this today and circle back.

Thanks again @DaneLLL everything worked perfectly. Wanted to circle back with that information. Greatly appreciate the support.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.