Fallen_Tyrael
New Member
I've had a lot of tinkering around lately and currently seem to be more or less able to stream with 100 mbit/s, but I had to install a different RTMP module, and switch network card to gigabit mode. Otherwise I was unable to exceed 12 mbit/s.
nginx RTMP module I use now: https://github.com/sergey-dryabzhinsky/nginx-rtmp-module/archive/dev.zip
Current working setup for nginx on Linux is here: https://pastebin.com/viXQTKMh
There's also a recent tweak to ffmpeg I found recently that MIGHT help with this crap:
I've hed no time to test it out yet, but might help with my OBS drops when photoshop is launched (really?...)
Insert this to the beginning of your RTMP module.
- ping 1m;
- ping_timeout 10s;
- drop_idle_publisher 10s;
So are you able to stream at 100 mbit/s stable using nvenc? Because i'm finding that whatever I set my nvenc CBR bitrate to the buffer size seems to be forced to half that. For example if I set to 50 mbit/s and nothing is happening on screen the bitrate drops on obs to about 25 mbit/s however when things get busy all of a sudden it will spike to 70 mbit/s, and like you said on one of your replies above nginx never used to like anything over 7mbit and i think that its those large spikes and drops that might still be the issue in a way. But i cant be sure though if its network hardware, nginx or ffmepg that's the problem as this issue has been a real ballache to nail down over the years as it seems almost random, and not being able to fix a custom buffer size with nvenc doesn't help at all.
So what i am doing at the moment is starting from scratch and sending a x264, 100mbit bitrate with a 5mbit buffer stream of a high and low motion video to just nginx (no transcoding) and see if it drops network usage at all and after 1 hour (so far) i haven't seen a drop in network usage or a disconnect. I'm going to probably run this test for another hour and if all goes well ill up the buffer to 25mbit and see what happens.
Just part of me suspects its ffmpeg that can't handle really large sudden changes to bitrate when transcoding a live rtmp stream.
Last edited: