Question / Help Lagged Frames While Recording

Frank Lepore

New Member
Been messing with settings the past few days to find the best configuration for both streaming and recording. Was getting reasonable results with streaming at x264 and recording at NVENC, with both at VBR. But I also hear the claims about VBR not being the best options, so I've been looking for the sweet spot.

Recorded a video that you can find here: https://youtu.be/INv0RU0M_sk

The quality is fine, but every now and then there's a slight video stutter (audio remains unaffected). I'm only able to notice it due to the webcam being present. Some times frames where you can notice it:

0:23
1:22
18:23

I've attached a log file while does mention the following: "Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 351 (0.9%)"

Is what the log file is referring to here what I'm seeing in the video?

When making setting suggestions, keep in mind I will often (but not always) be streaming and recording at the same time.

My specs should all be present in the log file, but if you have any questions or can provide any advice, I'd be extremely grateful! I know my hardware should be capable of some reasonable settings. Thanks in advance!
 

Attachments

  • 2017-07-02 03-08-06.txt
    32.5 KB · Views: 13
Last edited:

EBrito

Active Member
All media sources are configured like this:
03:08:08.177: close_when_inactive: no

this means all are running in background even when scene is not active.


Rendering lag: OBS uses your GPU to render frames. So, reduce a bit ingame graphics. Or, maybe, reduce webcam resolution. As your webcam is not fullscreen, 1080p is not really needed.
 

DeMoN

Member
OBS' DirectShow Plugin is a ressource hog.
Already 20% GPU and 7% CPU just by OBS running with 2560x1600p60 from a capture card you'll feel how painfully slow the directshow capture plugin is.
It drops my F1 2016 from 80fps down to about 50 fps just by OBS running at the background. Another drop to about 36fps when capture is started. And that with NVEnc.
Using virtualdub with preview disabled I lose even with capture no fps or let it be 5 fps, I dont know. But not noticable.
I think it is because OBS renders the preview all the time, even if it is deactivated and the preview combined with the directshow plugin of OBS is seems to be a ressource hog. Thats really not that nice. Makes it a nogo for me with capture card. Maybe you suffer too from the slow plugin.
 

Frank Lepore

New Member
Changed some settings tonight. This was my log. Seems worse. :/ The settings I used are represented in the image using CBR. The other settings were a previous stream where I received similar dropped frames. Not sure what the culprit is here.
 

Attachments

  • 2017-07-02 20-39-30.txt
    44.8 KB · Views: 8
  • Dropping Frames, hovering around 3000.PNG
    Dropping Frames, hovering around 3000.PNG
    167 KB · Views: 24
  • Dropping frames, going between 2000 and 5000.PNG
    Dropping frames, going between 2000 and 5000.PNG
    116.5 KB · Views: 21

EBrito

Active Member
Streaming CBR 3400 Kbps
20:45:06.073: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 36 (0.8%)
20:45:06.073: Output 'adv_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 16 (0.4%)

Recording VBR 10000 Kbps
00:29:57.370: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 3949 (1.0%)
00:29:57.370: Output 'adv_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 7635 (1.9%)
00:29:57.371: Video stopped, number of skipped frames due to encoding lag: 242/404559 (0.1%)


Rendering lag:
You monitor is 4K. Rendering down to 1080p in OBS needs a little more room. Reduce a bit ingame graphics (reduce anisotropic, for instance. Or MSAA.)

Minor network problems. Maybe TCPOtimizer can help you configure your connection.

VBR minor encoding lag: NVENC can´t do it at CQP 10. Rise it to 12 and try.
 

Frank Lepore

New Member
Funny thing is I used to onlydownscale to 2560x1440 and that actually seemed to work better. I only changed it the other day with the intent to optimize things!
 
Top