Issue with OBS while multistreaming using RTMP

nekropanzer

New Member
Hi there,

Sorry if there's a thread around about that, I've searched extensively and could not come up with a solution.
I am currently using OBS 28.0.3
I've been streaming so far OK on twitch with no dropped frames and green bitrate and everything's been smooth. I installed that plug-in ( https://github.com/sorayuki/obs-multi-rtmp/releases/ ) since I wanted to multistream on Youtube as well. I've set the plug-in accordingly, everything works kind of, but there's that red bitrate every time I start the plug-in to start streaming simultaneously on Twitch and Youtube. I mean, starting the YT stream with the plug-in just triggers a drop in frames and an orange/red bitrate warning.

My upload speed is 100 mpbs on contract and in reality - testing it with multiple tools - hovers around 85 mpbs.
I am a total scrub on twitch and have no affiliate contracts and whatever and can only stream up to 6k. 1920x1080, nothing too fancy.
Doing the simple math, my upload should be more than enough for doing both streams. I know I am sending twice that 6k signal , but still ... ?

I've tried a lot of stuff, from adding OBS to firewall exceptions, to fiddling with bitrates, to adjusting almost every option out there, switching servers and disabling almost everything ( not that I have much except just a simple chat ) - sometimes it might just work in the green area for a bit, but would start lagging soon and people are telling me the stream is messed up. Eventually, the VODS themselves seem pretty ok and it's like it's a network thing and not the system / GPU lagging or something like that - so there's no evidence of that happening on the VODS, or at least I haven't seen.

So, tl;dr - starting the plugin craps connectivity and shoots me into red bitrate with Twitch becoming laggy.

What I haven't tried though is switching from YT being my main account connected to OBS and having Twitch as the second output. And I haven't actually tried streaming to YouTube only. I will try that today, but here's a few logs that can shed light on the matter, I hope.

The one from Nov.3 , a 4-ish hour long one has the activation of the plugin during the first minute where the red bitrate spikes. I then disable it, so if there's anything - it should be fairly visible as a result?

The second one from Nov.2 is a with both streams going on for 2 hours with constant spikes and red bitrates.

Again, sorry if that's been resolved someplace else, I could not find a fix on these forums.
 

Attachments

  • 2022-11-03 20-24-51.txt
    21.9 KB · Views: 80
  • 2022-11-02 16-16-37.txt
    24.1 KB · Views: 34

nekropanzer

New Member
Hi,
The encoder is set to get it from OBS. The settings are the recommended ones from the Twitch guidelines, 6k bitrate, etc
I've disabled the look-ahead and psycho visual tuning. I've tried with Windows game mode on and off.

I really don't want to downgrade the quality to 720p, since I'm pretty sure there's something wonky going on when I start the plug-in. If I'm streaming just to twitch, everything's fine. And the PC is quite new, with hardware more than capable of handling that. Either the versions don't interact well with each other, or there's some other tiny little thing enabled/disabled, that's throwing the stick in the wheel.

I'm not that tech savvy and I can't read through the log files and see what's going on, so ...
 

rockbottom

Active Member
Double check your multi-RTMP settings. From one of your logs.

16:27:39.084: [FFmpeg NVENC encoder: 'multi-rtmp-video-encoder'] settings:
16:27:39.084: encoder: NVIDIA NVENC H.264 (FFmpeg)
16:27:39.084: rate_control: CBR
16:27:39.084: bitrate: 7800
16:27:39.084: cqp: 0
16:27:39.084: keyint: 120
16:27:39.084: preset: hq
16:27:39.084: profile: high
16:27:39.084: width: 1920
16:27:39.084: height: 1080
16:27:39.084: 2-pass: false
16:27:39.084: b-frames: 2
16:27:39.084: psycho-aq: 1
16:27:39.084: GPU: 0
 

rockbottom

Active Member
Just looked at the first log, dropped frames when just streaming to Twitch too. The percentage only goes up when using the plugin.
 

nekropanzer

New Member
Ye, that one log was with a different bitrate for youtube, then I've done a couple of tests with it getting the settings from OBS ( 6k for both twitch and YT )
I tried it again tonight, with the OBS stats on this time and the thing that went red was the Dropped Frames ( Network )
The frames missed due to rendering lag and skipped frames due to encoding lag were both 0.0%

Here's the log ( with 6k )
There's again that minute somewhere in the beginning where I start the plugin and everything goes down. Then I stop it and instant green.

I will try with my ISP, though it would be rather futile :D
Maybe something like a windows defender/firewall issue ? I will try to reinstall the plug-in though, might be something with the version not interacting well with each other ...

Thanks for help and suggestions!
 

Attachments

  • 2022-11-04 19-54-20.txt
    28.6 KB · Views: 29

sandrix

Member
Use the utility to test speed to twitch servers https://r1ch.net/projects/twitchtest
This utility will allow you to determine the best speed and server.

Then contact the technical department of your provider and provide the data obtained if necessary.

If your ISP asked you for trace data to the YouTube server, then do the following:
- Press the key combination Win + R and type cmd
- After the command prompt starts, enter:
Code:
tracert a.rtmp.youtube.com

The pathping command will also be very useful, with which you can determine the number of lost packets.
Code:
pathping a.rtmp.youtube.com

Thus, you increase the chances that you will be helped.
Otherwise, you will have to reduce the bitrate until the network frame drops disappear.
 
Last edited:

sandrix

Member
If you just want a free tool to multistream, you can try swiftstream. its also free. Its similar to Restream And a better alternative for free multistream plugin

Oh thanks, this is worth a try. There are certain problems with restirim services now. If it's free, at least for 2 directions, then that's cool.
I must admit, its a advertising, and hope this tool will be helpful for your multistreaming.
If you have many suggestions for this tool or you want new features for Swiftstream. Our developers will try to build for you
We are welcome for every suggstions you put up : support@swiftstream.com
Try here https://www.swiftstream.com/ads?ch=458aebf260d211ed988112c5b4eebcc9
Oh thanks, this is worth a try. There are certain problems with restream services now. If it's free, at least for 2 directions, then that's cool.

UPD: Unfortunately, this is only relevant for US residents. Your server pool is located there, which causes a delay of >180 ms if you use the service from Europe.
 
Last edited:

papasaif

New Member
I created an account just for this (just in case it raises any red flags, I'm pretty new to streaming and the first time I encountered this forum was like a week ago). I can confirm the same issue is happening to me on an M2 Macbook air. However I assumed it was happening to me because my laptop was too weak. I keep seeing the encoder overload message when I attempt to multi-stream.

I am streaming to Twitch as my main, YouTube and Kick through the add-on. Today I tried to shut down every app on my stream and see if that made any difference. Tomorrow I was planning to stream using a different M2 Macbook air (my wife's) to see if the issue replicates there. Will update here after.
 
Top