# Decoding 4k streams causing issues on decoder?

**URL:** <https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619>\
**Category:** DeepStream SDK\
**Created:** [July 14, 2021, 1:37pm UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619 "2021-07-14T13:37:03Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![beefshepherd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@beefshepherd](https://forums.developer.nvidia.com/u/beefshepherd)\
**Post date:** [July 14, 2021, 1:37pm UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/1 "2021-07-14T13:37:03Z")

</div>

I’m currently on latest deepstream version.  
There are issues when the decoder maxes out at 100% for more than 15 streams at streams close to 4k (2304X1296).  
Is there a way to reduce the decoder load somehow, maybe by setting the capabilities property for the nvv4l2decoder to 1920X1080, if yes can you share an example?

On inspecting through gst-inspect found that there are width and height properties available, can this be modified?

Setting streammux to 1920\*1080 didn’t exactly help in my case. Any suggestions?

---

<div class="post-metadata">

**Author:** ![Fiona.Chen](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fiona.chen/32/15508_2.png) [@Fiona.Chen](https://forums.developer.nvidia.com/u/Fiona.Chen)\
**Post date:** [July 15, 2021, 2:01am UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/3 "2021-07-15T02:01:33Z")

</div>

Please provide complete information for your platform.

**• Hardware Platform (Jetson / GPU)**  
**• DeepStream Version**  
**• JetPack Version (valid for Jetson only)**  
**• TensorRT Version**  
**• NVIDIA GPU Driver Version (valid for GPU only)**

---

<div class="post-metadata">

**Author:** ![beefshepherd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@beefshepherd](https://forums.developer.nvidia.com/u/beefshepherd)\
**Post date:** [July 15, 2021, 8:24am UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/4 "2021-07-15T08:24:30Z")

</div>

Hardware Platform: DGPU rtx 3070  
Deepstream Version: 5.1.0  
TensorRT Version: 7.2.2  
Cuda Version: 11.2  
Driver: 460.32.03

---

<div class="post-metadata">

**Author:** ![beefshepherd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@beefshepherd](https://forums.developer.nvidia.com/u/beefshepherd)\
**Post date:** [July 16, 2021, 6:33pm UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/5 "2021-07-16T18:33:34Z")

</div>

@Fiona.Chen any update?

---

<div class="post-metadata">

**Author:** ![Fiona.Chen](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fiona.chen/32/15508_2.png) [@Fiona.Chen](https://forums.developer.nvidia.com/u/Fiona.Chen)\
**Post date:** [July 19, 2021, 2:09am UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/6 "2021-07-19T02:09:43Z")

</div>

What is your camera type? CSI camera, USB camera or IP camera?

Have you measured the GPU performance while running the 4k case?

You can use the command “nvidia-smi dmon” to monitor the GPU performance.

---

<div class="post-metadata">

**Author:** ![beefshepherd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@beefshepherd](https://forums.developer.nvidia.com/u/beefshepherd)\
**Post date:** [July 19, 2021, 1:46pm UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/7 "2021-07-19T13:46:19Z")

</div>

> [@Fiona.Chen](#):
>
> You can use the command “nvidia-smi dmon” to monitor the GPU performance.

They are IP cameras.  
decoder is around 75-80%.

---

<div class="post-metadata">

**Author:** ![Fiona.Chen](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fiona.chen/32/15508_2.png) [@Fiona.Chen](https://forums.developer.nvidia.com/u/Fiona.Chen)\
**Post date:** [July 20, 2021, 1:30am UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/8 "2021-07-20T01:30:04Z")

</div>

According to your pipeline, the decoder only works to decode these encoded streams from IP cameras. There is no use to change other parts of the pipeline. You may need to use cameras which has smaller resolution streams.

---

<div class="post-metadata">

**Author:** ![beefshepherd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@beefshepherd](https://forums.developer.nvidia.com/u/beefshepherd)\
**Post date:** [July 20, 2021, 1:21pm UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/9 "2021-07-20T13:21:37Z")

</div>

@Fiona.Chen yup got what you were trying to tell but is there a way to address it from the device’s end?

Also we’ve noticed issues with decoder regardless of the process being run or not, the following post is something which even I’m facing. The only change being not having the patch on my machine.

> [@GPU decoder unit has been locked on 100% usage](https://forums.developer.nvidia.com/t/gpu-decoder-unit-has-been-locked-on-100-usage/175430):
>
> When i convert some contents with GPU(cuvid, hwupload\_coda filter, nvenc) on ffmpeg, only decode units are locked on 100% usage, even if i killed process. I was using multi processing with nvidia-patch ([GitHub - keylase/nvidia-patch: This patch removes restriction on maximum number of simultaneous NVENC video encoding sessions imposed by Nvidia to consumer-grade GPUs.](https://github.com/keylase/nvidia-patch)) I tried to recovery system with this commends sudo rmmod nvidia\_uvm nvidia\_drm nvidia\_modeset nvidia sudo modprobe nvidia B…

Here’s a snapshot of the issue,

 ![2021-07-20-183925_1199x856_scrot](https://global.discourse-cdn.com/nvidia/original/3X/9/6/969589e7d1414317eefb4afb458a60739cc1ffe9.jpeg)

Any help would be appreciated thanks.

---

<div class="post-metadata">

**Author:** ![Fiona.Chen](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fiona.chen/32/15508_2.png) [@Fiona.Chen](https://forums.developer.nvidia.com/u/Fiona.Chen)\
**Post date:** [July 22, 2021, 10:23am UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/10 "2021-07-22T10:23:09Z")

</div>

Your decoder in GPU0 has been used 100%. So 4k resolution source is overloded. The decoder is ocuppied by the camera, it is no use to do anything with nvstreammux.

Please use other cameras with smaller resolution.

---

<div class="post-metadata">

**Author:** ![beefshepherd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@beefshepherd](https://forums.developer.nvidia.com/u/beefshepherd)\
**Post date:** [July 22, 2021, 12:56pm UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/11 "2021-07-22T12:56:38Z")

</div>

> Also we’ve noticed issues with decoder regardless of the process being run or not, the following post is something which even I’m facing.

On the screenshot attached can you please check them. There were no processes running on GPU 0. But yet the decoder failed to get back to 0 or anything below 100. This was observed on both GPUs. Any idea as to how to see what is blocking the decoder?

---

<div class="post-metadata">

**Author:** ![Fiona.Chen](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fiona.chen/32/15508_2.png) [@Fiona.Chen](https://forums.developer.nvidia.com/u/Fiona.Chen)\
**Post date:** [July 23, 2021, 2:33am UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/12 "2021-07-23T02:33:07Z")

</div>

Do you mean when there is no process running, the decoder is occupied 100%?

---

<div class="post-metadata">

**Author:** ![beefshepherd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@beefshepherd](https://forums.developer.nvidia.com/u/beefshepherd)\
**Post date:** [July 23, 2021, 6:02am UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/13 "2021-07-23T06:02:18Z")

</div>

Yes there are instances where I’ve seen it. Above is a screenshot of it. Only a reboot seems to get it fixed

---

<div class="post-metadata">

**Author:** ![Fiona.Chen](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fiona.chen/32/15508_2.png) [@Fiona.Chen](https://forums.developer.nvidia.com/u/Fiona.Chen)\
**Post date:** [July 23, 2021, 6:04am UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/14 "2021-07-23T06:04:17Z")

</div>

So what is the problem now?

---

<div class="post-metadata">

**Author:** ![beefshepherd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@beefshepherd](https://forums.developer.nvidia.com/u/beefshepherd)\
**Post date:** [July 23, 2021, 7:13am UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/15 "2021-07-23T07:13:00Z")

</div>

My only problem is why does the decoder behave buggy on certain scenarios. I don’t think reboot should be the only way to fix it. Everytime something of this sort happens the remote machine needs to be rebooted. Can this be fixed without having to reboot?

---

<div class="post-metadata">

**Author:** ![Fiona.Chen](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fiona.chen/32/15508_2.png) [@Fiona.Chen](https://forums.developer.nvidia.com/u/Fiona.Chen)\
**Post date:** [July 23, 2021, 7:15am UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/16 "2021-07-23T07:15:52Z")

</div>

We don’t know what is wrong. How can we fix the problem? Is there any clue of the root cause?

---

<div class="post-metadata">

**Author:** ![cjhih43](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@cjhih43](https://forums.developer.nvidia.com/u/cjhih43)\
**Post date:** [July 27, 2021, 5:52am UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/17 "2021-07-27T05:52:54Z")

</div>

Hello, I am a tagged poster’s writer.

> [@GPU decoder unit has been locked on 100% usage](https://forums.developer.nvidia.com/t/gpu-decoder-unit-has-been-locked-on-100-usage/175430):
>
> When i convert some contents with GPU(cuvid, hwupload\_coda filter, nvenc) on ffmpeg, only decode units are locked on 100% usage, even if i killed process. I was using multi processing with nvidia-patch ([GitHub - keylase/nvidia-patch: This patch removes restriction on maximum number of simultaneous NVENC video encoding sessions imposed by Nvidia to consumer-grade GPUs.](https://github.com/keylase/nvidia-patch)) I tried to recovery system with this commends sudo rmmod nvidia\_uvm nvidia\_drm nvidia\_modeset nvidia sudo modprobe nvidia B…

I think we facing similar case on GPU.  
On my guess, throttling are throwable that issue. Because of such packets will facing crash, lost or other troubles with process.

I wondering NVIDIA are figure out this issue. cuz this issue are looks like able outcome in many clients.

---

<div class="post-metadata">

**Author:** ![beefshepherd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@beefshepherd](https://forums.developer.nvidia.com/u/beefshepherd)\
**Post date:** [July 29, 2021, 7:57am UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/18 "2021-07-29T07:57:26Z")

</div>

@Fiona.Chen we’re not sure how to replicate the issue, so far it’s happened only on the rtx cards, as to how to fix the problem are there any commands that can be issued to the gpu to forcefully free up the decoder. Anyway other than nvidia-smi dmon to check why the spike occurs and never frees up. It has been a pain point ever since.

---

<div class="post-metadata">

**Author:** ![Fiona.Chen](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fiona.chen/32/15508_2.png) [@Fiona.Chen](https://forums.developer.nvidia.com/u/Fiona.Chen)\
**Post date:** [July 29, 2021, 9:23am UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/19 "2021-07-29T09:23:41Z")

</div>

> [@beefshepherd](#):
>
> we’re not sure how to replicate the issue, so far it’s happened only on the rtx cards

Have you tried the same case with other cards? There is no special tool for codec only.

---

<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:** [October 9, 2021, 1:05am UTC](https://forums.developer.nvidia.com/t/decoding-4k-streams-causing-issues-on-decoder/183619/21 "2021-10-09T01:05:56Z")

</div>

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