Streaming Basics
Multistreaming and One Platform Keeps Dropping: Diagnose It and Fix It
When multistreaming, one platform keeps dropping far more often than all of them dropping together, and that asymmetry is the whole diagnosis. The destination that quit is almost never the victim of a network fault — it is enforcing a limit the others do not have. Facebook ends a broadcast at eight hours, Instagram expects a 720x1280 vertical feed, and YouTube happily swallows a bitrate that makes Facebook terminate the stream.
[f=flv:onfail=ignore:use_fifo=1] on every slave, because tee's default is onfail=abort and one rejected destination kills the whole command. Then encode to the strictest platform's spec (Facebook: 1080p maximum, 3,000-6,000 Kbps at 1080p30, 2-second keyframes, RTMPS) and keep bitrate times destinations under 75% of your measured upload.What the error actually means
There is no such thing as "a multistream" at the protocol level. Each destination is a separate RTMP or RTMPS session: its own TCP connection, to its own ingest server, authenticated with its own stream key, measured by its own rules. The only things your destinations share are the encoder feeding them and the uplink carrying them. That single fact tells you where to look, and it is the step most guides skip:
- One destination ends, the others keep running. Something specific to that leg closed the connection: that platform's ingest rejected or expired your broadcast, or the route to that one ingest server failed. The shared parts are clearly fine, because the other legs survived.
- Every destination ends within the same second or two. Now the shared parts are the suspect: your encoder crashed, your uplink saturated, your machine slept, or you are using a single shared output that aborted when one slave failed.
That second case catches people who think they have independent outputs and do not. FFmpeg's tee muxer, the standard way to fan one encode out to several RTMP endpoints, documents its failure behaviour plainly: onfail "can be set to either abort (which is default) or ignore", and abort causes the "whole process to fail in case of failure on this slave output". Leave the default in place and a Facebook destination hitting its eight-hour wall takes your YouTube stream down with it. A single FFmpeg command listing two output URLs behaves the same way: one process, one fate.
What each platform measures also differs. YouTube compares your stream against a recommended profile for the resolution and frame rate it detects. Meta publishes a list of hard constraints for Facebook Live and states that failing to meet them can cause "Unexpected termination of stream". Instagram Live Producer is a third set of numbers, and Meta says "Simulcasting is not natively supported at this time", so Instagram is always a custom RTMP endpoint.
In multistreaming, one platform keeps dropping for these reasons
Here are the real causes, roughly most common first.
- You hit a platform's hard duration limit. Meta's Live Video API reference states a live video must "Not exceed 8 hours", and its best-practices page repeats it: "you can stay live for up to 8 hours". YouTube publishes no equivalent cap on how long an encoder may stay connected, so anything running past eight hours looks exactly like "Facebook keeps dropping, YouTube is fine". That is the limit, not a fault.
- Your bitrate is legal on one platform and illegal on another. The most underrated cause. YouTube's live encoder settings recommend 17 Mbps for 1080p60 H.264. Facebook's reference gives a range of 4,500-9,000 Kbps for the same setting. Send one shared 12-15 Mbps encode to both and YouTube is delighted while Facebook is fed something well outside its stated band.
- Your resolution or frame rate exceeds one platform's ceiling. Facebook Live's maximum is 1920x1080; YouTube accepts up to 2160p. Multistream a 1440p or 4K encode and the YouTube leg is fine while the Facebook leg is above spec.
- Upload bandwidth, the constraint nobody budgets for. Fanning out from your own machine means your uplink carries a full copy per destination — three destinations at 6 Mbps is 18 Mbps of sustained upload. OBS's own troubleshooting guide puts the safe ceiling at "75% of your total upload speed", and that is for one stream. When the uplink saturates the legs do not degrade equally: whichever ingest has the worst route starves first, so one platform drops while the others look healthy.
- A retry loop that will not give up. When a platform closes a broadcast for good, a naive output reconnects forever and each attempt fails instantly. FFmpeg's tee and fifo muxer documentation is honest about this:
max_recovery_attemptsis the "maximum number of successive unsuccessful recovery attempts after which the output fails permanently", and "By default this option is set to0(unlimited)". Unlimited is the trap. An earlier version of our engine kept blindly retrying a destination Facebook had already closed: 766 attempts, each failing immediately with FFmpeg's "Input/output error" and exit code 251. Nothing was broken except our own retry policy, and the reason was buried under 766 identical failures. - Keyframe interval drifting over the limit. Both YouTube and Meta ask for a 2-second keyframe frequency and tell you not to exceed four. A file with keyframes 10 seconds apart, streamed with
-c copy, can sit badly with one platform's segmenter while another tolerates it. - Protocol and port mismatches. Facebook Live requires RTMPS. YouTube's RTMPS guide says "The connection must be made to port 443 on the ingestion server" and that you must "add the SNI extension (Server Name Indication) to your SSL handshake". A network that permits plain RTMP on 1935 but interferes with TLS on 443 kills exactly one leg and leaves the other up.
- Stream keys that are single-use or expiring. A key created for one scheduled broadcast is not a persistent key. Restarting against a consumed key fails instantly and forever, which reads as one platform dropping when the output is really being rejected at the door.
- Audio spec mismatches. YouTube accepts AAC or MP3 at 128 Kbps stereo. Facebook asks for AAC low complexity, "128 kbps preferred, up to 256 kbps", and says not to exceed 256 kbps. A 320 Kbps audio track clears one gate and not the other.
- Content-type rules. Meta's guidance is to stream live content, which "ensures that live content remains live". Looped material presented as live sits on the wrong side of that line on Facebook in a way it does not on a YouTube 24/7 stream.
- A relay failing on one channel, or regional routing. If a relay such as Restream or Castr fans out for you, one channel can drop on their side while the rest continue. Automatic ingest selection can also land one destination on a server with a poor route from your ISP while the others are untouched.
The platform limits that actually differ
This table is why multistreaming breaks asymmetrically. The figures come from each platform's own documentation; the last column is what we would encode if one shared encode has to satisfy all three.
| Constraint | YouTube Live | Facebook Live | Instagram Live Producer | Safe shared setting |
|---|---|---|---|---|
| Maximum resolution | 2160p (4K) | 1920x1080 | 720x1280 recommended (9x16) | 1920x1080, or 1080x1920 if Instagram matters |
| Frame rate | Up to 60 fps | 30 or 60 fps | 30 fps recommended | 30 fps |
| Video bitrate, 1080p30 | 5 Mbps minimum, 14 Mbps recommended (H.264) | 3,000-6,000 Kbps | Not a recommended mode | 5,000-6,000 Kbps |
| Video bitrate, 1080p60 | 6 Mbps minimum, 17 Mbps recommended (H.264) | 4,500-9,000 Kbps | Not a recommended mode | 6,000-9,000 Kbps |
| Video bitrate, 720p30 | 3 Mbps minimum, 8 Mbps recommended | 1,500-4,000 Kbps | 2,250-6,000 Kbps at 720x1280 | 3,000-4,000 Kbps |
| Codec | H.264, H.265 or AV1 | H.264, Level 4.1 to 1080p30, Level 4.2 for 1080p60 | H.264 | H.264 High profile |
| Keyframe frequency | 2 s recommended, do not exceed 4 s | 2 s recommended, do not exceed 4 s | Follow Meta's 2 s guidance | Fixed 2 s, scene-cut keyframes off |
| Rate control | CBR | Fixed within the stated range | Within the stated range | CBR |
| Audio | AAC or MP3, 128 Kbps stereo, 44.1 kHz | AAC-LC, 128 Kbps preferred, max 256 Kbps, 44.1 or 48 kHz, stereo | AAC stereo | AAC-LC 128 Kbps, 44.1 kHz, stereo |
| Protocol | RTMP or RTMPS (RTMPS on port 443, SNI required) | RTMPS only | RTMP with a stream key | RTMPS where offered |
| Duration limit | No published encoder-session cap | Must not exceed 8 hours | Not published | Plan a fresh Facebook broadcast every 8 hours |
| Archive / replay | Automatic if the stream is under 12 hours | Replay on the Page | Only if Live Archive is enabled | Keep a local recording regardless |
Read down the bitrate rows and the asymmetry is obvious: no single figure is simultaneously "recommended" by YouTube and inside Facebook's range at 1080p. Either encode for the strictest platform and accept that YouTube gets less than its ideal, or encode twice.
How to tell which leg actually failed
When multistreaming, one platform keeps dropping at a specific moment, and that moment is your best clue. Spend five minutes here before changing any setting.
- Write down the exact stop time for each destination. Gaps of more than a few seconds mean the legs are independent and the problem is per-platform. All stopping together means encoder, machine or uplink.
- Check elapsed runtime, not clock time. A Facebook broadcast that ends at 8:00:00 of runtime, repeatedly, is the duration limit. Any suspiciously round number is a policy, not a bug.
- Read each output's own log. One process per destination gives one log per destination, which is most of the diagnosis for free. In OBS, Help then Log Files records each output's disconnects and reconnect attempts.
- Read the platform's side. YouTube's Live Control Room shows stream health and configuration messages. For Facebook, Meta's reference notes that stream errors are "sent via RTMP and can be queried through the Graph API", returning an error code, description and timestamp — and that description usually names the reason.
- Halve the problem. Send only to the suspect destination, at identical settings. If it runs fine alone, the cause is contention: bandwidth, CPU, or a shared output aborting. If it still drops, the cause is that platform's rules or your settings for it. OBS's own stream connection troubleshooting guide recommends the same move, noting that trying a different service "helps identify if the problem is service-related".
- Look at the exit code, not just the message. FFmpeg reports a closed RTMP connection as "Input/output error" and exits with status 251 — the
EIOerrno (5) subtracted from 256. A fast, repeating 251 on one destination means that ingest is actively refusing you. A single 251 after hours of clean streaming points at a duration limit or an expired session. - Watch the uplink during the failure. If outbound traffic is pinned at your line rate when the drop happens, the per-platform rules are a red herring and you are out of upload.
How to fix multistreaming when one platform keeps dropping
1. Give every destination an independent output
This is the structural fix; everything else is tuning. The goal is that no destination can take another down.
FFmpeg, one process per destination. Pre-encode the source once to a spec that satisfies every platform, then run a lightweight process per destination that only remuxes:
# Encode once, to the strictest platform's spec
ffmpeg -i source.mp4 \
-vf "scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,fps=30" \
-c:v libx264 -preset slow -profile:v high -pix_fmt yuv420p \
-b:v 5500k -maxrate 5500k -bufsize 11000k \
-g 60 -keyint_min 60 -sc_threshold 0 \
-c:a aac -b:a 128k -ar 44100 -ac 2 \
-movflags +faststart multistream_1080p30.mp4
# One process per destination, each with its own log and its own fate
ffmpeg -re -stream_loop -1 -i multistream_1080p30.mp4 -c copy -f flv \
"rtmp://a.rtmp.youtube.com/live2/YOUR-YT-KEY" 2> yt.log &
ffmpeg -re -stream_loop -1 -i multistream_1080p30.mp4 -c copy -f flv \
"rtmps://live-api-s.facebook.com:443/rtmp/YOUR-FB-KEY" 2> fb.log &
Copy the real ingest URL from each platform's dashboard rather than trusting any guide, including this one — Meta in particular changes ingest hostnames.
FFmpeg tee muxer, if you want one encode and one process. Then you must override the defaults, because the defaults are hostile to multistreaming:
ffmpeg -re -stream_loop -1 -i multistream_1080p30.mp4 \
-c copy -map 0:v -map 0:a -f tee \
"[f=flv:onfail=ignore:use_fifo=1]rtmp://a.rtmp.youtube.com/live2/YOUR-YT-KEY|\
[f=flv:onfail=ignore:use_fifo=1]rtmps://live-api-s.facebook.com:443/rtmp/YOUR-FB-KEY"
Two options do the heavy lifting. onfail=ignore overrides tee's default of abort, so a dying destination stops being fatal to the command. use_fifo=1 routes that slave through the fifo muxer in its own thread, because a stalled destination can otherwise block the encoder and drag the healthy legs down with it. Per-slave fifo options take it further, and that is where retries get sensible:
-f tee "[f=flv:onfail=ignore:use_fifo=1:fifo_options=attempt_recovery=1\\:recovery_wait_time=5\\:max_recovery_attempts=10\\:drop_pkts_on_overflow=1]rtmp://..."
OBS Studio. As of OBS 33, the built-in Settings then Stream panel still takes one destination. The 32.1 release added WebRTC simulcast, which sends multiple qualities to a single WHIP destination — useful, but not multistreaming to several platforms. For that you still need the obs-multi-rtmp plugin, which adds a dock where each extra RTMP target gets its own start and stop button. Match the plugin build to your OBS version, start the extras one at a time so you can see which fails, and give a target its own encoder settings where the plugin allows it. Streamlabs Desktop and vMix offer multi-destination options with per-destination quality profiles; use those rather than sending one profile to platforms with different ceilings.
2. Encode to the strictest platform, or encode twice
Pick one of two honest approaches: encode once inside every platform's range (the "safe shared setting" column above), or encode separately per destination. Half-measures produce the asymmetric drop. Encoding twice in one process works, but it is still one process, so the outputs share a fate:
ffmpeg -re -stream_loop -1 -i source.mp4 \
-map 0:v -map 0:a -c:v libx264 -preset veryfast -b:v 12000k -maxrate 12000k \
-bufsize 24000k -g 60 -keyint_min 60 -sc_threshold 0 \
-c:a aac -b:a 128k -ar 44100 -f flv "rtmp://a.rtmp.youtube.com/live2/YT-KEY" \
-map 0:v -map 0:a -c:v libx264 -preset veryfast -b:v 5500k -maxrate 5500k \
-bufsize 11000k -g 60 -keyint_min 60 -sc_threshold 0 \
-c:a aac -b:a 128k -ar 44100 -f flv "rtmps://live-api-s.facebook.com:443/rtmp/FB-KEY"
For anything you care about, split that into two processes reading the same file. You pay a second decode and lose nothing else.
3. Plan around Facebook's eight-hour limit rather than fighting it
Eight hours is a stated limit, so no setting defeats it. Keep the YouTube leg independent so it is untouched when Facebook ends — in our test the YouTube destination ran on for about 30 hours while Facebook stopped at eight. Stop the Facebook output cleanly at the limit rather than letting it fail and retry: that gives you a clean replay on the Page and an empty error log. A fresh Facebook broadcast means a new broadcast object and usually a new stream key, so decide in advance whether you want one, or run Facebook in defined daily blocks instead.
4. Cap your retries and surface the reason
An output that retries forever turns a one-line explanation into thousands of identical errors. Our engine used to do exactly that, hammering a closed Facebook destination 766 times. The fix was not a better retry; it was fewer retries. After several fast consecutive failures, stop the destination and report why. The rules we settled on transfer to any setup:
- Distinguish fast failures from slow ones. A connection that dies within a second or two of opening is a rejection. One that dies after hours is a network event or a limit. Only the second deserves patient retrying.
- Cap consecutive failures. Set FFmpeg's
max_recovery_attemptsto a finite number; its default of0is unlimited. - Back off.
recovery_wait_timedefaults to five seconds — widen the gap on repeated failure instead of retrying at a fixed interval. - Keep the first error. The first failure after a healthy run carries the reason. The 700th carries nothing.
- Never let a dead leg's retries disturb a healthy leg. Only separate processes or fifo-backed threads guarantee that.
5. Size your upload for the number of copies
Work this out before blaming a platform. Multiply video plus audio bitrate by the number of destinations, add about 10% overhead, and compare with a measured sustained upload speed — not the figure on your bill.
| Destinations | Per-stream bitrate | Total needed (with overhead) | Sustained upload you want |
|---|---|---|---|
| 2 | 3,000 Kbps (720p30) | ~6.9 Mbps | 10 Mbps or better |
| 2 | 5,500 Kbps (1080p30) | ~12.4 Mbps | 18 Mbps or better |
| 3 | 3,000 Kbps (720p30) | ~10.3 Mbps | 15 Mbps or better |
| 3 | 5,500 Kbps (1080p30) | ~18.6 Mbps | 27 Mbps or better |
| 4 | 5,500 Kbps (1080p30) | ~24.8 Mbps | 35 Mbps or better |
If the sums do not work you have three choices: lower the bitrate for everyone, drop a destination, or send one copy to a relay and let it fan out from a data centre. A relay turns N copies of upload into one — and adds a dependency, because when a relay's channel drops, your encoder sees nothing wrong at all.
6. Fix the protocol and port problems
If exactly one destination never connects, or connects and dies within seconds every time, check the transport first.
- Facebook Live is RTMPS. A URL starting
rtmp://to a Facebook ingest will not work. - YouTube's RTMPS ingest needs port 443 outbound and SNI in the TLS handshake. Older encoders that bolted RTMPS on badly fail here while their plain RTMP output is perfect.
- Connecting in cleartext to an RTMPS server produces a timeout rather than a clear error, which is why this gets misdiagnosed as a network problem.
- On a corporate, hotel or mobile network, test both 1935 and 443 outbound. One being blocked explains one leg dropping precisely.
- Where a platform offers a backup ingest URL, use it. It is a second route to the same broadcast.
7. Make your source file spec-safe once, for every platform
For looped and 24/7 streams, most asymmetric drops trace back to the file rather than the stream. -c copy sends whatever GOP structure and bitrate profile the export happened to have, and platforms differ in how much of that they tolerate. Re-encode the source once with a fixed 2-second GOP, scene-cut keyframes off, a capped bitrate inside every platform's range, a standard frame size and AAC-LC at 128 Kbps — the encode command in fix 1 does all of it. After that no platform has grounds to object.
8. Verify, then walk away
Start all destinations and give it ten minutes before you trust it. Check YouTube's stream health panel, check the Page's live view, and confirm each output's log is quiet. Then check again at the eight-hour mark, because that is where an asymmetric multistream shows its real behaviour. Per YouTube's archive documentation, the automatic archive only applies "If your live stream is less than 12 hours", so keep a local recording of anything you will want later.
How to stop it coming back
Keep these in place and, when multistreaming, one platform keeps dropping only when a platform's own limit says it should.
- One output per destination — one process, or one fifo-backed tee slave — so no destination can take another down.
- Never leave tee's
onfailat its default. Setonfail=ignoreon every slave, and adduse_fifo=1so a stalled destination cannot block the encoder. - Encode inside the intersection of every platform's limits, or encode separately per platform. Do not send one platform's recommended bitrate to another platform's range.
- Cap consecutive retry attempts and back off; unlimited retries hide the reason. Log per destination, with timestamps, and keep the first error after a healthy run.
- Treat Facebook's eight-hour limit as a scheduled event, not a failure.
- Fixed 2-second keyframes everywhere, scene-cut keyframes off.
- Budget upload as bitrate multiplied by destinations plus overhead, and stay under 75% of a measured sustained speed.
- Use RTMPS where the platform offers it, and confirm 443 outbound works from your network.
- Copy ingest URLs and keys from each dashboard for every new broadcast; never recycle a consumed key.
- Keep a local recording, because only one of your destinations will reliably archive a long stream.
- Before any stream that matters, run a 15-minute test to every destination at once and read all the logs.
Multistreaming is not one stream with several addresses — it is several streams sharing a source. Build it that way, and when multistreaming, one platform keeps dropping becomes a line in one log file instead of a mystery.
FAQ
Why does Facebook drop my stream but YouTube keeps running?
Most often because Facebook enforces an eight-hour limit on a live video and YouTube publishes no equivalent encoder-session cap. The second common reason is bitrate: Facebook states a range of 3,000-6,000 Kbps at 1080p30, while YouTube recommends 14 Mbps, so one shared high-bitrate encode is fine for YouTube and out of spec for Facebook.
Does one destination failing have to kill my whole multistream?
No, but it will if you use a single shared output with default settings. FFmpeg's tee muxer defaults to onfail=abort, which fails the whole process when one slave fails. Use onfail=ignore per slave, or run a separate process per destination.
How much upload speed do I need to multistream to three platforms?
Multiply your total bitrate by the number of destinations and add about 10% overhead, then keep that under roughly 75% of your measured sustained upload. Three 1080p30 streams at 5,500 Kbps is about 18.6 Mbps, so you want 27 Mbps or more of real upload.
Can OBS stream to multiple platforms without a plugin?
Not as of OBS 33. The built-in Stream settings take one destination, and the WebRTC simulcast added in 32.1 sends multiple qualities to a single WHIP destination rather than to several platforms. Use the obs-multi-rtmp plugin, Streamlabs or vMix multi-destination features, or a relay service.
Should I use a relay service or fan out from my own encoder?
A relay sends one copy from your uplink and fans out from a data centre, which solves the bandwidth problem. Fanning out yourself gives you full control and no third party, but needs a full copy of upload per destination. Pick a relay when upload is tight and your own fan-out when control matters.
Why does my FFmpeg output keep failing with exit code 251?
Exit 251 is FFmpeg reporting an EIO 'Input/output error', which for RTMP usually means the ingest server closed the connection. Repeating 251 within seconds means that platform is refusing you outright, so read the first error and stop retrying rather than reconnecting in a loop.
How do I work out which platform actually dropped?
Compare the exact stop time and elapsed runtime of each destination. Legs that stop seconds apart point at per-platform causes; legs that stop together point at your encoder, machine or uplink. Then read that destination's own log and the platform's error reporting, and retest it on its own.
Sources & official docs
- Meta for Developers: Live Video API reference (stream specifications and limits)
- Meta for Developers: Live Video API best practices
- YouTube Help: Choose live encoder settings, bitrates, and resolutions
- YouTube Help: Archive live streams
- YouTube Live Streaming API: Delivering Live YouTube Content via RTMPS
- FFmpeg Formats Documentation: tee and fifo muxers
- OBS Studio Knowledge Base: Stream Connection Troubleshooting
- Instagram: Instagram Live Producer
- OBS Studio releases (version history)


