# Feed videos consecutively into deepstream-appsrc-test

**URL:** <https://forums.developer.nvidia.com/t/feed-videos-consecutively-into-deepstream-appsrc-test/321527>\
**Category:** DeepStream SDK\
**Tags:** gstreamer, deepstream\
**Created:** [January 26, 2025, 7:36am UTC](https://forums.developer.nvidia.com/t/feed-videos-consecutively-into-deepstream-appsrc-test/321527 "2025-01-26T07:36:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![barzanhayati](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@barzanhayati](https://forums.developer.nvidia.com/u/barzanhayati)\
**Post date:** [January 26, 2025, 7:36am UTC](https://forums.developer.nvidia.com/t/feed-videos-consecutively-into-deepstream-appsrc-test/321527/1 "2025-01-26T07:36:20Z")

</div>

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU)** RTX 2080Ti  
**• DeepStream Version** 6.0.0  
**• JetPack Version (valid for Jetson only)**  
**• TensorRT Version**  
**• NVIDIA GPU Driver Version (valid for GPU only)**  
**• Issue Type( questions, new requirements, bugs)** question

I’m aware that DeepStream provides useful samples, such as `runtime_source_add_delete` for adding or removing videos from the pipeline, and `deepstream-appsrc-test` for feeding a single video into the pipeline. My goal is to combine these two so that videos are fed consecutively, one after another, once each video finishes. I’ve tested multiple scenarios, but none of them work. For instance, I tried recreating the `appsrc` and `streammux` plugins, but it didn’t solve the issue. How can I achieve this without restarting the pipeline?

---

<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:** [February 4, 2025, 10:49am UTC](https://forums.developer.nvidia.com/t/feed-videos-consecutively-into-deepstream-appsrc-test/321527/3 "2025-02-04T10:49:53Z")

</div>

You can try to call the `gst_app_src_end_of_stream` at the right time. For example, call the `gst_app_src_end_of_stream` after all the videos have finished feeding the data.

---

<div class="post-metadata">

**Author:** ![barzanhayati](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@barzanhayati](https://forums.developer.nvidia.com/u/barzanhayati)\
**Post date:** [February 5, 2025, 7:42am UTC](https://forums.developer.nvidia.com/t/feed-videos-consecutively-into-deepstream-appsrc-test/321527/5 "2025-02-05T07:42:06Z")

</div>

The `appsrc` example includes a call to the `gst_app_src_end_of_stream` function. I check for the end of the stream after reaching this function and then attempt to load another video, but I can’t.

---

<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:** [February 5, 2025, 10:02am UTC](https://forums.developer.nvidia.com/t/feed-videos-consecutively-into-deepstream-appsrc-test/321527/6 "2025-02-05T10:02:21Z")

</div>

You can try to implement this logic yourself. For example, you can add all the videos to a list and send the `end_of_stream` message when all the videos in the list are finished.

---

<div class="post-metadata">

**Author:** ![barzanhayati](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@barzanhayati](https://forums.developer.nvidia.com/u/barzanhayati)\
**Post date:** [February 5, 2025, 11:34am UTC](https://forums.developer.nvidia.com/t/feed-videos-consecutively-into-deepstream-appsrc-test/321527/7 "2025-02-05T11:34:41Z")

</div>

I stated that my goal is to feed videos consecutively, one after another, as each video finishes. However, you suggested adding all the videos to a list and sending the end\_of\_stream message only after all videos in the list are finished. These are two different approaches.

---

<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:** [February 6, 2025, 3:12am UTC](https://forums.developer.nvidia.com/t/feed-videos-consecutively-into-deepstream-appsrc-test/321527/8 "2025-02-06T03:12:59Z")

</div>

You need to implement this logic yourself `feed videos consecutively, one after another, as each video finishes`. The key is to trigger the `end_of_stream ` message in the last video so that the pipeline does not exit.

---

<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:** [March 10, 2025, 10:38am UTC](https://forums.developer.nvidia.com/t/feed-videos-consecutively-into-deepstream-appsrc-test/321527/9 "2025-03-10T10:38:23Z")

</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:** [March 24, 2025, 10:39am UTC](https://forums.developer.nvidia.com/t/feed-videos-consecutively-into-deepstream-appsrc-test/321527/10 "2025-03-24T10:39:07Z")

</div>

Closed on March 24, 2025, 10:39am UTC

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