Question / Help So, I tried doing nvenc into nginx..

flavored

Member
Hey guys,

A little while ago I talked about how i'd like to have a 2 pc streaming setup without the use of a capture card and, well, I've finally gotten around to setting things up. Unfortunately, the problems were not to be delayed as I couldn't get OBS to properly encode through nvenc to a local nginx rtmp server. For whatever reason, whenever I would start streaming to a local server I start getting TRUCKLOADS of late frames, literally, late frames everywhere thus butchering any framerate I have. Local recording/previewing is perfectly fine, but as well as I'd start a syphon to nginx it refuses to acceptably work. What could possible be the problem, is that some kind of nginx influence, limitation? Obviously, for the sake of quality, I tried streaming in high bitrates, strating from 35k but eventually going down to 20 with no change. Going any lower defies the point of the whole endeavour, as quality start noticeably slipping, but I'll probably still try and see if the problem goes away.

Meanwhile, might it be someone has any insight into this along with possible reasons and a solution?:) Thanks!
 

Boildown

Active Member
You should post a log. Actually post logs of both your successful save to disk and your failing stream to nginx.

Which NVEnc preset are you using?
 

Boildown

Active Member
Switch to the High Performance preset instead of the High Quality preset you've been using. If it still fails then, post a new log. Also I'd still like to see the successful log as well. The nginx guide says to use a buffer no larger than 7000, you should probably keep it at exactly 7000, because the larger, the better, in general. I did see that you used 7000 in some attempts and still saw the problem, hoping that the preset change takes care of that.

Its strange, at first it was running ok, only with a marginally high duplicated frames, are those your "successful" attempts? It seems that either the complexity of the video drastically changed in the later attempts, or the game or something else was really hitting the CPU harder than before.
 

flavored

Member
"successful" attempts are just local recordings - those go off without any problem really, solid 60fps at 1080p. I also played with the preset and buffer (setting it to 7k cured occasional disconnects I was having, just as the guide implied), but changing presets didn't have any effect. The thing is the duplicate frames, which butcher framerate when streaming to nginx, they don't exist in local recordings otherwise. No idea what happens, was hoping someone would have an idea. I also looked at that thread of the person with a Final Fantasy XIV problem who seemed to be doing the same, and his log looks similar to mine in terms of late frames and skips.
 
Top