# IP camera: stream and record a fragment

**URL:** <https://discourse.nodered.org/t/ip-camera-stream-and-record-a-fragment/15876>\
**Category:** General\
**Created:** [25 September 2019 07:31 UTC](https://discourse.nodered.org/t/ip-camera-stream-and-record-a-fragment/15876 "2019-09-25T07:31:46Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [25 September 2019 10:57 UTC](https://discourse.nodered.org/t/ip-camera-stream-and-record-a-fragment/15876/17 "2019-09-25T10:57:40Z")

</div>

> [@bakman2](#):
>
> If you want to do object recognition, isn't opencv a better option ?

Absolutely, but then I used ffmpeg to decode the stream and opencv to do the processing.

> [@Nxito](#):
>
> How can I stop the flow of the exec node without using msg.kill?

Just for completeness: some time after we had the long RTSP discussion, there was another question on the forum about storing video as an mp4 file. Since then I don't use _ **Exec** _ nodes anymore for ffmpeg, but always the _ **Daemon** _ node instead (as you can see [here](https://discourse.nodered.org/t/display-camera-ip-in-dashboard-and-store-video-in-raspberry/6349/5)). Because the Daemon node allows you to keep converting (endless) e.g. images to a video file... In that discussion I have added some drawings to explain how the pipes work.

---

_[View the full topic](https://discourse.nodered.org/t/ip-camera-stream-and-record-a-fragment/15876)._
