Set up a Custom RTMP in OBS (Custom RTMP)
This guide shows you how to configure OBS Studio to stream to a RTMP/RTMPS server using a Server URL and a Stream Key.
1) Requirements & needed details
Before you start, make sure you have:
- RTMP/RTMPS Server URL (e.g.
rtmp://stream.yourdomain.tld/live) - Stream Key, often a channel name or a token
- A connection with stable upload bandwidth
Your stream key is like a password: anyone who has it can stream to your channel. Don’t share it.
Server: rtmp(s)://HOST/APP
Key: STREAM_NAME (or token / query)
Examples
Example 1
Server: rtmp://stream.yourdomain.tld/live
Key: channel1
Example 2 (RTMPS + token)
Server: rtmps://stream.yourdomain.tld/live
Key: channel1?token=ABC123
2) OBS Stream settings (Custom service)
- Open OBS and go to Settings.
- Open the Stream section.
- In Service, select Custom….
- Fill in:
- Server: paste the RTMP/RTMPS URL
- Stream Key: enter your stream key
- Click Apply ? OK.
If your server supports RTMPS, use
rtmps:// instead of rtmp:// to encrypt the connection.3) Recommended settings (video/audio)
To reduce stuttering and disconnects, set values that match your upload bandwidth. Below is a “safe baseline” that works well with most RTMP servers.
| Setting | Recommendation | Notes |
|---|---|---|
| Video encoder | x264 or hardware (NVENC/AMF/QSV) | Hardware encoding reduces CPU load, helpful on less powerful PCs. |
| Video bitrate | Based on upload (e.g. 3500–6000 kbps for 1080p30) | If you get dropped frames, lower bitrate or switch to 720p. |
| Keyframe interval | 2 seconds | Commonly required/recommended by many services/CDNs for compatibility. |
| Audio | AAC, 128–192 kbps | 160 kbps is a solid balance. |
| Resolution / FPS | 720p30 or 1080p30 (depending on bandwidth) | If your network is tight, 720p30 is more resilient. |
Keep total bitrate (video+audio) at most 60–70% of your real measured upload to avoid saturation and instability.
4) Test your stream
- Make sure your scenes/sources are OK (meters moving, preview visible).
- Click Start Streaming.
- Check the status bar: low dropped frames and steady bitrate.
- Open your player/service dashboard and confirm the stream is received correctly.
5) Troubleshooting
Error: “Could not connect” / can’t connect
- Double-check Server and Key (no extra spaces/characters).
- Verify DNS/host (your domain resolves to the correct server).
- Check firewall/NAT: classic RTMP is usually TCP 1935 (or the port provided by your service).
- If using RTMPS, confirm TLS certificate validity and the correct port is open.
High dropped frames / choppy stream
- Lower bitrate and/or use 720p instead of 1080p.
- Switch to hardware encoding (NVENC/AMF/QSV) if CPU is maxing out.
- Avoid Wi?Fi: prefer Ethernet.
- If the server is far, try a closer endpoint (if available).
Audio out of sync
- Set 48 kHz in Settings ? Audio (keep it consistent across devices).
- Reduce heavy filters/processing and check source delays if needed.
6) FAQ
Can I use username/password?
Some RTMP servers support credentials in the URL (e.g. rtmp://user:pass@host/app), but not all do. Many providers use tokens in the Key field or as a query string (e.g. ?token=...).
What’s the difference between RTMP and RTMPS?
RTMPS is RTMP over TLS: it encrypts the connection. If available, it’s preferred.
Can I record and stream at the same time?
Yes: OBS can Start Recording and Start Streaming simultaneously (consider CPU/disk and bitrate impact).
