# Dynamic textoverlay using nvivafilter

**URL:** <https://forums.developer.nvidia.com/t/dynamic-textoverlay-using-nvivafilter/194150>\
**Category:** DeepStream SDK\
**Tags:** gstreamer, cuda\
**Created:** [November 5, 2021, 2:01pm UTC](https://forums.developer.nvidia.com/t/dynamic-textoverlay-using-nvivafilter/194150 "2021-11-05T14:01:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mojtabamir962013193](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mojtabamir962013193](https://forums.developer.nvidia.com/u/mojtabamir962013193)\
**Post date:** [November 5, 2021, 2:01pm UTC](https://forums.developer.nvidia.com/t/dynamic-textoverlay-using-nvivafilter/194150/1 "2021-11-05T14:01:32Z")

</div>

I use nvivafilter with nvsample\_cudaprocess.cu to overlay fixed text on jetson nano camera frames. But How can I do it for dynamic textoverlay which is readen from a text file?  
I can’t use gstreamer textoverlay plugin because of high resource cpu.

---

<div class="post-metadata">

**Author:** ![mojtabamir962013193](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mojtabamir962013193](https://forums.developer.nvidia.com/u/mojtabamir962013193)\
**Post date:** [November 5, 2021, 2:57pm UTC](https://forums.developer.nvidia.com/t/dynamic-textoverlay-using-nvivafilter/194150/2 "2021-11-05T14:57:52Z")

</div>

In fact I wanna read a sensor data by uart and show data on every frame of camera. for reading uart data from serial port I need a while loop in nvsample\_cudaprocess.cu file But it makes the camera image stoped and after showing first frame it stops and This is shown in jetson terminal :

‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’’

Setting pipeline to PAUSED …  
Pipeline is live and does not need PREROLL …  
Setting pipeline to PLAYING …  
New clock: GstSystemClock  
GST\_ARGUS: Creating output stream  
CONSUMER: Waiting until producer is connected…  
GST\_ARGUS: Available Sensor modes :  
GST\_ARGUS: 3264 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST\_ARGUS: 3264 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST\_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST\_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST\_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST\_ARGUS: 1280 x 720 FR = 120.000005 fps Duration = 8333333 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST\_ARGUS: Running with following settings:  
Camera index = 0  
Camera mode = 2  
Output Stream W = 1920 H = 1080  
seconds to Run = 0  
Frame Rate = 29.999999  
GST\_ARGUS: Setup Complete, Starting captures for 0 seconds  
GST\_ARGUS: Starting repeat capture requests.  
CONSUMER: Producer has connected; continuing.  
Caught SIGSEGV  
#0 0x0000007fb5cb9e28 in \_GI\_\_poll (fds=0x558e7bcf20, nfds=548511970184, timeout=) at …/sysdeps/unix/sysv/linux/poll.c:41  
#1 0x0000007fb5dc6f58 in () at /usr/lib/aarch64-linux-gnu/libglib-2.0.so.0  
#2 0x000000558e5ef320 in ()  
Spinning. Please run ‘gdb gst-launch-1.0 23080’ to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core

‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’

---

<div class="post-metadata">

**Author:** ![kayccc](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kayccc/32/14043_2.png) [@kayccc](https://forums.developer.nvidia.com/u/kayccc)\
**Post date:** [November 7, 2021, 10:50pm UTC](https://forums.developer.nvidia.com/t/dynamic-textoverlay-using-nvivafilter/194150/4 "2021-11-07T22:50:40Z")

</div>

**There is no update from you for a period, assuming this is not an issue any more.  
Hence we are closing this topic. If need further support, please open a new one.  
Thanks**

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU)**  
**• DeepStream Version**  
**• JetPack Version (valid for Jetson only)**  
**• TensorRT Version**  
**• NVIDIA GPU Driver Version (valid for GPU only)**  
**• Issue Type( questions, new requirements, bugs)**  
**• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)**  
**• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)**

---

<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:** [November 30, 2021, 2:14am UTC](https://forums.developer.nvidia.com/t/dynamic-textoverlay-using-nvivafilter/194150/6 "2021-11-30T02:14:50Z")

</div>

Closed on November 30, 2021, 2:14am UTC

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