# Deepstream msgbroker/msgconverter not working

**URL:** <https://forums.developer.nvidia.com/t/deepstream-msgbroker-msgconverter-not-working/300592>\
**Category:** DeepStream SDK\
**Created:** [July 21, 2024, 10:57am UTC](https://forums.developer.nvidia.com/t/deepstream-msgbroker-msgconverter-not-working/300592 "2024-07-21T10:57:38Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![erjunsheng](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@erjunsheng](https://forums.developer.nvidia.com/u/erjunsheng)\
**Post date:** [July 21, 2024, 10:57am UTC](https://forums.developer.nvidia.com/t/deepstream-msgbroker-msgconverter-not-working/300592/1 "2024-07-21T10:57:38Z")

</div>

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU)**  
Jetson Orin NX  
**• DeepStream Version**  
DeepStream 7.0  
**• JetPack Version (valid for Jetson only)**  
JetPack 6.0  
**• TensorRT Version**  
TensorRT 8.6.2.3  
**• NVIDIA GPU Driver Version (valid for GPU only)**  
NVIDIA UNIX Open Kernel Module for aarch64 540.3.0  
**• Issue Type( questions, new requirements, bugs)**  
I tried to add msgbroker and msgconv to my config, and want it to send message about detection result. Deepstream runs but I didn’t receive the message and I can’t find the problem. Here’s my app config, mqtt config, and msgconv config

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/9/e/6/9e670efecaff527eeda8c64bcc6f1f1cbd286efe.png)

