Configure OBS Studio SRT Stream with Passphrase

Secure Reliable Transport (SRT) is a high-performance streaming protocol that offers low latency and robust transmission over unstable networks. To protect your broadcast from unauthorized access, you can secure your stream using AES encryption. This guide will show you how to construct a custom SRT connection string with an encryption passphrase and apply it directly within OBS Studio.

Understanding the SRT Connection String Structure

To enable encryption, you must append specific parameters to your standard SRT destination URL. The syntax for an encrypted SRT connection string in OBS Studio is formatted as follows:

srt://[destination_ip]:[port]?mode=caller&latency=[ms]&passphrase=[your_passphrase]&pbkeylen=[key_length]

Key Parameters Explained:

Example Connection String: srt://stream.example.com:9000?mode=caller&passphrase=MySecureStreamPass123&pbkeylen=32


Steps to Configure OBS Studio

Once you have constructed your custom connection string, follow these steps to input it into OBS Studio:

  1. Open OBS Studio.
  2. Click on Settings in the bottom-right Controls dock, or go to File > Settings in the top menu.
  3. In the Settings window, select the Stream tab from the left sidebar.
  4. Set the Service dropdown menu to Custom….
  5. In the Server input field, paste your fully constructed SRT connection string (e.g., srt://stream.example.com:9000?mode=caller&passphrase=MySecureStreamPass123&pbkeylen=32).
  6. Leave the Stream Key field completely blank. All routing and authentication details are already handled by the custom string in the Server field.
  7. Click Apply and then OK to save your settings.

You can now click Start Streaming in OBS Studio. Your broadcast will be encrypted using the specified AES key length before it leaves your computer, ensuring a secure transfer to your destination server.