# Deepstream-test4 python app no response DS6.0.1

**URL:** <https://forums.developer.nvidia.com/t/deepstream-test4-python-app-no-response-ds6-0-1/223510>\
**Category:** DeepStream SDK\
**Created:** [August 10, 2022, 7:57am UTC](https://forums.developer.nvidia.com/t/deepstream-test4-python-app-no-response-ds6-0-1/223510 "2022-08-10T07:57:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kd637](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kd637/32/217617_2.png) [@kd637](https://forums.developer.nvidia.com/u/kd637)\
**Post date:** [August 10, 2022, 7:57am UTC](https://forums.developer.nvidia.com/t/deepstream-test4-python-app-no-response-ds6-0-1/223510/1 "2022-08-10T07:57:14Z")

</div>

I’m trying to get meta-data on a kafka topic of this custom setup of deepstream-test4 of python bindings with deepstream 6.0.1. But I do not receive any response after the following log:

```auto
Creating Pipeline 
 
Creating Source 
 
Creating H264Parser 

Creating Decoder 

Creating EGLSink 

Playing file /opt/nvidia/deepstream/deepstream-6.0/samples/streams/sample_1080p_h264.mp4 
Adding elements to Pipeline 

Linking elements in the Pipeline 

Starting pipeline 

0:00:00.171351344 20153 0x2d63e60 WARN nvinfer gstnvinfer.cpp:635:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::initialize() <nvdsinfer_context_impl.cpp:1161> [UID = 1]: Warning, OpenCV has been deprecated. Using NMS for clustering instead of cv::groupRectangles with topK = 20 and NMS Threshold = 0.5
WARNING: [TRT]: TensorRT was linked against cuDNN 8.2.1 but loaded cuDNN 8.1.1
WARNING: [TRT]: TensorRT was linked against cuDNN 8.2.1 but loaded cuDNN 8.1.1
0:00:01.253752695 20153 0x2d63e60 INFO nvinfer gstnvinfer.cpp:638:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1900> [UID = 1]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-6.0/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine
INFO: ../nvdsinfer/nvdsinfer_model_builder.cpp:610 [Implicit Engine Info]: layers num: 3
0 INPUT kFLOAT input_1 3x368x640       
1 OUTPUT kFLOAT conv2d_bbox 16x23x40        
2 OUTPUT kFLOAT conv2d_cov/Sigmoid 4x23x40         

0:00:01.253808717 20153 0x2d63e60 INFO nvinfer gstnvinfer.cpp:638:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2004> [UID = 1]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-6.0/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine
0:00:01.254520958 20153 0x2d63e60 INFO nvinfer gstnvinfer_impl.cpp:313:notifyLoadModelStatus:<primary-inference> [UID 1]: Load new model:dstest4_pgie_config.txt sucessfully

```

I used the following command:

```auto

sudo python3 deepstream_test_4.py -i /opt/nvidia/deepstream/deepstream-6.0/samples/streams/sample_1080p_h264.mp4 -p /opt/nvidia/deepstream/deepstream-6.0/lib/libnvds_kafka_proto.so --conn-str "localhost;9092;rawdata2" --topic "rawdata2" -s 0

```

I’ve following questions:

1. Why is the application showing this behaviour? Is anything configured incorrectly?
2. Does this app use the same .so lib in nvmsgconv as the C application via gst-python? If yes, would customizing the nvmsgconv can give me custom results that I need? Or do I need make changes somewhere else too?
3. **How do I see `GST_DEBUG:=4 ` logs with python apps?**

More info:

**• Hardware Platform (dGPU: GTX)**  
**• DeepStream Version 6.0.1**  
**• JetPack Version (NA)**  
**• TensorRT Version [in logs above]**  
**• NVIDIA GPU Driver Version 470.63.01**  
**• Issue Type: Question/Bug**  
**• How to reproduce the issue: deepstream-test4 of python bindings with deepstream 6.0.1**  
**• Requirement details: lrdkafka, protolib**

Misc info on solutions that I’ve tried:

- lrdkafka re-installation.
- Yes, the brokers are running
- Simple app for inferencing works in osd with the default models.

---

<div class="post-metadata">

**Author:** ![yingliu](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yingliu/32/136703_2.png) [@yingliu](https://forums.developer.nvidia.com/u/yingliu)\
**Post date:** [August 10, 2022, 8:06am UTC](https://forums.developer.nvidia.com/t/deepstream-test4-python-app-no-response-ds6-0-1/223510/2 "2022-08-10T08:06:50Z")

</div>

Please try with h264 file instead of mp4 file.

---

<div class="post-metadata">

**Author:** ![kd637](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kd637/32/217617_2.png) [@kd637](https://forums.developer.nvidia.com/u/kd637)\
**Post date:** [August 10, 2022, 8:17am UTC](https://forums.developer.nvidia.com/t/deepstream-test4-python-app-no-response-ds6-0-1/223510/4 "2022-08-10T08:17:43Z")

</div>

Got it. Thanks. Can you also answer if this app use the same .so lib in nvmsgconv as the C application? If yes, would customizing the nvmsgconv can give me custom results that I need? Or do I need make changes somewhere else too? and How do I see `GST_DEBUG:=4 `logs with python apps?

---

<div class="post-metadata">

**Author:** ![yingliu](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yingliu/32/136703_2.png) [@yingliu](https://forums.developer.nvidia.com/u/yingliu)\
**Post date:** [August 10, 2022, 8:41am UTC](https://forums.developer.nvidia.com/t/deepstream-test4-python-app-no-response-ds6-0-1/223510/5 "2022-08-10T08:41:39Z")

</div>

Python binding is a way to call low layer C/C++, so you still need to adapt the C code if you want to customize message in nvmsgconv.  
You can put GST\_DEBUG=4 before python3 xx.py to set debugging level.

---

<div class="post-metadata">

**Author:** ![Amycao](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/amycao/32/11342_2.png) [@Amycao](https://forums.developer.nvidia.com/u/Amycao)\
**Post date:** [August 10, 2022, 10:04am UTC](https://forums.developer.nvidia.com/t/deepstream-test4-python-app-no-response-ds6-0-1/223510/6 "2022-08-10T10:04:06Z")

</div>

> [@kd637](#):
>
> Why is the application showing this behaviour? Is anything configured incorrectly?

Can you run successfully using original app and plugin?

> **How do I see `GST_DEBUG:=4 `logs with python apps?**

Please check this to enable gst debug for python version. [Gstreamer 1.0 Python Debug · GitHub](https://gist.github.com/sreimers/5952263)

---

<div class="post-metadata">

**Author:** ![kd637](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kd637/32/217617_2.png) [@kd637](https://forums.developer.nvidia.com/u/kd637)\
**Post date:** [August 10, 2022, 10:12am UTC](https://forums.developer.nvidia.com/t/deepstream-test4-python-app-no-response-ds6-0-1/223510/7 "2022-08-10T10:12:07Z")

</div>

Yes, I can run successfully with original app but not with nvdsanalytics combined with deepstream-test4. I added and linked nvdsanalytics right before the tee in the app. That’s when I don’t receive any response, not on eglsink or broker.  
Some more background: I’ve customized nvmsgconv. The analytics meta-data is availaible in the C/C++ application. But I want to utilize NV12 to RGBA conversion in python app to crop and save regions with analytics meta-data.

---

<div class="post-metadata">

**Author:** ![Amycao](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/amycao/32/11342_2.png) [@Amycao](https://forums.developer.nvidia.com/u/Amycao)\
**Post date:** [August 11, 2022, 9:35am UTC](https://forums.developer.nvidia.com/t/deepstream-test4-python-app-no-response-ds6-0-1/223510/8 "2022-08-11T09:35:19Z")

</div>

Does it work with c++ app?

---

<div class="post-metadata">

**Author:** ![kd637](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kd637/32/217617_2.png) [@kd637](https://forums.developer.nvidia.com/u/kd637)\
**Post date:** [August 16, 2022, 8:22am UTC](https://forums.developer.nvidia.com/t/deepstream-test4-python-app-no-response-ds6-0-1/223510/9 "2022-08-16T08:22:23Z")

</div>

Yes it does. I found the issue with the Tee that I was using. I did not add nvmsgconv elements on one side of the Tee to the pipeline, only linked them. Thus no buffer there. Thank you for your help and patience.

---

<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 30, 2022, 8:23am UTC](https://forums.developer.nvidia.com/t/deepstream-test4-python-app-no-response-ds6-0-1/223510/10 "2022-08-30T08:23:04Z")

</div>

Closed on August 30, 2022, 8:23am UTC

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