Jetson Orin NX R35.3.1: Official `video_encode` sample crashes when using `V4L2_ENC_CMD_STOP`

Disclosure: Drafted with AI assistance (ChatGPT). Reproduced with a locally compiled, unmodified NVIDIA Multimedia API sample.

Environment: Jetson Orin NX, Jetson Linux R35.3.1, Jetson Multimedia API samples/01_video_encode.

Reproduction:

Build NVIDIA’s unmodified samples/01_video_encode application from the installed Jetson Multimedia API.

gst-launch-1.0 -q -e \
  videotestsrc num-buffers=90 pattern=ball ! \
  'video/x-raw,width=320,height=240,framerate=30/1,format=I420' ! \
  filesink location=/tmp/input.yuv

ENC=/path/to/compiled/video_encode

"$ENC" /tmp/input.yuv 320 240 H264 \
  /tmp/output.h264 \
  -p high -nbf 2 -nrf 2 -ifi 30 --enc-cmd

Observed: The application reports:

Capture Plane:Error while DQing buffer: Broken pipe
Segmentation fault

Process exit status: 139.

Without --enc-cmd, the application exits successfully, although it exhibits the separately reported trailing B-frame loss (88/90 frames).

The sample calls NvVideoEncoder::setEncoderCommand(V4L2_ENC_CMD_STOP, 1).

Expected: The documented encoder STOP path should drain pending output or return a recoverable error without crashing.

Question: Is V4L2_ENC_CMD_STOP supported on this Jetson Linux release? Is the broken-pipe/segmentation-fault behavior a known sample or driver issue?

Hi,
Certain issues are found and fixed in later releases. We have laterJetpack 6.2.3 and 7.2.1 for Orin series. Please upgrade and try again.