RTMP OBS streaming works by sending OBS Studio's encoded output to a media server over the Real-Time Messaging Protocol using an ingest URL and a stream key. RTMP remains the dominant ingest protocol in 2026 because nearly every platform, from Twitch to AWS IVS, accepts it. This guide covers setup, encoder optimization, multistreaming, security, and troubleshooting so your stream stays stable from start to finish.
Introduction
Every live stream starts with one fragile moment: the handshake between your encoder and the ingest server. If that handshake fails, nothing downstream matters. No overlay, no scene, no audio mix can save a stream that never reaches the server.
OBS Studio has become the default encoder for millions of streamers, and RTMP (Real-Time Messaging Protocol) remains the protocol it speaks when pushing video to the cloud. Despite being over two decades old, RTMP still carries the majority of live ingest traffic on the internet. Twitch, YouTube Live, Facebook Live, Amazon IVS, and virtually every custom media server accept RTMP input.
That longevity creates a practical problem: RTMP was designed for Flash-era networking, and modern streaming demands more from it. Bitrate spikes, authentication errors, sync drift, and latency issues all trace back to how RTMP and OBS interact.
This guide walks through the complete RTMP OBS workflow. You will learn how to choose a destination, configure the server and stream key, tune encoder settings for stability, multistream to multiple platforms, secure your connection with RTMPS, and diagnose the errors that interrupt streams most often. By the end, you will have a production-ready RTMP OBS setup.
What Is RTMP and How It Works with OBS?
RTMP is defined as a TCP-based protocol originally developed by Macromedia in 2002 for delivering audio, video, and data between a Flash player and a server. RTMP works by maintaining a persistent TCP connection, typically on port 1935, over which chunked audio and video messages flow from publisher to server.
In modern live streaming, RTMP is almost exclusively used for ingest rather than playback. Your viewers watch over HLS or low-latency alternatives, but your encoder still publishes over RTMP because the protocol is simple, universally supported, and well understood by every media server on the market.
OBS Studio plays the role of the RTMP publisher. It encodes your scenes into H.264 video and AAC audio, wraps them into FLV-formatted RTMP messages, and pushes them to the ingest URL you configure. VideoSDK's own interactive live streaming platform accepts RTMP output for simultaneous broadcast to external destinations, which makes RTMP a natural bridge between custom WebRTC-based apps and traditional streaming platforms. You can read more about this in the VideoSDK interactive live streaming documentation.
Here is the full path a stream takes from OBS to the viewer:

