UPD azing SoraYuki blogged their obs-multi-rtmp plug-in, you really do not require this guide anymore, due to the fact plug-in is easier to use. Particularly, much simpler. But if you you need FFmpeg filter systems, or you have to output at more frame cost, read on.
Before you comprehend, please be aware this particular is only beneficial if the a 3rd party solution eg does not work for you. Including, some of the more challenging setups might require a good insights out-of order-range FFmpeg. If you want help to suit your particular setup, ping Nakajima Megumi#7432 regarding the obsproject service Dissension.
There are multiple selection for this
All round suggestion can be comes after: host a great RTMP servers on your personal computer, stream compared to that host, upcoming play with FFmpeg to duplicate the load so you’re able to as numerous online streaming programs as you need in order to, with or rather than reencoding.
One I would suggest really to possess Windows was MonaServer, as it is relatively easy to set up – simply pull and you can run. Obtain it here: Pull they, up coming launch MonaServer.exe in the command range. Example order:
Feel free to forget mistake texts not relevant to the new RTMP machine running on vent 1935. This may server an excellent RTMP servers on your own Window Desktop; automatically, only just be capable stream so you can they if you do not submit port 1935. When you are playing with Linux, otherwise you would want to establish a very ability-rich machine, you are able to the fresh publication of dodgepong, right here
In OBS Business, duplicate your existing real time-online streaming profile by pressing Profiles > Backup. This may allow you to without difficulty undo all of the changes, if you wish to.
Without having FFmpeg installed but really, to go and you will install new 64-bit static generate. Pull ffmpeg.exe, ffprobe.exe and you can ffplay.exe into exact same folder where you features MonaServer.exe. Today, let’s check if new weight try real time.
Once the I’m seeing my stream, I see a video viewpoints perception. Don’t get worried regarding the large weight reduce, a lot of they originated in ffplay’s buffering, RTMP should establish about 800 ms out-of even more latency at the worst, 100-200 ms normally. End ffplay of the striking q in its window or Ctrl+C regarding the order line windows the place you spawned they.
So now you you prefer the weight secrets additionally the direct complete road each aired you need to work on. Such as for instance, Twitch’s take-in servers in the France can be acquired within rtmp://live-fra.twitch.tv/app/ and Youtube’s number 1 absorb machine try rtmp://an excellent.rtmp.youtube/live2 . What this means is that full enjoy road having broadcasting with the Twitch might be rtmp://live-fra.twitch.tv/app/my-stream-trick, in which my-stream-key can be your full weight trick. To see an entire range of take-in server OBS Studio reveals, understand .
Note that I will be utilizing line holiday breaks for much more easier reading in analogy requests; you will need to take them out.
To accomplish this, would a new CMD or Powershell screen and use ffplay out-of their down load regarding ffmpeg:
Because of it, you will want to discharge a different sort of FFmpeg eg for every single solution. So it escalates the full RAM and you may Central processing unit footprint slightly. Here’s an example demand to begin with streaming to a single platform: ffmpeg -i rtmp://localhost:1935/live/load -c:v duplicate -c:a copy -f flv rtmp://live-fra.twitch.tv/app/my-stream-key You can stop the weight because of the often closure this new CMD/PowerShell windows, or because of the clicking Ctrl+C. FFmpeg will attempt to go away cleanly, and this can be sluggish; if you want to push-prevent FFmpeg, sending Ctrl+C four or more minutes can cause a power-stop.
In order to shown so you can multiple programs otherwise streams immediately, we are able to make use of the “tee” method and you will independent enjoy pathways on | profile. Why don’t we try it first by remuxing nearby weight and you can lso are-streaming it to the individual server:
Imagine if we wish to stream so you can Twitch within the 720p 60fps six mbps, also to Youtube in 1080p 60fps 20 mbps. There are two main a means to method it – both load locally when you look at the high quality (address a hundred-230 mbps, otherwise have fun with CQP) and you can manage a few reencodes, slightly increasing the performance impact, or weight into the a bit rates high enough to have Youtube and reencode they to have Twitch, damaging the grade of Twitch’s weight.
If we provides a premier-top quality regional load irish wedding bride and wish to carry out several x264 reencodes, keeping our very own 160kbps sounds for both avenues, we’d become specifying outputs one at a time, like this:
Notice incorporating -vf “scale=” – so it adds a video clip filter so you’re able to downscale the newest load to help you 720p for Twitch. I’m if in case the new enter in would be 1080p 60fps, that will be just what Youtube will have.
Or, can you imagine you happen to be streaming from OBS Facility within 20 mbps 1080p 60fps and would like to duplicate the fresh new weight due to the fact-is to Youtube, and you may reencode to help you cuatro mbps 720p 31 fps to have Twitch:
Mention incorporating -r 31 to drop out of sixty frames per second to 29 fps. If for example the type in try fps (6), you can miss so you’re able to that with -r step 3 .
Mention on FFmpeg solutions and preset selection: -predetermined veryfast chooses the brand new x264 predetermined, “veryfast”. FFmpeg may also have fun with NVENC having -c:v h264_nvenc – in that case, I would personally suggest using -predetermined slow (2-citation high quality) into the the cards but Turing notes; for the Turing notes I would highly recommend -predetermined hq (unmarried violation top quality). Note that because of NVIDIA’s selling limits you could only use dos concurrent NVENC classes towards GeForce notes; trying to begin a third one commonly toss an “from thoughts” mistake (even though you have enough spare VRAM). FFmpeg can also explore AMD AMF having -c:v h264_amf , delight consider that it documentation for making use of AMF: ffmpeg -hide_banner -h encoder=h264_amf
This one requires an effective comprehension of this new demand range screen and you can FFmpeg. I will just be sure to explain it and offer advice, however, if that doesn’t assist, you may still must search through FFmpeg’s documents.
Let’s say we grab a high quality enter in, rescue it as-will be to file, up coming reencode so you can 2 mbps and you may send so you’re able to dos properties: Make load ffmpeg -hide_banner -we rtmp://localhost:1935/live/load Help save in your neighborhood -c:v copy -c:a duplicate -f mp4 source.mp4 Reencode which have two outputs -c:v libx264 -b:v 2000k -c:a copy -chart 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 want let for your certain settings, or specific areas of this new publication is actually undecided, ping Nakajima Megumi#7432 from the obsproject Discord with your concerns.