How to Stream Securely with RTMPS in OBS Studio

This article provides a straightforward guide on how to configure OBS Studio to use RTMPS (Real-Time Messaging Protocol Secure) instead of the standard, unencrypted RTMP. You will learn the benefits of encrypting your live stream data and receive step-by-step instructions on setting up your connection using secure ports and URLs.

Why Use RTMPS Instead of RTMP?

Standard RTMP transmits your video data and stream key in plain text over the internet. This makes it vulnerable to interception by bad actors on the same network. RTMPS wraps the connection in a layer of TLS/SSL encryption. By switching to RTMPS, you protect your stream key from being stolen and prevent unauthorized hijacked broadcasts.

Step-by-Step RTMPS Setup in OBS Studio

Setting up RTMPS in OBS Studio is identical to setting up RTMP, with the only difference being the protocol prefix in the server URL and the port used.

Step 1: Retrieve Your RTMPS Details

Before configuring OBS, you must obtain the secure stream URL and stream key from your streaming platform (such as Facebook Live, YouTube, or your private streaming server). 1. Log in to your streaming platform’s creator dashboard. 2. Go to the live stream setup section. 3. Look for the Stream URL (or Server URL) and Stream Key. 4. Ensure the Stream URL begins with rtmps:// (for example, rtmps://live-api-s.facebook.com:443/rtmp/).

Step 2: Configure OBS Studio

  1. Open OBS Studio.
  2. Click on Settings in the bottom-right corner (or go to File > Settings).
  3. In the left sidebar of the Settings window, click on Stream.
  4. Click the Service dropdown menu.
    • If your platform has a default profile that supports RTMPS automatically (like Facebook Live), select that service and connect your account or enter your stream key.
    • If you are using a platform without a preset, or a custom RTMP server, select Custom… from the dropdown.
  5. In the Server field, paste the secure URL you copied in Step 1. It must begin with rtmps://.
  6. In the Stream Key field, paste your unique stream key.
  7. Click Apply, then click OK to save your changes.

Network and Port Considerations

RTMPS relies on different network ports than standard RTMP. * RTMP typically uses port 1935. * RTMPS typically uses port 443 (the standard port for secure web traffic).

If you are streaming from a restricted network, such as an office, school, or behind a strict firewall, ensure that outgoing traffic on port 443 is allowed. Because port 443 is used for standard secure web browsing (HTTPS), it is rarely blocked by firewalls, making RTMPS more reliable for bypassing network restrictions than standard RTMP.