Choosing an RTMP Destination for OBS
Every RTMP destination provides two things: an ingest URL (the server address) and a stream key (your authentication credential). The URL tells OBS where to connect; the key tells the server which channel receives your stream.
Twitch provides ingest URLs organized by region, such as the US East and EU West endpoints, and a stream key from your Creator Dashboard. Choosing the geographically closest ingest server reduces round-trip time and connection instability.
YouTube Live generates a stream key per broadcast in the Live Control Room, and Facebook Live offers per-post stream keys through its Live Producer. Both platforms expire keys after a period of disuse, so regenerate them before an important broadcast.
For custom infrastructure, media servers like nginx with the RTMP module, Wowza, and Amazon IVS accept RTMP ingest at a URL you control. AWS IVS in particular is popular with developers building custom viewing apps because it handles packaging and delivery for you.
If you are building your own streaming product rather than streaming to an existing platform, VideoSDK's interactive live streaming supports RTMP output natively, letting hosts broadcast a VideoSDK room to YouTube or Twitch simultaneously while keeping sub-second in-app interaction.
When entering a non-standard endpoint in OBS, select the Custom service option and paste the full RTMP URL manually. This is the standard path for AWS IVS, Alibaba Cloud Live, Tencent Cloud Live, and self-hosted servers.
Setting Up RTMP in OBS
Configuring RTMP in OBS takes minutes, but each field has a purpose worth understanding. Getting these right the first time prevents the most common first-stream failures.
Server and Stream Key Configuration
Open OBS Settings and navigate to the Stream tab. Choose your service from the Service dropdown, or select Custom for non-standard endpoints. Paste the RTMP ingest URL into the Server field and your stream key into the Stream Key field.
The stream key is a credential. Anyone who obtains it can broadcast to your channel, so treat it like a password. Never share screenshots of the Stream tab, and rotate the key if it leaks. Most platforms let you reset the key from their dashboard in one click.
Selecting the Custom Service
The Custom service option exists because OBS cannot predict every ingest endpoint. When selected, OBS sends your stream to exactly the URL you provide, with no platform-specific adjustments. Use it for AWS IVS, self-hosted nginx RTMP servers, and any platform not in the dropdown.
One detail that trips people up: some custom servers require the stream key to be embedded in the URL path rather than sent separately. If the platform documentation shows a URL containing a token-like suffix, paste the entire string into the Server field and leave the Stream Key field as instructed by that platform.
Verifying Connection Before Going Live
Before a real broadcast, use OBS's built-in test capability. Start streaming with a private or unlisted destination, or use a platform's test key if offered, and confirm the connection holds for several minutes. Watch the OBS stats dock for dropped frames and bitrate stability.
A stable test connection at your target bitrate is the strongest signal that your network can sustain the real broadcast. If frames drop during a test, they will drop during the live event.
Optimizing OBS Settings for RTMP
RTMP is unforgiving of unstable encoder output. A TCP-based protocol retransmits lost data, so any bitrate spike above your connection's capacity causes buffering that compounds over time. Optimization is about consistency, not maximum quality.
Video Settings
Set your output resolution and frame rate to match what your connection can sustain. For most streamers, 1080p at 60fps requires roughly 6000 kbps; 900p at 60fps works around 4500 kbps; 720p at 30fps is comfortable at 2500 to 3000 kbps. Choose a bitrate you can hold at 90 percent of your measured upload speed, not your theoretical maximum.
Set the rate control method to CBR (constant bitrate) for RTMP streaming. CBR forces the encoder to produce a steady stream of data, which is exactly what a TCP-based ingest protocol wants. VBR saves bandwidth but creates spikes that RTMP servers and delivery networks handle poorly.
Audio Settings
Use a 48 kHz sample rate, which is the standard for streaming platforms, and encode AAC audio at 128 kbps for stereo or 160 kbps if your platform supports higher. Mismatched sample rates between OBS and your devices cause crackling and sync drift, so set 48 kHz in both OBS audio settings and your operating system's device configuration.
Encoder Choices
OBS offers software encoding with x264 and hardware encoding via NVENC (NVIDIA), AMF (AMD), and QuickSync (Intel). Modern NVENC on recent NVIDIA GPUs produces quality close to x264 medium preset at a fraction of the CPU cost, which makes it the practical choice for most streamers who also game or run other software during broadcasts.
Use x264 when you need maximum quality on a strong CPU with headroom to spare, or when your GPU is already fully loaded. If your CPU usage climbs past 80 percent during a stream, encoder lag frames will appear regardless of your bitrate.
Keyframe Interval and GOP Size
Set the keyframe interval to 2 seconds, or 1 second if your platform requires low latency. Twitch explicitly recommends 2-second keyframes; some low-latency pipelines want 1-second GOPs so the transcoder can start packaging segments immediately.
Keyframes matter because downstream packaging, especially HLS segmentation, can only begin at a keyframe. Long GOPs delay the start of playback and increase perceived latency for every viewer joining mid-stream.
Disabling B-Frames and Other Latency-Reducing Tweaks
B-frames improve compression but add decode-order complexity that some RTMP ingest pipelines and transcoders mishandle, occasionally causing stutter on the viewer side. If you see periodic micro-stutter in your output, set B-frames to zero and retest.
Also disable any lookahead or psycho-visual tuning options that cause the encoder to burst data. The goal is a flat, predictable bitrate graph in the OBS stats dock. A flat line at your target bitrate is the visual signature of a healthy RTMP stream.
Advanced RTMP Scenarios
Once a single-destination stream is stable, two advanced patterns become valuable: pushing to multiple platforms at once, and securing the ingest connection.
Multi-Platform Streaming with the Multiple RTMP Outputs Plugin
The Multiple RTMP Outputs plugin for OBS extends the standard streaming path so one encoding session pushes to several RTMP endpoints simultaneously. Instead of running two OBS instances or a separate restreaming service, you configure multiple destination rows, each with its own server URL and stream key.
The plugin reuses the same encoded output for all destinations, so your CPU and bandwidth cost is roughly one stream plus the additional upload per endpoint. If your upload capacity cannot sustain multiple full-bitrate pushes, lower the primary bitrate or route through a restreaming service that fans out server-side.
This is the same fan-out pattern VideoSDK implements natively with RTMP output in its live streaming SDK: one host session, multiple simultaneous broadcast destinations.

