Raise "failed to submit command buffer, unable to begin stream" when encode H265

Hardware Platform (Jetson / GPU) : Jetson AGX Orin 64G
JetPack Version: Jetpack sdk 5.1.2, L4T version 35.4.1
Hi,
I tried to use NvV4l2ElementPlane to encode my video to H265 which worked fine at most of time. But it failed today and raise error:


And it also report error log in syslog:
image
Then I reboot system and everything back to normal.
Would you please tell me what happend there?
Thanks!
BR/Tim

*** Please note that this reply is generated by LLM automatically ***

Based on the provided context, I’ll try to help you understand what might have happened.

Firstly, it’s great that you’re using the Jetson AGX Orin 64G with Jetpack SDK 5.1.2 and L4T version 35.4.1. This setup is a powerful combination for AI and computer vision applications.

Now, let’s dive into the issue you’re facing. You’re using the NvV4l2ElementPlane to encode your video to H265, which is a common use case. However, you’ve encountered an error that caused the encoding to fail.

The error log in syslog doesn’t provide explicit information about the cause of the issue. However, I can try to provide some insights based on the context.

One possible reason for the failure could be related to the H265 encoding process itself. H265 is a complex encoding format that requires significant computational resources. It’s possible that the system experienced a temporary resource constraint or a glitch that caused the encoding to fail.

Another possibility is that there might be an issue with the V4L2 driver or the NvV4l2ElementPlane implementation. Although you’re using a relatively recent version of Jetpack SDK and L4T, it’s still possible that there might be some underlying issues or bugs that could cause the encoding to fail.

The fact that rebooting the system resolved the issue suggests that it might be a transient problem. However, it’s essential to investigate further to determine the root cause of the issue.

To help you troubleshoot, I’d like to ask a few questions:

  1. Can you provide more details about the video content you’re trying to encode? Is it a specific type of video or a particular resolution?
  2. Have you made any changes to the system configuration or software recently?
  3. Are you using any other components or plugins in your pipeline that could be interacting with the NvV4l2ElementPlane?

In comparison to other components and platforms mentioned in the context, it’s worth noting that:

  • The ONVIF S-profile camera and Amcrest camera both support H264 and H265 encoding formats, but they are not directly related to the Jetson AGX Orin 64G or NvV4l2ElementPlane.
  • The gst-launch-1.0 command-line tool is used for launching GStreamer pipelines, which might be relevant if you’re using GStreamer in your application.
  • The Jetson developer kit and Jetson Linux release package are related to the Jetson platform, but they are not directly related to the specific issue you’re facing.

If you provide more information about your setup and the error, I’ll do my best to help you troubleshoot the issue.

Hi,

  1. Can you provide more details about the video content you’re trying to encode? Is it a specific type of video or a particular resolution?
    A: Video content come from camera, Resolution is 1920 x 1536;
  2. Have you made any changes to the system configuration or software recently?
    A: No.
  3. Are you using any other components or plugins in your pipeline that could be interacting with the NvV4l2ElementPlane?
    ANo, just call dqBuffer:

Hi,
Please try the commands and see if hardware encoding works in gstreamer:

$ rm .cache/gstreamer-1.0/registry.aarch64.bin
$ gst-launch-1.0 -v videotestsrc num-buffers=150 is-live=1 ! video/x-raw,width=1920,height=1536,format=NV12 ! nvvidconv ! nvv4l2h265enc ! fpsdisplaysink text-overlay=0 video-sink=fakesink