# How to display CCTV camera in dashboard (RTSP)

**URL:** https://discourse.nodered.org/t/how-to-display-cctv-camera-in-dashboard-rtsp/5860
**Category:** General
**Created:** [16 December 2018 23:37 UTC](https://discourse.nodered.org/t/how-to-display-cctv-camera-in-dashboard-rtsp/5860 "2018-12-16T23:37:49Z")
**Posts on this page:** 1
**Showing post:** 75

<div class="post-metadata">

### Author: ![wb666greene](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wb666greene/32/6534_2.png) [@wb666greene](https://discourse.nodered.org/u/wb666greene)
#### Post date: [9 February 2019 17:31 UTC](https://discourse.nodered.org/t/how-to-display-cctv-camera-in-dashboard-rtsp/5860/75 "2019-02-09T17:31:22Z")

</div>

> [@BartButenaers](#):
>
> And second question: can I conclude from your test that rtsp via ffmpeg in Node-RED is 'usable' ??

Absolutely, the main potential issue I see is that generally the AI (or other downstream processing) can't keep up with the full rtsp frame rate unless only a single stream is being processed or its a low rate stream, so many frames need to be "dropped". OpenCV seems to do this internally if the read() method is not called often enough. My reading threads drop the frame if the queue that feeds the AI threads is full and after a short delay (time.sleep(0.001)) to force a context switch, resumes.

You can't easily use rbe on binary buffers or you quickly run out of memory -- the issue that got me on this forum initially that only came to light recently ([Memory leak, what am I doing wrong?](https://discourse.nodered.org/t/memory-leak-what-am-i-doing-wrong/627))

OpenCV also has settings to adjust the size of its internal queue, but it seems version dependent on if its honored or not.

---

_[View the full topic](https://discourse.nodered.org/t/how-to-display-cctv-camera-in-dashboard-rtsp/5860)._
