# Adding an RTSPS video stream (RTSP over TLS)

**URL:** <https://community.gladysassistant.com/t/ajout-dun-flux-video-rtsps-rtsp-over-tls/8194>\
**Category:** Configuration\
**Created:** [June 2, 2023, 6:59am UTC](https://community.gladysassistant.com/t/ajout-dun-flux-video-rtsps-rtsp-over-tls/8194 "2023-06-02T06:59:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [June 2, 2023, 6:59am UTC](https://community.gladysassistant.com/t/ajout-dun-flux-video-rtsps-rtsp-over-tls/8194/1 "2023-06-02T06:59:20Z")

</div>

Can you confirm whether RTSP over TLS is supported (RTSPS)?  
I don’t think so, or at least my tests didn’t seem to work.

What bothers me about RTSP is that it’s the only stream transmitted in cleartext on my home network. Of course, the risks are low, but I like to be as close as possible to the state of the art, especially in computer security when I have the opportunity and the means 🙂

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 2, 2023, 7:13am UTC](https://community.gladysassistant.com/t/ajout-dun-flux-video-rtsps-rtsp-over-tls/8194/2 "2023-06-02T07:13:46Z")

</div>

> [@lmilcent](#):
>
> Can you confirm whether RTSP over TLS is supported (RTSPS)?

Normally yes:

> <https://github.com/FFmpeg/FFmpeg/blob/a8ce6fb425e07e60eb06d3f44992fdb91f23aafb/libavformat/rtsp.c#L1699>

What error message do you get when you «&nbsp;try&nbsp;» the stream? (possibly check the logs)

PS: I created a thread to quietly debug this in a dedicated topic 🙂

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [June 2, 2023, 2:54pm UTC](https://community.gladysassistant.com/t/ajout-dun-flux-video-rtsps-rtsp-over-tls/8194/3 "2023-06-02T14:54:13Z")

</div>

When I ran tests, it wasn’t working.

In the meantime, I realized that the default port was incorrect (322/TCP). After modifying the camera configuration (MediaMTX), it’s working.

I configured this in Gladys:

```auto
rtsps://192.168.1.84:322/cam

```
