# When stream-eos holding in message structure

**URL:** <https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098>\
**Category:** DeepStream SDK\
**Created:** [April 18, 2024, 10:43am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098 "2024-04-18T10:43:43Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Newbie98](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Newbie98](https://forums.developer.nvidia.com/u/Newbie98)\
**Post date:** [April 18, 2024, 10:43am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/1 "2024-04-18T10:43:43Z")

</div>

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU): dPU A40.**  
**• DeepStream Version: 6.4-triton-multiarch.**  
**• TensorRT Version: 8.6.1.6.**  
**• NVIDIA GPU Driver Version (valid for GPU only): 535.146.02.**  
**• Issue Type( questions, new requirements, bugs): questions.**  
**• 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)**

Why `stream-eos` not hold in message structure via `deepstream_test3` if in handle Gst.MessageType.ELEMENT , although it holding via` deepstream-test-rt-src-add-del.py`?

```auto
elif t == Gst.MessageType.ELEMENT:
        struct = message.get_structure()
        #Check for stream-eos message
        if struct is not None and struct.has_name("stream-eos"):
            parsed, stream_id = struct.get_uint("stream-id")
            if parsed:
                #Set eos status of stream to True, to be deleted in delete-sources
                print("Got EOS from stream %d" % stream_id)

```

---

<div class="post-metadata">

**Author:** ![yuweiw](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yuweiw/32/101255_2.png) [@yuweiw](https://forums.developer.nvidia.com/u/yuweiw)\
**Post date:** [April 19, 2024, 2:01am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/3 "2024-04-19T02:01:36Z")

</div>

You mean when you want to get the “stream-eos” message in `deepstream_test3`, you cannot get it?

---

<div class="post-metadata">

**Author:** ![Newbie98](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Newbie98](https://forums.developer.nvidia.com/u/Newbie98)\
**Post date:** [April 19, 2024, 6:02am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/4 "2024-04-19T06:02:08Z")

</div>

Yes via enable rtsp-reconnect-interval of nvurisrcbin plugin

---

<div class="post-metadata">

**Author:** ![yuweiw](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yuweiw/32/101255_2.png) [@yuweiw](https://forums.developer.nvidia.com/u/yuweiw)\
**Post date:** [April 19, 2024, 9:22am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/5 "2024-04-19T09:22:13Z")

</div>

OK. So you mean there is no `stream-eos` message when rtsp reconnects? Because the data is reconnecting all the time, this scenario does not send `stream-eos` message.

---

<div class="post-metadata">

**Author:** ![Newbie98](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Newbie98](https://forums.developer.nvidia.com/u/Newbie98)\
**Post date:** [April 19, 2024, 10:43am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/6 "2024-04-19T10:43:08Z")

</div>

If I want to reconnect for specific number of trying via both nvurisrcbin and enable rtsp-reconnect-interval. what I should do, thanks?

---

<div class="post-metadata">

**Author:** ![yuweiw](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yuweiw/32/101255_2.png) [@yuweiw](https://forums.developer.nvidia.com/u/yuweiw)\
**Post date:** [April 22, 2024, 1:51am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/7 "2024-04-22T01:51:50Z")

</div>

We do not currently have a limit on the number of times for nvurisrcbin. Do you want to quit after a specific number of reconnection?

---

<div class="post-metadata">

**Author:** ![Newbie98](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Newbie98](https://forums.developer.nvidia.com/u/Newbie98)\
**Post date:** [April 22, 2024, 7:53am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/8 "2024-04-22T07:53:56Z")

</div>

I want to send `stream-eos` after a specific number of reconnection

---

<div class="post-metadata">

**Author:** ![yuweiw](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yuweiw/32/101255_2.png) [@yuweiw](https://forums.developer.nvidia.com/u/yuweiw)\
**Post date:** [April 23, 2024, 3:05am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/9 "2024-04-23T03:05:49Z")

</div>

We do not currently support this feature in the nvurisrcbin. Why you want to get the stream-eos message? Maybe you can use the `rtsp-reconnect-attempts` to meet your feature.

---

<div class="post-metadata">

**Author:** ![Newbie98](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Newbie98](https://forums.developer.nvidia.com/u/Newbie98)\
**Post date:** [April 28, 2024, 11:27am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/10 "2024-04-28T11:27:00Z")

</div>

How i can use `rtsp-reconnect-attempts` via deepstream\_test3 python code?

---

<div class="post-metadata">

**Author:** ![yuweiw](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yuweiw/32/101255_2.png) [@yuweiw](https://forums.developer.nvidia.com/u/yuweiw)\
**Post date:** [April 29, 2024, 12:49am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/11 "2024-04-29T00:49:22Z")

</div>

Just choose the nvurisrcbin and set the property like [uri\_decode\_bin.set\_property(“uri”,uri)](https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/blob/master/apps/deepstream-test3/deepstream_test_3.py#L184).

---

<div class="post-metadata">

**Author:** ![Newbie98](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Newbie98](https://forums.developer.nvidia.com/u/Newbie98)\
**Post date:** [April 29, 2024, 7:32am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/12 "2024-04-29T07:32:05Z")

</div>

nvurisrcbin has property `rtsp-reconnect-attempts`?

---

<div class="post-metadata">

**Author:** ![yuweiw](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yuweiw/32/101255_2.png) [@yuweiw](https://forums.developer.nvidia.com/u/yuweiw)\
**Post date:** [April 29, 2024, 11:30am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/13 "2024-04-29T11:30:34Z")

</div>

Yes. You can check that with `gst-inspect-1.0 nvurisrcbin` command.

---

<div class="post-metadata">

**Author:** ![Newbie98](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Newbie98](https://forums.developer.nvidia.com/u/Newbie98)\
**Post date:** [April 29, 2024, 11:40am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/14 "2024-04-29T11:40:11Z")

</div>

thank you for your response, but I not found `rtsp-reconnect-attempts` in nvurisrcbin yet.

---

<div class="post-metadata">

**Author:** ![yuweiw](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yuweiw/32/101255_2.png) [@yuweiw](https://forums.developer.nvidia.com/u/yuweiw)\
**Post date:** [April 30, 2024, 1:00am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/15 "2024-04-30T01:00:56Z")

</div>

Could you try the command below like I attached before?

```auto
gst-inspect-1.0 nvurisrcbin | grep -Ei "rtsp-reconnect-attempts"

```

---

<div class="post-metadata">

**Author:** ![Newbie98](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Newbie98](https://forums.developer.nvidia.com/u/Newbie98)\
**Post date:** [April 30, 2024, 6:11am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/16 "2024-04-30T06:11:50Z")

</div>

not result after grep

 ![Screenshot 2024-04-30 091013](https://global.discourse-cdn.com/nvidia/original/4X/4/d/c/4dc1ed82c4fe2ab86303bc1682e3bb38cabfdac8.png)

---

<div class="post-metadata">

**Author:** ![yuweiw](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yuweiw/32/101255_2.png) [@yuweiw](https://forums.developer.nvidia.com/u/yuweiw)\
**Post date:** [April 30, 2024, 8:05am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/17 "2024-04-30T08:05:20Z")

</div>

You can upgrade DeepStream to 7.0 which has that parameter.

---

<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:** [May 21, 2024, 5:26am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/18 "2024-05-21T05:26:10Z")

</div>

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

---

<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:** [June 4, 2024, 5:26am UTC](https://forums.developer.nvidia.com/t/when-stream-eos-holding-in-message-structure/290098/19 "2024-06-04T05:26:34Z")

</div>

Closed on June 4, 2024, 5:26am UTC

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