Multitrack Video and Enhanced RTMP
Twitch has been rolling out enhanced RTMP, an extension that carries additional metadata and multiple quality tracks within the RTMP stream itself. For streamers, this eventually means the platform can generate its own transcoded variants from a single enhanced ingest rather than receiving separate encodes.
Enhanced RTMP matters when you want viewers on constrained connections to receive lower-bitrate variants automatically. OBS support for enhanced RTMP features is still maturing, so check the current OBS release notes before relying on it for a production broadcast.
Secure RTMP with RTMPS and Token-Based URLs
Standard RTMP sends your stream key in the clear during the handshake, which is a real risk on untrusted networks. RTMPS wraps the same protocol in TLS encryption, typically on port 443, protecting both the key and the media payload.
Configuring RTMPS in OBS is identical to RTMP: paste the RTMPS URL (the one beginning with the RTMPS scheme) into the Server field. Platforms including LinkedIn Live and many enterprise media servers require RTMPS by default. If your destination offers both, always choose RTMPS.
Token-based URLs add a second layer: the ingest URL itself contains a signed token that expires after a set window. If your connection drops and you reconnect after token expiry, authentication fails. Generate a fresh URL right before the broadcast when using token-based ingest.
Troubleshooting Common RTMP OBS Issues
Most RTMP failures fall into four categories. Each has a distinct signature in OBS's logs and stats.
Authentication Failures
An authentication failure means the server rejected your stream key. The OBS log will show the server closing the connection immediately after the handshake. Causes include a mistyped key, a key reset on the platform side, an expired token-based URL, or attempting to stream to a channel that requires the key to be embedded in the URL path.
Fix it by regenerating the stream key on the platform, re-pasting it carefully, and confirming whether the destination expects the key in the URL or the separate field.
Connection Timeouts
A timeout means OBS never completed the TCP handshake. The usual causes are a firewall blocking outbound port 1935, a corporate or campus network restricting streaming protocols, or an ISP interfering with RTMP traffic. Switching to an RTMPS endpoint on port 443 often bypasses both firewall rules and ISP interference, because port 443 is rarely blocked.
Unexpected Disconnections
Mid-stream disconnects usually trace to bitrate instability. Check the OBS stats dock: if your bitrate graph shows spikes well above target, or if dropped frames accumulate, your encoder is producing more data than your upload can carry. Lower the bitrate, confirm CBR rate control, and close bandwidth-consuming applications. Persistent disconnects on a healthy local network can also indicate a failing router or Wi-Fi interference; a wired connection is always worth testing.
Audio and Video Sync Problems
Sync drift between audio and video typically comes from mismatched sample rates, excessive buffering on the delivery side, or a viewer-side player issue rather than the ingest itself. Confirm 48 kHz everywhere, keep audio bitrate at a standard 128 kbps, and test playback on a second device before assuming the ingest is at fault.
Best-Practice Checklist for Reliable RTMP OBS Streams
- Use CBR rate control at a bitrate your upload can sustain at 90 percent capacity
- Set the keyframe interval to 2 seconds, or 1 second for low-latency pipelines
- Prefer RTMPS over plain RTMP whenever the destination offers it
- Choose the geographically closest ingest server for your platform
- Run a full test stream and watch the stats dock before every important broadcast
- Use a wired connection for any broadcast that matters
- Keep the stream key private and rotate it after any suspected exposure
- Disable B-frames if viewers report periodic stutter
- Confirm 48 kHz sample rate in OBS and your operating system
- For multistreaming, verify total upload capacity covers all destinations combined
Future of Ingest: From RTMP to WHIP and SRT
RTMP's age shows. It lacks built-in support for modern codecs like AV1 and VP9 in most implementations, has no native congestion control, and carries its Flash-era baggage. Two successors are gaining ground.
WHIP (WebRTC-HTTP Ingestion Protocol) standardizes WebRTC-based ingest, offering sub-second handshake times and native browser encoder support. It is the natural choice when the publisher is a browser or when end-to-end latency must stay minimal. VideoSDK's interactive live streaming is built on this low-latency WebRTC foundation, which is why in-app VideoSDK streams feel instant compared with RTMP-to-HLS pipelines.
SRT (Secure Reliable Transport) replaces TCP with a UDP-based, ARQ-driven transport that survives packet loss far better than RTMP. It excels over unreliable long-distance links, such as remote production backhauls, where RTMP would stall.
Neither has replaced RTMP for consumer platform ingest yet. Twitch, YouTube, and Facebook still speak RTMP first. The practical rule: use RTMP for platform compatibility today, WHIP for browser-native low latency, and SRT for unreliable networks.
Definitions Glossary
RTMP: Real-Time Messaging Protocol, a TCP-based protocol from 2002 used to push encoded live video from a publisher like OBS to a media server over port 1935.
Stream Key: The authentication credential paired with an RTMP ingest URL that tells the server which channel receives your stream; treat it like a password.
RTMPS: RTMP wrapped in TLS encryption, typically on port 443, protecting the stream key and media payload from interception on untrusted networks.
Keyframe Interval: The spacing, in seconds, between full video frames in the encoded stream; RTMP delivery pipelines segment and start playback at keyframes, so 2 seconds or less is standard.
CBR: Constant bitrate rate control, which forces the encoder to emit a steady data rate, matching what TCP-based RTMP ingest handles best.
WHIP: WebRTC-HTTP Ingestion Protocol, a standardized low-latency ingest alternative to RTMP designed for browser-native publishers.
Key Takeaways
- RTMP OBS streaming requires only an ingest URL and a stream key, but stability depends on CBR encoding, a sustainable bitrate, and a 2-second keyframe interval.
- Prefer RTMPS on port 443 over plain RTMP whenever your destination offers it, both for security and to bypass restrictive firewalls.
- The Multiple RTMP Outputs plugin lets one OBS encode serve Twitch, YouTube, and custom servers simultaneously, provided your upload capacity covers the combined bitrate.
- Most mid-stream failures trace to bitrate spikes or authentication problems, both of which are visible in OBS's stats dock and logs before they end a broadcast.
- RTMP remains the compatibility standard, but WHIP and SRT are the right choices for browser-native low latency and unreliable networks respectively; VideoSDK's interactive live streaming is built on that low-latency WebRTC foundation.
Conclusion
RTMP OBS streaming endures because it works everywhere, but working everywhere is not the same as working well by default. A reliable RTMP OBS setup comes down to a steady CBR encode, a bitrate your connection can actually hold, correct keyframe spacing, and a secure RTMPS endpoint when available. Test before every broadcast, watch the stats dock during it, and rotate your stream key like the credential it is. When you outgrow RTMP's latency floor, low-latency alternatives like VideoSDK's interactive live streaming are the natural next step. What are you building or streaming? Drop a comment, I'd love to hear about your RTMP OBS setup.
Free $20 Balance for AI Voice Agents & Video Calls
FAQ
