OBS Business: Load so you can multiple platforms or avenues at once

October 18, 2022

UPD azing SoraYuki composed their obs-multi-rtmp plug-in, you really do not require this guide anymore, as the plug-in is easier to use. Including, much easier. But if you you want FFmpeg filters, or if you need certainly to productivity during the other physical stature cost, read on.

Before you can comprehend, please note this is helpful in the event that a third party services such as for example doesn’t work for you. As well as, some of the more complicated configurations might require a insights of order-range FFmpeg. If you would like assist for your certain setup, ping Nakajima Megumi#7432 in the obsproject support Discord.

There are multiple selection for this

The overall suggestion can be observe: host a RTMP servers on your pc, stream to that particular machine, next have fun with FFmpeg to reproduce the newest load so you’re able to as much streaming networks as you need to, which have otherwise rather than reencoding.

One I suggest physically having Window was MonaServer, since it is relatively easy to set up – just pull and you will work on. Have it right here: Extract they, after that launch MonaServer.exe on the demand line. Analogy command:

Go ahead and ignore mistake messages not strongly related to the newest RTMP server powered by port 1935. This will server a great RTMP servers in your Window Desktop; automagically, merely just be able to weight to help you they if you do not give vent 1935. While using Linux, or you want to establish a element-rich server, you can make use of the new publication off dodgepong, right here

When you look at the OBS Studio, duplicate your live-online streaming reputation from the pressing Pages > Content. This can enable you to with ease undo most of the change, if you wish to.

If you don’t have FFmpeg strung yet, commit and you will download the fresh 64-piece static make. Pull ffmpeg.exe, ffprobe.exe and you can ffplay.exe for the same folder in which you enjoys MonaServer.exe. Now, let’s check if the brand new weight is real time.

While the I’m enjoying my very own weight, I look for videos feedback feeling. Don’t be concerned regarding the highest load slow down, most of it came from ffplay’s buffering, RTMP is always to expose on the 800 ms out of additional latency at the worst, 100-2 hundred ms normally. End ffplay by hitting q in windows otherwise Ctrl+C from the demand line windows the gay hookup site place you produced they.

So now you you desire their load tactics therefore the appropriate complete path for each transmitted you want to work on. For example, Twitch’s absorb servers within the France exists at the rtmp://live-fra.twitch.tv/app/ and you may Youtube’s number one ingest server try rtmp://a.rtmp.youtube/live2 . Meaning your full play roadway for broadcasting to your Twitch will be rtmp://live-fra.twitch.tv/app/my-stream-secret, where my-stream-trick is the full load trick. To see the full directory of absorb machine OBS Facility reveals, see .

Note that I can use line breaks for more smoother reading in example requests; try to remove them.

To achieve that, create a separate CMD otherwise Powershell windows and make use of ffplay off your obtain from ffmpeg:

For this, you really need to discharge a new FFmpeg such as for instance per service. That it escalates the complete RAM and you will Cpu impact a little. Just to illustrate order to begin with online streaming to a single system: ffmpeg -i rtmp://localhost:1935/live/weight -c:v content -c:a duplicate -f flv rtmp://live-fra.twitch.tv/app/my-stream-secret You could potentially stop the stream from the often closure new CMD/PowerShell window, otherwise from the pressing Ctrl+C. FFmpeg will endeavour to exit cleanly, which may be sluggish; if you need to force-stop FFmpeg, delivering Ctrl+C four or more times may cause a force-prevent.

To help you broadcast to help you numerous networks otherwise avenues at the same time, we could use the “tee” method and you will separate enjoy routes with the | reputation. Why don’t we give it a try basic by the remuxing your local load and you may lso are-online streaming they to the individual host:

Can you imagine you want to weight to help you Twitch inside 720p 60fps six mbps, and also to Youtube inside 1080p 60fps 20 mbps. There’s two an effective way to strategy that it – sometimes load in your area into the top quality (address 100-230 mbps, or explore CQP) and you may carry out a couple of reencodes, some enhancing the show impact, otherwise load inside the some time speed high enough for Youtube and you may reencode they to have Twitch, harming the standard of Twitch’s weight.

When we has a top-quality local load and want to carry out a couple x264 reencodes, staying the 160kbps music for avenues, we had become indicating outputs one after the other, like this:

Mention the addition of -vf “scale=” – it contributes videos filter out to downscale the fresh new stream to 720p getting Twitch. I am while the latest enter in might be 1080p 60fps, that’s just what Youtube get.

Otherwise, what if you happen to be streaming out-of OBS Studio at the 20 mbps 1080p 60fps and want to backup the latest load while the-is to try to Youtube, and you will reencode to cuatro mbps 720p 31 fps to possess Twitch:

Notice incorporating -roentgen 31 to decrease away from 60 frames per second to help you 29 frames per second. Whether your input are fps (6), you could get rid of to that with -r step three .

Notice to the FFmpeg solutions and preset choices: -preset veryfast picks the fresh new x264 preset, “veryfast”. FFmpeg can also have fun with NVENC that have -c:v h264_nvenc – in that case, I might strongly recommend playing with -predetermined sluggish (2-violation top quality) with the most of the cards but Turing cards; into the Turing cards I would recommend -preset hq (single pass quality). Keep in mind that on account of NVIDIA’s sales limits you could use only dos concurrent NVENC sessions towards the GeForce cards; seeking start a 3rd you to tend to place a keen “off thoughts” mistake (even although you have enough spare VRAM). FFmpeg can also have fun with AMD AMF having -c:v h264_amf , excite refer to that it papers for making use of AMF: ffmpeg -hide_flag -h encoder=h264_amf

That one means an effective comprehension of the brand new command range program and you may FFmpeg. I am going to you will need to define they and supply instances, but if that does not assist, you might still need certainly to dig through FFmpeg’s documents.

Let’s say we just take a top quality input, rescue it as-is to try to document, following reencode in order to 2 mbps and you will post to dos attributes: Take the load ffmpeg -hide_flag -i rtmp://localhost:1935/live/load Help save in your town -c:v duplicate -c:a copy -f mp4 source.mp4 Reencode with several outputs -c:v libx264 -b:v 2000k -c:a copy -map 0 -f tee “[f=flv]rtmp://live-fra.twitch.tv/app/my-stream-key|[f=flv]rtmp://live-fra.twitch.tv/app/my-second-stream-key”

If you need assist for your specific settings, or particular areas of the brand new book are unclear, ping Nakajima Megumi#7432 regarding obsproject Discord with your issues.