# 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:** 14

<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:** [19 December 2018 08:22 UTC](https://discourse.nodered.org/t/how-to-display-cctv-camera-in-dashboard-rtsp/5860/14 "2018-12-19T08:22:14Z")

</div>

Hey Mat,

In case of infinite streams from camera's, it might be useful to have the following [RTSP](https://en.wikipedia.org/wiki/Real_Time_Streaming_Protocol) functionality in Node-RED available:

- **pause** : temporarily halt one or all media streams
- **teardown** : stop on or all media streams
- **play** : resume one or all paused media streams

I will need to create a pull request to have this implemented, however I need to figure out some things before I can do that:

- Haven't found any functionality in ffmpeg to acomplish this. The only thing I found is this Stackoverflow [discussion](https://video.stackexchange.com/questions/17061/is-there-a-way-to-pause-and-resume-ffmpeg-encoding). So I think (???) it needs to be implemented like this:
  - Pausing (suspending) a stream:

```auto
process.kill(process.pid, 'SIGSTOP');

```

  - Play (resuming) a paused stream:

```auto
process.kill(process.pid, 'SIGCONT ');

```

  - Teardown (stopping) a stream:

```auto
process.kill(process.pid, 'SIGKILL ');

```

Not really at RTSP-protocol level, but I don't see another way ...
- Not sure how our input message needs to look like, to give the ffmpeg node those instructions. We need to specify somewhere in the input message both a **command** (pause/resume/stop) and a **process id**.
- Perhaps we can ask to resume/pause/teardown **all** streams when **no** process id is specified in the input message.
- The ffmpeg node should send the process id **somewhere** in the output messages. That way we know which PID we need to specify in our input messages, to trigger commands...

As usual all 'constructive' feedback is very welcome !!  
Bart

---

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