InitNVENC: Host1x channel open failed

Hi, I test gstreamer with the below commd:

for i in {0..7} ; do gst-launch-1.0 -v videotestsrc ! video/x-raw, width=1280, height=360, framerate=10/1 ! nvvidconv ! video/x-raw(memory:NVMM), format=(string)NV24 ! nvv4l2h265enc  enable-lossless=false ! fakesink & ;done

when I add the 9th stream, it will not work.

 gst-launch-1.0 -v videotestsrc ! video/x-raw, width=1280, height=360, framerate=10/1 ! nvvidconv ! video/x-raw(memory:NVMM), format=(string)NV24 ! nvv4l2h265enc  enable-lossless=false ! fakesink
0:00:00.000129024 1884939 0xaaaaf8c38e00 INFO                GST_INIT gst.c:592:init_pre: Initializing GStreamer Core Library version 1.20.3
0:00:00.000207040 1884939 0xaaaaf8c38e00 INFO                GST_INIT gst.c:593:init_pre: Using library installed in /usr/lib/aarch64-linux-gnu
0:00:00.000242432 1884939 0xaaaaf8c38e00 INFO                GST_INIT gst.c:611:init_pre: Linux robot-orin-01 5.15.136-tegra #1 SMP PREEMPT Wed Apr 24 19:36:48 PDT 2024 aarch64
0:00:00.000569152 1884939 0xaaaaf8c38e00 INFO                GST_INIT gstmessage.c:129:_priv_gst_message_initialize: init messages
0:00:00.001016768 1884939 0xaaaaf8c38e00 INFO                GST_INIT gstcontext.c:86:_priv_gst_context_initialize: init contexts
0:00:00.001267968 1884939 0xaaaaf8c38e00 INFO      GST_PLUGIN_LOADING gstplugin.c:324:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.001400448 1884939 0xaaaaf8c38e00 INFO      GST_PLUGIN_LOADING gstplugin.c:232:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.001413120 1884939 0xaaaaf8c38e00 INFO      GST_PLUGIN_LOADING gstplugin.c:234:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.001605600 1884939 0xaaaaf8c38e00 INFO            GST_REGISTRY gstregistry.c:1827:ensure_current_registry: reading registry cache: /home/stardust/.cache/gstreamer-1.0/registry.aarch64.bin
0:00:00.015732352 1884939 0xaaaaf8c38e00 INFO            GST_REGISTRY gstregistrybinary.c:683:priv_gst_registry_binary_read_cache: loaded /home/stardust/.cache/gstreamer-1.0/registry.aarch64.bin in 0.014080 seconds
0:00:00.015921888 1884939 0xaaaaf8c38e00 INFO            GST_REGISTRY gstregistry.c:1693:scan_and_update_registry: Validating plugins from registry cache: /home/stardust/.cache/gstreamer-1.0/registry.aarch64.bin
0:00:00.018588160 1884939 0xaaaaf8c38e00 INFO            GST_REGISTRY gstregistry.c:1785:scan_and_update_registry: Registry cache has not changed
0:00:00.018634016 1884939 0xaaaaf8c38e00 INFO            GST_REGISTRY gstregistry.c:1862:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.018662304 1884939 0xaaaaf8c38e00 INFO                GST_INIT gst.c:833:init_post: GLib runtime version: 2.72.4
0:00:00.018678016 1884939 0xaaaaf8c38e00 INFO                GST_INIT gst.c:835:init_post: GLib headers version: 2.72.1
0:00:00.018687584 1884939 0xaaaaf8c38e00 INFO                GST_INIT gst.c:837:init_post: initialized GStreamer successfully
0:00:00.018746784 1884939 0xaaaaf8c38e00 INFO            GST_PIPELINE gstparse.c:344:gst_parse_launch_full: parsing pipeline description 'videotestsrc ! video/x-raw, width=1280, height=360, framerate=10/1 ! nvvidconv ! video/x-raw(memory:NVMM), format=(string)NV24 ! nvv4l2h265enc enable-lossless=false ! fakesink '
0:00:00.020320992 1884939 0xaaaaf8c38e00 INFO      GST_PLUGIN_LOADING gstplugin.c:987:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstvideotestsrc.so" loaded
0:00:00.020380672 1884939 0xaaaaf8c38e00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:489:gst_element_factory_create_with_properties: creating element "videotestsrc"
0:00:00.020761344 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstelement.c:759:gst_element_add_pad:<GstBaseSrc@0xaaaaf8ecbb20> adding pad 'src'
nvbufsurftransform: Could not get EGL display connection
0:00:00.073472992 1884939 0xaaaaf8c38e00 INFO      GST_PLUGIN_LOADING gstplugin.c:987:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvvidconv.so" loaded
0:00:00.073518816 1884939 0xaaaaf8c38e00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:489:gst_element_factory_create_with_properties: creating element "nvvidconv"
0:00:00.074064096 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstelement.c:759:gst_element_add_pad:<GstBaseTransform@0xaaaaf8f67b70> adding pad 'sink'
0:00:00.074098656 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstelement.c:759:gst_element_add_pad:<GstBaseTransform@0xaaaaf8f67b70> adding pad 'src'
0:00:00.105022688 1884939 0xaaaaf8c38e00 INFO      GST_PLUGIN_LOADING gstplugin.c:987:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvvideo4linux2.so" loaded
0:00:00.105701728 1884939 0xaaaaf8c38e00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:489:gst_element_factory_create_with_properties: creating element "nvv4l2h265enc"
0:00:00.106092128 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstelement.c:759:gst_element_add_pad:<GstVideoEncoder@0xaaaaf8f72240> adding pad 'sink'
0:00:00.106125696 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstelement.c:759:gst_element_add_pad:<GstVideoEncoder@0xaaaaf8f72240> adding pad 'src'
0:00:00.107288832 1884939 0xaaaaf8c38e00 INFO      GST_PLUGIN_LOADING gstplugin.c:987:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstcoreelements.so" loaded
0:00:00.107315840 1884939 0xaaaaf8c38e00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:489:gst_element_factory_create_with_properties: creating element "fakesink"
0:00:00.107480384 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstelement.c:759:gst_element_add_pad:<GstBaseSink@0xaaaaf8c4c3d0> adding pad 'sink'
0:00:00.107519584 1884939 0xaaaaf8c38e00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:489:gst_element_factory_create_with_properties: creating element "pipeline"
0:00:00.107673376 1884939 0xaaaaf8c38e00 INFO            GST_PIPELINE gst/parse/grammar.y:683:gst_parse_perform_link: linking some pad of GstVideoTestSrc named videotestsrc0 to some pad of Gstnvvconv named nvvconv0 (0/0) with caps "video/x-raw, width=(int)1280, height=(int)360, framerate=(fraction)10/1"
0:00:00.107690656 1884939 0xaaaaf8c38e00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:489:gst_element_factory_create_with_properties: creating element "capsfilter"
0:00:00.107768352 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstelement.c:759:gst_element_add_pad:<GstBaseTransform@0xaaaaf8f802c0> adding pad 'sink'
0:00:00.107790752 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstelement.c:759:gst_element_add_pad:<GstBaseTransform@0xaaaaf8f802c0> adding pad 'src'
0:00:00.107808672 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2069:gst_bin_get_state_func:<pipeline0> getting state
0:00:00.107836832 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2806:gst_element_continue_state:<capsfilter0> completed state change to NULL
0:00:00.107860064 1884939 0xaaaaf8c38e00 INFO               GST_EVENT gstevent.c:1660:gst_event_new_reconfigure: creating reconfigure event
0:00:00.107878080 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element videotestsrc0:(any) to element capsfilter0:sink
0:00:00.107888960 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstelement.c:1016:gst_element_get_static_pad: found pad capsfilter0:sink
0:00:00.107898912 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstutils.c:1632:prepare_link_maybe_ghosting: videotestsrc0 and capsfilter0 in same bin, no need for ghost pads
0:00:00.107917984 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstpad.c:2382:gst_pad_link_prepare: trying to link videotestsrc0:src and capsfilter0:sink
0:00:00.107944384 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstpad.c:4357:gst_pad_peer_query:<capsfilter0:src> pad has no peer
0:00:00.107968544 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstpad.c:2590:gst_pad_link_full: linked videotestsrc0:src and capsfilter0:sink, successful
0:00:00.107975712 1884939 0xaaaaf8c38e00 INFO               GST_EVENT gstevent.c:1660:gst_event_new_reconfigure: creating reconfigure event
0:00:00.107983744 1884939 0xaaaaf8c38e00 INFO               GST_EVENT gstpad.c:5946:gst_pad_send_event_unchecked:<videotestsrc0:src> Received event on flushing pad. Discarding
0:00:00.108000736 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element capsfilter0:src to element nvvconv0:(any)
0:00:00.108008608 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstelement.c:1016:gst_element_get_static_pad: found pad capsfilter0:src
0:00:00.108020736 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstutils.c:1079:gst_pad_check_link: trying to link capsfilter0:src and nvvconv0:sink
0:00:00.108053888 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstpad.c:4357:gst_pad_peer_query:<nvvconv0:src> pad has no peer
0:00:00.108157216 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstutils.c:1632:prepare_link_maybe_ghosting: capsfilter0 and nvvconv0 in same bin, no need for ghost pads
0:00:00.108175008 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstpad.c:2382:gst_pad_link_prepare: trying to link capsfilter0:src and nvvconv0:sink
0:00:00.108207040 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstpad.c:4357:gst_pad_peer_query:<nvvconv0:src> pad has no peer
0:00:00.108268000 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstpad.c:2590:gst_pad_link_full: linked capsfilter0:src and nvvconv0:sink, successful
0:00:00.108276288 1884939 0xaaaaf8c38e00 INFO               GST_EVENT gstevent.c:1660:gst_event_new_reconfigure: creating reconfigure event
0:00:00.108286912 1884939 0xaaaaf8c38e00 INFO               GST_EVENT gstpad.c:5946:gst_pad_send_event_unchecked:<capsfilter0:src> Received event on flushing pad. Discarding
0:00:00.108314368 1884939 0xaaaaf8c38e00 INFO            GST_PIPELINE gst/parse/grammar.y:683:gst_parse_perform_link: linking some pad of Gstnvvconv named nvvconv0 to some pad of nvv4l2h265enc named nvv4l2h265enc0 (0/0) with caps "video/x-raw(memory:NVMM), format=(string)NV24"
0:00:00.108327008 1884939 0xaaaaf8c38e00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:489:gst_element_factory_create_with_properties: creating element "capsfilter"
0:00:00.108351520 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstelement.c:759:gst_element_add_pad:<GstBaseTransform@0xaaaaf8f80600> adding pad 'sink'
0:00:00.108365344 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstelement.c:759:gst_element_add_pad:<GstBaseTransform@0xaaaaf8f80600> adding pad 'src'
0:00:00.108377792 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2069:gst_bin_get_state_func:<pipeline0> getting state
0:00:00.108399584 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2806:gst_element_continue_state:<capsfilter1> completed state change to NULL
0:00:00.108410976 1884939 0xaaaaf8c38e00 INFO               GST_EVENT gstevent.c:1660:gst_event_new_reconfigure: creating reconfigure event
0:00:00.108422848 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element nvvconv0:(any) to element capsfilter1:sink
0:00:00.108430816 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstelement.c:1016:gst_element_get_static_pad: found pad capsfilter1:sink
0:00:00.108438656 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstutils.c:1632:prepare_link_maybe_ghosting: nvvconv0 and capsfilter1 in same bin, no need for ghost pads
0:00:00.108449632 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstpad.c:2382:gst_pad_link_prepare: trying to link nvvconv0:src and capsfilter1:sink
0:00:00.108588384 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstpad.c:4357:gst_pad_peer_query:<capsfilter1:src> pad has no peer
0:00:00.108609408 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstpad.c:2590:gst_pad_link_full: linked nvvconv0:src and capsfilter1:sink, successful
0:00:00.108615136 1884939 0xaaaaf8c38e00 INFO               GST_EVENT gstevent.c:1660:gst_event_new_reconfigure: creating reconfigure event
0:00:00.108620608 1884939 0xaaaaf8c38e00 INFO               GST_EVENT gstpad.c:5946:gst_pad_send_event_unchecked:<nvvconv0:src> Received event on flushing pad. Discarding
0:00:00.108632064 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element capsfilter1:src to element nvv4l2h265enc0:(any)
0:00:00.108638368 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstelement.c:1016:gst_element_get_static_pad: found pad capsfilter1:src
0:00:00.108648192 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstutils.c:1079:gst_pad_check_link: trying to link capsfilter1:src and nvv4l2h265enc0:sink
0:00:00.108802144 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstpad.c:4357:gst_pad_peer_query:<nvv4l2h265enc0:src> pad has no peer
0:00:00.108836736 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstutils.c:1632:prepare_link_maybe_ghosting: capsfilter1 and nvv4l2h265enc0 in same bin, no need for ghost pads
0:00:00.108847456 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstpad.c:2382:gst_pad_link_prepare: trying to link capsfilter1:src and nvv4l2h265enc0:sink
0:00:00.108967072 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstpad.c:4357:gst_pad_peer_query:<nvv4l2h265enc0:src> pad has no peer
0:00:00.108987072 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstpad.c:2590:gst_pad_link_full: linked capsfilter1:src and nvv4l2h265enc0:sink, successful
0:00:00.108995072 1884939 0xaaaaf8c38e00 INFO               GST_EVENT gstevent.c:1660:gst_event_new_reconfigure: creating reconfigure event
0:00:00.109000992 1884939 0xaaaaf8c38e00 INFO               GST_EVENT gstpad.c:5946:gst_pad_send_event_unchecked:<capsfilter1:src> Received event on flushing pad. Discarding
0:00:00.109017088 1884939 0xaaaaf8c38e00 INFO            GST_PIPELINE gst/parse/grammar.y:683:gst_parse_perform_link: linking some pad of nvv4l2h265enc named nvv4l2h265enc0 to some pad of GstFakeSink named fakesink0 (0/0) with caps "(NULL)"
0:00:00.109026208 1884939 0xaaaaf8c38e00 INFO        GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element nvv4l2h265enc0:(any) to element fakesink0:(any)
0:00:00.109035040 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstutils.c:1079:gst_pad_check_link: trying to link nvv4l2h265enc0:src and fakesink0:sink
0:00:00.109050400 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstutils.c:1632:prepare_link_maybe_ghosting: nvv4l2h265enc0 and fakesink0 in same bin, no need for ghost pads
0:00:00.109058944 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstpad.c:2382:gst_pad_link_prepare: trying to link nvv4l2h265enc0:src and fakesink0:sink
0:00:00.109067456 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstpad.c:2590:gst_pad_link_full: linked nvv4l2h265enc0:src and fakesink0:sink, successful
0:00:00.109071712 1884939 0xaaaaf8c38e00 INFO               GST_EVENT gstevent.c:1660:gst_event_new_reconfigure: creating reconfigure event
0:00:00.109076128 1884939 0xaaaaf8c38e00 INFO               GST_EVENT gstpad.c:5946:gst_pad_send_event_unchecked:<nvv4l2h265enc0:src> Received event on flushing pad. Discarding
Setting pipeline to PAUSED ...
0:00:00.109210240 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2479:gst_bin_element_set_state:<fakesink0> current NULL pending VOID_PENDING, desired next READY
0:00:00.109222048 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2806:gst_element_continue_state:<fakesink0> completed state change to READY
0:00:00.109229120 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<fakesink0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.109259904 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2928:gst_bin_change_state_func:<pipeline0> child 'fakesink0' changed state to 2(READY) successfully
0:00:00.109269696 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2479:gst_bin_element_set_state:<nvv4l2h265enc0> current NULL pending VOID_PENDING, desired next READY
Opening in BLOCKING MODE 
0:00:00.156175584 1884939 0xaaaaf8c38e00 INFO                    v4l2 v4l2_calls.c:637:gst_v4l2_open:<nvv4l2h265enc0:sink> Opened device '' (/dev/v4l2-nvenc) successfully
0:00:00.156210400 1884939 0xaaaaf8c38e00 INFO                    v4l2 v4l2_calls.c:738:gst_v4l2_dup:<nvv4l2h265enc0:src> Cloned device '' (/dev/v4l2-nvenc) successfully
0:00:00.156696128 1884939 0xaaaaf8c38e00 INFO                    v4l2 gstv4l2object.c:1302:gst_v4l2_object_fill_format_list:<nvv4l2h265enc0:sink> got 6 format(s):
0:00:00.156719776 1884939 0xaaaaf8c38e00 INFO                    v4l2 gstv4l2object.c:1306:gst_v4l2_object_fill_format_list:<nvv4l2h265enc0:sink>   YM12
0:00:00.156727392 1884939 0xaaaaf8c38e00 INFO                    v4l2 gstv4l2object.c:1306:gst_v4l2_object_fill_format_list:<nvv4l2h265enc0:sink>   PM10
0:00:00.156733792 1884939 0xaaaaf8c38e00 INFO                    v4l2 gstv4l2object.c:1306:gst_v4l2_object_fill_format_list:<nvv4l2h265enc0:sink>   NM24
0:00:00.156739360 1884939 0xaaaaf8c38e00 INFO                    v4l2 gstv4l2object.c:1306:gst_v4l2_object_fill_format_list:<nvv4l2h265enc0:sink>   NM12
0:00:00.156744960 1884939 0xaaaaf8c38e00 INFO                    v4l2 gstv4l2object.c:1306:gst_v4l2_object_fill_format_list:<nvv4l2h265enc0:sink>   NV10
0:00:00.156749440 1884939 0xaaaaf8c38e00 INFO                    v4l2 gstv4l2object.c:1306:gst_v4l2_object_fill_format_list:<nvv4l2h265enc0:sink>   YM24
0:00:00.156831712 1884939 0xaaaaf8c38e00 INFO                    v4l2 gstv4l2object.c:4729:gst_v4l2_object_probe_caps:<nvv4l2h265enc0:sink> probed caps: video/x-raw, format=(string)I420, width=(int)[ 48, 4096 ], height=(int)[ 48, 4096 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)P010_10LE, width=(int)[ 48, 4096 ], height=(int)[ 48, 4096 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)NV24, width=(int)[ 48, 4096 ], height=(int)[ 48, 4096 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string)NV12, width=(int)[ 48, 4096 ], height=(int)[ 48, 4096 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:00.156850432 1884939 0xaaaaf8c38e00 INFO                    v4l2 gstv4l2object.c:1302:gst_v4l2_object_fill_format_list:<nvv4l2h265enc0:src> got 3 format(s):
0:00:00.156857856 1884939 0xaaaaf8c38e00 INFO                    v4l2 gstv4l2object.c:1306:gst_v4l2_object_fill_format_list:<nvv4l2h265enc0:src>   AV10
0:00:00.156862720 1884939 0xaaaaf8c38e00 INFO                    v4l2 gstv4l2object.c:1306:gst_v4l2_object_fill_format_list:<nvv4l2h265enc0:src>   H265
0:00:00.156867328 1884939 0xaaaaf8c38e00 INFO                    v4l2 gstv4l2object.c:1306:gst_v4l2_object_fill_format_list:<nvv4l2h265enc0:src>   H264
0:00:00.156888960 1884939 0xaaaaf8c38e00 WARN                    v4l2 gstv4l2object.c:4671:gst_v4l2_object_probe_caps:<nvv4l2h265enc0:src> Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
0:00:00.156919776 1884939 0xaaaaf8c38e00 INFO                    v4l2 gstv4l2object.c:4729:gst_v4l2_object_probe_caps:<nvv4l2h265enc0:src> probed caps: video/x-h265, stream-format=(string)byte-stream, alignment=(string)au, width=(int)[ 180, 7680 ], height=(int)[ 180, 7680 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:00.156935904 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2806:gst_element_continue_state:<nvv4l2h265enc0> completed state change to READY
0:00:00.156946464 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<nvv4l2h265enc0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.156971200 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2928:gst_bin_change_state_func:<pipeline0> child 'nvv4l2h265enc0' changed state to 2(READY) successfully
0:00:00.156994848 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2479:gst_bin_element_set_state:<capsfilter1> current NULL pending VOID_PENDING, desired next READY
0:00:00.157004096 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2806:gst_element_continue_state:<capsfilter1> completed state change to READY
0:00:00.157010080 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<capsfilter1> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.157022272 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2928:gst_bin_change_state_func:<pipeline0> child 'capsfilter1' changed state to 2(READY) successfully
0:00:00.157034560 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2479:gst_bin_element_set_state:<nvvconv0> current NULL pending VOID_PENDING, desired next READY
0:00:00.157044256 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2806:gst_element_continue_state:<nvvconv0> completed state change to READY
0:00:00.157050080 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<nvvconv0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.157074304 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2928:gst_bin_change_state_func:<pipeline0> child 'nvvconv0' changed state to 2(READY) successfully
0:00:00.157086464 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2479:gst_bin_element_set_state:<capsfilter0> current NULL pending VOID_PENDING, desired next READY
0:00:00.157094880 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2806:gst_element_continue_state:<capsfilter0> completed state change to READY
0:00:00.157102560 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<capsfilter0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.157111968 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2928:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 2(READY) successfully
0:00:00.157120544 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2479:gst_bin_element_set_state:<videotestsrc0> current NULL pending VOID_PENDING, desired next READY
0:00:00.157129824 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2806:gst_element_continue_state:<videotestsrc0> completed state change to READY
0:00:00.157137312 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<videotestsrc0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.157146880 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2928:gst_bin_change_state_func:<pipeline0> child 'videotestsrc0' changed state to 2(READY) successfully
0:00:00.157164384 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2778:gst_element_continue_state:<pipeline0> committing state from NULL to READY, pending PAUSED, next PAUSED
0:00:00.157172416 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<pipeline0> notifying about state-changed NULL to READY (PAUSED pending)
0:00:00.157214912 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2786:gst_element_continue_state:<pipeline0> continue state change READY to PAUSED, final PAUSED
0:00:00.157242976 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2479:gst_bin_element_set_state:<fakesink0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.157270016 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2935:gst_bin_change_state_func:<pipeline0> child 'fakesink0' is changing state asynchronously to PAUSED
0:00:00.157280544 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2479:gst_bin_element_set_state:<nvv4l2h265enc0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.157300608 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2806:gst_element_continue_state:<nvv4l2h265enc0> completed state change to PAUSED
0:00:00.157308768 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<nvv4l2h265enc0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.157322016 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2928:gst_bin_change_state_func:<pipeline0> child 'nvv4l2h265enc0' changed state to 3(PAUSED) successfully
0:00:00.157332064 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2479:gst_bin_element_set_state:<capsfilter1> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.157345920 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2806:gst_element_continue_state:<capsfilter1> completed state change to PAUSED
0:00:00.157354496 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<capsfilter1> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.157362496 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2928:gst_bin_change_state_func:<pipeline0> child 'capsfilter1' changed state to 3(PAUSED) successfully
0:00:00.157371648 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2479:gst_bin_element_set_state:<nvvconv0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.157386048 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2806:gst_element_continue_state:<nvvconv0> completed state change to PAUSED
0:00:00.157393408 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<nvvconv0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.157402880 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2928:gst_bin_change_state_func:<pipeline0> child 'nvvconv0' changed state to 3(PAUSED) successfully
0:00:00.157411488 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2479:gst_bin_element_set_state:<capsfilter0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.157424128 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2806:gst_element_continue_state:<capsfilter0> completed state change to PAUSED
0:00:00.157431552 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<capsfilter0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.157443904 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2928:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 3(PAUSED) successfully
0:00:00.157452512 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2479:gst_bin_element_set_state:<videotestsrc0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.157483136 1884939 0xaaaaf8c38e00 INFO                 basesrc gstbasesrc.c:1430:gst_base_src_do_seek:<videotestsrc0> seeking: time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999
0:00:00.157623936 1884939 0xaaaaf8c38e00 INFO                    task gsttask.c:516:gst_task_set_lock: setting stream lock 0xaaaaf8ebc200 on task 0xaaaaf8fb4050
0:00:00.157636896 1884939 0xaaaaf8c38e00 INFO                GST_PADS gstpad.c:6291:gst_pad_start_task:<videotestsrc0:src> created task 0xaaaaf8fb4050
0:00:00.157806816 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2806:gst_element_continue_state:<videotestsrc0> completed state change to PAUSED
0:00:00.157821920 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstelement.c:2706:_priv_gst_element_state_changed:<videotestsrc0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.157836704 1884939 0xaaaaf8c38e00 INFO              GST_STATES gstbin.c:2928:gst_bin_change_state_func:<pipeline0> child 'videotestsrc0' changed state to 3(PAUSED) successfully
0:00:00.157848672 1884939 0xaaaaf8c38e00 INFO                pipeline gstpipeline.c:533:gst_pipeline_change_state:<pipeline0> pipeline is not live
Pipeline is PREROLLING ...
0:00:00.157911552 1884939 0xaaaaf8f85c60 INFO        GST_ELEMENT_PADS gstelement.c:1013:gst_element_get_static_pad: no such pad 'sink' in element "videotestsrc0"
0:00:00.157953408 1884939 0xaaaaf8f85c60 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<videotestsrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:00.158514880 1884939 0xaaaaf8f85c60 INFO               GST_EVENT gstevent.c:892:gst_event_new_caps: creating caps event video/x-raw, format=(string)RGBA, width=(int)1280, height=(int)360, framerate=(fraction)10/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive
0:00:00.158633888 1884939 0xaaaaf8f85c60 INFO           basetransform gstbasetransform.c:1325:gst_base_transform_setcaps:<capsfilter0> reuse caps
0:00:00.158672800 1884939 0xaaaaf8f85c60 INFO               GST_EVENT gstevent.c:892:gst_event_new_caps: creating caps event video/x-raw, format=(string)RGBA, width=(int)1280, height=(int)360, framerate=(fraction)10/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive
0:00:00.158976128 1884939 0xaaaaf8f85c60 INFO               GST_EVENT gstevent.c:892:gst_event_new_caps: creating caps event video/x-raw(memory:NVMM), width=(int)1280, height=(int)360, framerate=(fraction)10/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, format=(string)NV24
0:00:00.159050176 1884939 0xaaaaf8f85c60 INFO           basetransform gstbasetransform.c:1325:gst_base_transform_setcaps:<capsfilter1> reuse caps
0:00:00.159072192 1884939 0xaaaaf8f85c60 INFO               GST_EVENT gstevent.c:892:gst_event_new_caps: creating caps event video/x-raw(memory:NVMM), width=(int)1280, height=(int)360, framerate=(fraction)10/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, format=(string)NV24
0:00:00.159259136 1884939 0xaaaaf8f85c60 INFO               GST_EVENT gstevent.c:892:gst_event_new_caps: creating caps event video/x-h265, stream-format=(string)byte-stream, alignment=(string)au, profile=(string)NULL, level=(string)NULL, width=(int)1280, height=(int)360, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)10/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, chroma-site=(string)jpeg, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
0:00:00.159449408 1884939 0xaaaaf8f85c60 INFO                    v4l2 gstv4l2object.c:3216:gst_v4l2_object_setup_pool:<nvv4l2h265enc0:src> accessing buffers via mode 2
0:00:00.159592160 1884939 0xaaaaf8f85c60 INFO          v4l2bufferpool gstv4l2bufferpool.c:827:gst_v4l2_buffer_pool_set_config:<nvv4l2h265enc0:pool:src> increasing minimum buffers to 2
0:00:00.159607808 1884939 0xaaaaf8f85c60 INFO          v4l2bufferpool gstv4l2bufferpool.c:841:gst_v4l2_buffer_pool_set_config:<nvv4l2h265enc0:pool:src> reducing maximum buffers to 64
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = video/x-raw, format=(string)RGBA, width=(int)1280, height=(int)360, framerate=(fraction)10/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive
0:00:00.159614752 1884939 0xaaaaf8f85c60 INFO          v4l2bufferpool gstv4l2bufferpool.c:859:gst_v4l2_buffer_pool_set_config:<nvv4l2h265enc0:pool:src> can't allocate, setting maximum to minimum
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)RGBA, width=(int)1280, height=(int)360, framerate=(fraction)10/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1280, height=(int)360, framerate=(fraction)10/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, format=(string)NV24
0:00:00.159677664 1884939 0xaaaaf8f85c60 INFO          v4l2bufferpool gstv4l2bufferpool.c:841:gst_v4l2_buffer_pool_set_config:<nvv4l2h265enc0:pool:src> reducing maximum buffers to 64
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1280, height=(int)360, framerate=(fraction)10/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, format=(string)NV24
0:00:00.159685536 1884939 0xaaaaf8f85c60 INFO          v4l2bufferpool gstv4l2bufferpool.c:859:gst_v4l2_buffer_pool_set_config:<nvv4l2h265enc0:pool:src> can't allocate, setting maximum to minimum
/GstPipeline:pipeline0/nvv4l2h265enc:nvv4l2h265enc0.GstPad:src: caps = video/x-h265, stream-format=(string)byte-stream, alignment=(string)au, profile=(string)NULL, level=(string)NULL, width=(int)1280, height=(int)360, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)10/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, chroma-site=(string)jpeg, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
0:00:00.159715136 1884939 0xaaaaf8f85c60 WARN                    v4l2 gstv4l2object.c:3710:gst_v4l2_object_set_format_full:<nvv4l2h265enc0:sink> Unknown colorimetry tranfer 16
/GstPipeline:pipeline0/GstFakeSink:fakesink0.GstPad:sink: caps = video/x-h265, stream-format=(string)byte-stream, alignment=(string)au, profile=(string)NULL, level=(string)NULL, width=(int)1280, height=(int)360, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)10/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, chroma-site=(string)jpeg, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
NvMMLiteOpen : Block : BlockType = 8 
Redistribute latency...
0:00:00.159919360 1884939 0xaaaaf8c38e00 INFO               GST_EVENT gstevent.c:1530:gst_event_new_latency: creating latency event 0:00:00.000000000
0:00:00.159943968 1884939 0xaaaaf8c38e00 INFO                     bin gstbin.c:2759:gst_bin_do_latency_func:<pipeline0> configured latency of 0:00:00.000000000
===== NvVideo: NVENC =====
InitNVENC: Host1x channel open failed
free(): double free detected in tcache 2

please see-also Topic 297206. it’s not root cause yet.

I also tested encoder with multimedia api, and there is the same bug.
I think the source issue may be libnvv4l2