![image](https://global.discourse-cdn.com/nvidia/original/4X/2/1/3/213c7fe90326d0194b1c24a89ff49d8327c17e56.png)

![image](https://global.discourse-cdn.com/nvidia/original/4X/9/5/3/95324215bbd3c7ad0e3b8374893370a5c139f921.png)

mqtt seems working when I run deepstream-app -c deepstream\_app\_config.txt

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/e/b/c/ebcf3088f593d0f53e2970ea75b853278bd3ae32.png)  
I guess I set my msgconv config or msgbroker config wrong but I have no idea how to fix it.  
Could someone help me with this? Thank you.

---

<div class="post-metadata">

**Author:** ![fanzh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fanzh/32/115955_2.png) [@fanzh](https://forums.developer.nvidia.com/u/fanzh)\
**Post date:** [July 22, 2024, 2:32am UTC](https://forums.developer.nvidia.com/t/deepstream-msgbroker-msgconverter-not-working/300592/3 "2024-07-22T02:32:34Z")

</div>

you did not set msg-conv-msg2p-new-api, the default is 0. please find “msg2p-newapi” in the [doc](https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_plugin_gst-nvmsgconv.html) for the explanation.  
if you are testing deepstram-app, you need to add generate\_event\_msg\_meta, or you can use deepstream-test5 because test5 already added the code. you also can set msg-conv-msg2p-new-api to 1 , then generate\_event\_msg\_meta is not needed because the messages are sent based on NvDsFrameMeta.

---

<div class="post-metadata">

**Author:** ![erjunsheng](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@erjunsheng](https://forums.developer.nvidia.com/u/erjunsheng)\
**Post date:** [July 23, 2024, 3:09am UTC](https://forums.developer.nvidia.com/t/deepstream-msgbroker-msgconverter-not-working/300592/4 "2024-07-23T03:09:19Z")

</div>

I tried adding msg-conv-msg2p-newapi=1 to sink but it showed “Unknown key ‘msg-conv-msg2p-newapi’ for group”.

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/2/5/d/25d155f977c8ce52cb86c4d3bca8314944631499.png)  
sink 2  
 ![image](https://global.discourse-cdn.com/nvidia/original/4X/8/3/1/831daba1dbd1db03ddb1220bf01ad5bac490ae0c.png)  
How can I fix this?

---

<div class="post-metadata">

**Author:** ![fanzh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fanzh/32/115955_2.png) [@fanzh](https://forums.developer.nvidia.com/u/fanzh)\
**Post date:** [July 23, 2024, 5:35am UTC](https://forums.developer.nvidia.com/t/deepstream-msgbroker-msgconverter-not-working/300592/5 "2024-07-23T05:35:23Z")

</div>

> [@erjunsheng](#):
>
> I tried adding msg-conv-msg2p-newapi=1

please correct it to msg-conv-msg2p-new-api. please refer to \opt\nvidia\deepstream\deepstream\sources\apps\sample\_apps\deepstream-test5\configs\test5\_dec\_infer-resnet\_tracker\_sgie\_tiled\_display\_int8.txt

---

<div class="post-metadata">

**Author:** ![erjunsheng](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@erjunsheng](https://forums.developer.nvidia.com/u/erjunsheng)\
**Post date:** [July 23, 2024, 11:54am UTC](https://forums.developer.nvidia.com/t/deepstream-msgbroker-msgconverter-not-working/300592/6 "2024-07-23T11:54:27Z")

</div>

Thanks, it starts working now but I encountered another problem

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/0/e/5/0e5bb97337bde71ece51575dae0c170de8c74bc0.png)  
I can now get the messages sent from publisher but the app sometimes crash and the error above shows. What reason causes this fail?

---

<div class="post-metadata">

**Author:** ![fanzh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fanzh/32/115955_2.png) [@fanzh](https://forums.developer.nvidia.com/u/fanzh)\
**Post date:** [July 25, 2024, 7:05am UTC](https://forums.developer.nvidia.com/t/deepstream-msgbroker-msgconverter-not-working/300592/7 "2024-07-25T07:05:55Z")

</div>

sorry for the late reply! from the screenshot above. the vital error is “the client is not currently connected.”, which is from mosquitto low-level lib.

---

<div class="post-metadata">

**Author:** ![erjunsheng](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@erjunsheng](https://forums.developer.nvidia.com/u/erjunsheng)\
**Post date:** [July 28, 2024, 11:26am UTC](https://forums.developer.nvidia.com/t/deepstream-msgbroker-msgconverter-not-working/300592/8 "2024-07-28T11:26:00Z")

</div>

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![fanzh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fanzh/32/115955_2.png) [@fanzh](https://forums.developer.nvidia.com/u/fanzh)\
**Post date:** [July 30, 2024, 9:26am UTC](https://forums.developer.nvidia.com/t/deepstream-msgbroker-msgconverter-not-working/300592/9 "2024-07-30T09:26:54Z")

</div>

Sorry for the late reply, Is this still an DeepStream issue to support?

---

<div class="post-metadata">

**Author:** ![erjunsheng](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@erjunsheng](https://forums.developer.nvidia.com/u/erjunsheng)\
**Post date:** [July 31, 2024, 8:53am UTC](https://forums.developer.nvidia.com/t/deepstream-msgbroker-msgconverter-not-working/300592/10 "2024-07-31T08:53:57Z")

</div>

I am now using deepstream-python-app and trying deepstream test4 but encountered this error

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/9/f/2/9f24e6d5f06c18f8cb5a0e6a396fd728e687a4dc.png)  
I don’t understand the problem

---

<div class="post-metadata">

**Author:** ![fanzh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fanzh/32/115955_2.png) [@fanzh](https://forums.developer.nvidia.com/u/fanzh)\
**Post date:** [July 31, 2024, 9:00am UTC](https://forums.developer.nvidia.com/t/deepstream-msgbroker-msgconverter-not-working/300592/11 "2024-07-31T09:00:05Z")

</div>

1. if appending “–no-display” to the command-line, can the command-line run well?
2. can this cmd “gst-launch-1.0 filesrc location=/opt/nvidia/deepstream/deepstream/samples/streams/sample\_720p.mp4 ! qtdemux ! h264parse ! nvv4l2decoder ! nv3dsink” run well?

---

<div class="post-metadata">

**Author:** ![erjunsheng](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@erjunsheng](https://forums.developer.nvidia.com/u/erjunsheng)\
**Post date:** [July 31, 2024, 11:47am UTC](https://forums.developer.nvidia.com/t/deepstream-msgbroker-msgconverter-not-working/300592/12 "2024-07-31T11:47:50Z")

</div>

Thanks, “–no-display” solved the problem. Btw is there any way to send the image data of rtsp streams with mqtt? Is it possible by only setting the deepstream app configurations or adding commands?

---

<div class="post-metadata">

**Author:** ![fanzh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fanzh/32/115955_2.png) [@fanzh](https://forums.developer.nvidia.com/u/fanzh)\
**Post date:** [August 1, 2024, 6:44am UTC](https://forums.developer.nvidia.com/t/deepstream-msgbroker-msgconverter-not-working/300592/13 "2024-08-01T06:44:17Z")

</div>

DeepStream C++ sample deepstrem-test4 can send the image by the broker. please refer to the " 3.Send the image by the broker based on Kafka" of \opt\nvidia\deepstream\deepstream-7.0\sources\apps\sample\_apps\deepstream-test4\README. you can port the functionality to Python code.

---

<div class="post-metadata">

**Author:** ![erjunsheng](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@erjunsheng](https://forums.developer.nvidia.com/u/erjunsheng)\
**Post date:** [August 4, 2024, 8:07am UTC](https://forums.developer.nvidia.com/t/deepstream-msgbroker-msgconverter-not-working/300592/14 "2024-08-04T08:07:23Z")

</div>

Ok, I’ll give it a try.

---

<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:** [August 18, 2024, 8:07am UTC](https://forums.developer.nvidia.com/t/deepstream-msgbroker-msgconverter-not-working/300592/15 "2024-08-18T08:07:37Z")

</div>

Closed on August 18, 2024, 8:07am UTC

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