# InitNVDEC: Host1x channel open failed

**URL:** <https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206>\
**Category:** Jetson Orin NX\
**Tags:** nvbugs, gstreamer\
**Created:** [June 21, 2024, 2:23am UTC](https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206 "2024-06-21T02:23:36Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![ykuwa](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ykuwa](https://forums.developer.nvidia.com/u/ykuwa)\
**Post date:** [June 21, 2024, 2:23am UTC](https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206/1 "2024-06-21T02:23:36Z")

</div>

Hi, NVIDIA team  
I’m trying to play more than10 videos at the same time. But L4T 36.3.0 can not play them.  
When I used R35.5, it was possible to play more than 20 videos.

8 streams are no problem at the same time.  
But 9th stream has error.

```txt
ubuntu@ubuntu-desktop:~$ gst-launch-1.0 filesrc location=big_buck_bunny_480p_h264.mov ! qtdemux ! h264parse ! nvv4l2decoder ! nvvidconv ! xvimagesink
Setting pipeline to PAUSED ...
Opening in BLOCKING MODE 
Pipeline is PREROLLING ...
NvMMLiteOpen : Block : BlockType = 261 
InitNVDEC: Host1x channel open failed
NVMEDIA: NvMMDecNvVideoCreateParser: 7930: - Failed to get NVDEC Channel handle
NvMMLiteBlockCreate : Block : BlockType = 261 
NVDEC_COMMON: Host1x channel open failed
******tegraH264DecoderCreate 1477 Failed in the API InitNVDEC_safe, calling tegraH264DecoderDestroy******
NVMMLITE_NVVIDEODEC, <cbBeginSequence, 1776> ErrorInfo = VideoErrorInfo_NvVideoDecoderCreate cctx = 0x680512a0
NVMMLITE_NVVIDEODEC, <NvVideoBufferProcessing:6596> video_parser_parse Unsupported Codec 
Stream format not found, dropping the frame
Stream format not found, dropping the frame
NVMMLITE_NVVIDEODEC, <NvMMLiteNvVideoDecDoWork:7100> NVVIDEO Video Dec Unsupported Stream 
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Failed to process frame.
Additional debug info:
/dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/gstv4l2videodec.c(2279): gst_v4l2_video_dec_handle_frame (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
Maybe be due to not enough memory or failing driver
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
NVMMLITE_NVVIDEODEC, <NvVideoBufferProcessing:6596> video_parser_parse Unsupported Codec 
NVMMLITE_NVVIDEODEC, <NvVideoBufferProcessing:6596> video_parser_parse Unsupported Codec 
ERROR: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: Internal data stream error.
Additional debug info:
../gst/isomp4/qtdemux.c(6749): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:qtdemux0:
streaming stopped, reason error (-5)
ERROR: pipeline doesn't want to preroll.
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: No valid frames decoded before end of stream
Additional debug info:
../gst-libs/gst/video/gstvideodecoder.c(1416): gst_video_decoder_sink_event_default (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
no valid frames found
ERROR: pipeline doesn't want to preroll.
malloc_consolidate(): unaligned fastbin chunk detected
Aborted (core dumped)

```

- I use this movie. [https://download.blender.org/peach/bigbuckbunny\_movies/big\_buck\_bunny\_480p\_h264.mov](https://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_h264.mov)
- OrinNX 8GB
- L4T version is

```auto
ubuntu@ubuntu-desktop:~$ dpkg-query --show nvidia-l4t-core
nvidia-l4t-core	36.3.0-20240506102626

```

Best regard

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [June 24, 2024, 2:28am UTC](https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206/3 "2024-06-24T02:28:36Z")

</div>

Hi,  
For information, do you run 10 decoding tasks in different processes? Or 10 decoding threads in single process?

---

<div class="post-metadata">

**Author:** ![ykuwa](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ykuwa](https://forums.developer.nvidia.com/u/ykuwa)\
**Post date:** [June 24, 2024, 2:49am UTC](https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206/4 "2024-06-24T02:49:01Z")

</div>

Run in different processes like this:

```auto
for i in {0..10} ; do
  gst-launch-1.0 filesrc location=big_buck_bunny_480p_h264.mov ! qtdemux ! h264parse ! nvv4l2decoder ! nvvidconv ! xvimagesink &
done

```

8 processes can run, but 2 processes stop with errors.

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [June 24, 2024, 5:45am UTC](https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206/5 "2024-06-24T05:45:47Z")

</div>

Hi,  
Thanks for the information. We will set up r35.5.0 and r36.3 to check.

---

<div class="post-metadata">

**Author:** ![ykuwa](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ykuwa](https://forums.developer.nvidia.com/u/ykuwa)\
**Post date:** [July 1, 2024, 8:29am UTC](https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206/7 "2024-07-01T08:29:33Z")

</div>

Hi DaneLLL,

Did you reproduce the same issue?

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [July 1, 2024, 8:58am UTC](https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206/8 "2024-07-01T08:58:02Z")

</div>

Hi,  
Yes, we can observe the same issue. Are checking it with our team. Will update when there is further finding.

---

<div class="post-metadata">

**Author:** ![ykuwa](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ykuwa](https://forums.developer.nvidia.com/u/ykuwa)\
**Post date:** [July 24, 2024, 8:39am UTC](https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206/9 "2024-07-24T08:39:55Z")

</div>

Hi DaneLLL,

How is the progress on this issue?  
Will it take a long time to resolve?

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [July 24, 2024, 11:22pm UTC](https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206/10 "2024-07-24T23:22:58Z")

</div>

Hi,  
It is under investigation and may take some time. As a quick solution, please create multiple processes.

---

<div class="post-metadata">

**Author:** ![federico\_lanzani](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/federico_lanzani/32/54197_2.png) [@federico\_lanzani](https://forums.developer.nvidia.com/u/federico_lanzani)\
**Post date:** [August 20, 2024, 10:31pm UTC](https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206/11 "2024-08-20T22:31:05Z")

</div>

Hello! Same problem here:

- Jetson OrinNX 16GB
- L4T: nvidia-l4t-core 36.3.0-20240719161631

I’m trying to open multiple rtsp live stream using gstreamer, each on a process, 8 streams works and that’s great, but the 9th stream crashes.

If I use a thread for each stream, it works with at least 12 streams (I have no more rtsp cameras)

Any updates on this issue?

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [August 21, 2024, 12:44am UTC](https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206/12 "2024-08-21T00:44:02Z")

</div>

Hi,  
After investigation, this is considered to be a constraint. Please have multiple decoding threads in each process instead of creating more than 8 processes.

---

<div class="post-metadata">

**Author:** ![OZD](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@OZD](https://forums.developer.nvidia.com/u/OZD)\
**Post date:** [September 9, 2024, 8:19am UTC](https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206/14 "2024-09-09T08:19:10Z")

</div>

Hi DaneLLL,

We observe the same issue with orin NX jetpack 6 and nvidia-l4t-core 36.3.0-20240719161631.  
For us the 8th stream is failing with the same errors.  
Shifting from processes to threads per stream is a change which is too big for us so we’re looking for a different solution.

1. Can I downgrade _nvidia-l4t-core_ to v35 and it will work on jetpack6?
2. Is there any other workaround except for using threads?
3. Is there any planned solution from your side on future release to fix this issue?

Regards,  
Oz

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [September 9, 2024, 8:25am UTC](https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206/15 "2024-09-09T08:25:51Z")

</div>

Hi,  
We have confirmed the constraint is in hardware capability. Please check

> [Jetson AGX Orin FAQ](https://forums.developer.nvidia.com/t/jetson-agx-orin-faq/237459)  
> Q: On Jetpack 6 release, we cannot launch 8+ decoding/encoding processes.

---

<div class="post-metadata">

**Author:** ![OZD](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@OZD](https://forums.developer.nvidia.com/u/OZD)\
**Post date:** [September 9, 2024, 9:02am UTC](https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206/16 "2024-09-09T09:02:04Z")

</div>

Same hardware can easily do 12 on jet pack 5.1.2 so it cannot be hardware limitation.  
Also your suggested workaround to use threads instead of processes points out it is not a HW limitation.

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [September 9, 2024, 11:33am UTC](https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206/20 "2024-09-09T11:33:59Z")

</div>

Hi,  
We think the implementation of Jetpack 5 may have potential issue. If creating more processes than hardware resources can afford, it may not work properly in certain conditions. Implementation of Jetpack 6 is more from the perspective of hardware capability and returns failure when it exceeds hardware resources.

---

<div class="post-metadata">

**Author:** ![OZD](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@OZD](https://forums.developer.nvidia.com/u/OZD)\
**Post date:** [September 9, 2024, 2:04pm UTC](https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206/21 "2024-09-09T14:04:26Z")

</div>

If hardware resources are limited, I don’t fully understand how using threads instead of processes is relevant.

Regardless, this issue is extremely critical for us, as it affects our production environment. We urgently need an option to bypass it.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [September 23, 2024, 2:04pm UTC](https://forums.developer.nvidia.com/t/initnvdec-host1x-channel-open-failed/297206/22 "2024-09-23T14:04:53Z")

</div>

Closed on September 23, 2024, 2:04pm UTC

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