Question / Help Recording Lag Issue, Settings Irrelevant, Shadowplay Works Fine???

SneakyKGB

New Member
Having a huge issue with lag in my recordings and preview screen. I've tried a variety of different settings with no distinguishable differences. My gameplay runs completely smooth at a steady 90+ FPS but my recording comes out choppy, as in the video below. I've tried using Vsync in game to lock the frames, I've tried changing in game settings, recording settings, resolution, bit rate, encoders, nothing seems to make it go away.

I also attempted to use ShadowPlay by Nvidia to record the same footage, and came away with a much smoother result. I like OBS a lot and wish to keep using it but I'm at wit's end here and I can't have choppy footage going up on my channel. You can see a little stutter in the Shadowplay footage at the start, but nowhere near as noticeable.

My goal is to record in 1080p, preferably at 60fps. It seems more than possible with my setup, but I can't wrap my head around why OBS is producing these choppy results. If anybody else can help me out, I'd greatly appreciate it. I've run out of threads and videos with useful information and it seems like it has to be something specific to my setup.

OBS video: https://youtu.be/_feAeXzGkGk
Shadowplay: https://youtu.be/eQE_TcbaRhc

Code:
14:26:53.038: CPU Name: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
14:26:53.038: CPU Speed: 4200MHz
14:26:53.038: Physical Cores: 4, Logical Cores: 8
14:26:53.038: Physical Memory: 16343MB Total, 8053MB Free
14:26:53.038: Windows Version: 10.0 Build 16299 (revision: 125; 64-bit)
14:26:53.038: Running as administrator: false
14:26:53.038: Aero is Enabled (Aero is always on for windows 8 and above)
14:26:53.038: Windows 10 Gaming Features:
14:26:53.038:    Game DVR: On
14:26:53.039: Sec. Software Status:
14:26:53.040:    Windows Defender Antivirus: enabled (AV)
14:26:53.040:    Windows Firewall: enabled (FW)
14:26:53.040:    Windows Defender Antivirus: enabled (ASW)
14:26:53.041: Portable mode: false
14:26:53.055: OBS 21.0.1 (64bit, windows)
14:26:53.055: ---------------------------------
14:26:53.056: ---------------------------------
14:26:53.056: audio settings reset:
14:26:53.056:    samples per sec: 44100
14:26:53.056:    speakers:        2
14:26:53.057: ---------------------------------
14:26:53.057: Initializing D3D11...
14:26:53.057: Available Video Adapters:
14:26:53.057:    Adapter 1: NVIDIA GeForce GTX 1070
14:26:53.057:      Dedicated VRAM: 4185915392
14:26:53.057:      Shared VRAM:    4273473536
14:26:53.057:      output 1: pos={0, 0}, size={1920, 1080}, attached=true
14:26:53.058:      output 2: pos={1920, 0}, size={1920, 1080}, attached=true
14:26:53.059: Loading up D3D11 on adapter NVIDIA GeForce GTX 1070 (0)
14:26:53.091: D3D11 loaded successfully, feature level used: 45056
14:26:53.803: ---------------------------------
14:26:53.803: video settings reset:
14:26:53.803:    base resolution:   1920x1080
14:26:53.803:    output resolution: 1920x1080
14:26:53.803:    downscale filter:  Bicubic
14:26:53.803:    fps:               60/1
14:26:53.803:    format:            NV12
14:26:53.806: Audio monitoring device:
14:26:53.806:    name: Default
14:26:53.806:    id: default
14:26:53.806: ---------------------------------
14:26:53.807: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
14:26:53.808: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
14:26:53.837: [AMF] <obs_module_load> AMF not supported (no AMD graphics)
14:26:53.837: Failed to initialize module 'enc-amf.dll'
14:26:53.845: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
14:26:53.846: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
14:26:53.846: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
14:26:53.847: Failed to load 'en-US' text for module: 'obs-browser.dll'
14:26:53.847: [browser_source: 'Version: 1.29.0']
14:26:53.849: NVENC supported
14:26:53.897: Couldn't find VLC installation, VLC video source disabled
14:26:53.901: No blackmagic support
14:26:53.983: ---------------------------------
14:26:53.983:   Loaded Modules:
14:26:53.983:     win-wasapi.dll
14:26:53.983:     win-mf.dll
14:26:53.983:     win-ivcam.dll
14:26:53.983:     win-dshow.dll
14:26:53.983:     win-decklink.dll
14:26:53.983:     win-capture.dll
14:26:53.983:     vlc-video.dll
14:26:53.983:     text-freetype2.dll
14:26:53.983:     rtmp-services.dll
14:26:53.983:     obs-x264.dll
14:26:53.983:     obs-vst.dll
14:26:53.983:     obs-transitions.dll
14:26:53.983:     obs-text.dll
14:26:53.983:     obs-qsv11.dll
14:26:53.983:     obs-outputs.dll
14:26:53.983:     obs-filters.dll
14:26:53.983:     obs-ffmpeg.dll
14:26:53.983:     obs-browser.dll
14:26:53.983:     image-source.dll
14:26:53.983:     frontend-tools.dll
14:26:53.983:     enc-amf.dll
14:26:53.983:     coreaudio-encoder.dll
14:26:53.983: ---------------------------------
14:26:53.983: ==== Startup complete ===============================================
14:26:53.987: All scene data cleared
14:26:53.987: ------------------------------------------------
14:26:54.018: WASAPI: Device 'Speakers (High Definition Audio Device)' initialized
14:26:54.034: WASAPI: Device 'Microphone (Blue Snowball)' initialized
14:26:54.083: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
14:26:55.159: [window-capture: 'Window Capture'] update settings:
14:26:55.159:    executable: LeagueClientUx.exe
14:26:55.215: warning: deprecated pixel format used, make sure you did set range correctly
14:26:55.216: warning: Warning: data is not aligned! This can lead to a speed loss
14:26:55.256: Switched to scene 'Record'
14:26:55.257: [game-capture: 'Amnesia'] attempting to hook process: ACOrigins.exe
14:26:55.260: ------------------------------------------------
14:26:55.260: Loaded scenes:
14:26:55.260: - scene 'Default':
14:26:55.260:     - source: 'Image' (image_source)
14:26:55.260:     - source: 'League BG' (image_source)
14:26:55.260:     - source: 'Window Capture' (window_capture)
14:26:55.260:     - source: 'Game Capture' (game_capture)
14:26:55.260:     - source: 'BrowserSource' (browser_source)
14:26:55.260:     - source: 'Video Capture Device' (dshow_input)
14:26:55.260:         - filter: 'Color Correction' (color_filter)
14:26:55.260:     - source: 'def.overlay' (image_source)
14:26:55.260:     - source: 'Beginning Soon' (text_gdiplus)
14:26:55.260: - scene 'PUBG':
14:26:55.260:     - source: 'Image' (image_source)
14:26:55.260:     - source: 'Game Capture' (game_capture)
14:26:55.260:     - source: 'Video Capture Device' (dshow_input)
14:26:55.260:         - filter: 'Color Correction' (color_filter)
14:26:55.260:     - source: 'BrowserSource' (browser_source)
14:26:55.260:     - source: 'pub overlay' (image_source)
14:26:55.260: - scene 'Siege':
14:26:55.260:     - source: 'Image' (image_source)
14:26:55.260:     - source: 'Game Capture' (game_capture)
14:26:55.260:     - source: 'Video Capture Device' (dshow_input)
14:26:55.260:         - filter: 'Color Correction' (color_filter)
14:26:55.260:     - source: 'BrowserSource' (browser_source)
14:26:55.260:     - source: 'Ash' (image_source)
14:26:55.260:     - source: 'overlay' (image_source)
14:26:55.260: - scene 'Record':
14:26:55.260:     - source: 'Amnesia' (game_capture)
14:26:55.260: ------------------------------------------------
14:26:55.260: [game-capture: 'Amnesia'] shared texture capture successful
14:27:09.857: Settings changed (outputs)
14:27:09.857: ------------------------------------------------
14:27:22.218: ---------------------------------
14:27:22.218: [NVENC encoder: 'recording_h264'] settings:
14:27:22.218:    rate_control: CBR
14:27:22.218:    bitrate:      40000
14:27:22.218:    cqp:          0
14:27:22.218:    keyint:       250
14:27:22.218:    preset:       hq
14:27:22.218:    profile:      high
14:27:22.218:    level:        auto
14:27:22.218:    width:        1920
14:27:22.218:    height:       1080
14:27:22.218:    2-pass:       true
14:27:22.218:    b-frames:     2
14:27:22.218:    GPU:          0
14:27:22.218:
14:27:22.615: [Media Foundation AAC: 'Track1']: encoder created
14:27:22.615:    bitrate: 160
14:27:22.615:    channels: 2
14:27:22.615:    sample rate: 44100
14:27:22.615:    bits-per-sample: 16
14:27:22.615:
14:27:22.623: ==== Recording Start ===============================================
14:27:22.623: [ffmpeg muxer: 'adv_file_output'] Writing file 'C:/Users/SneakyKGB/Videos/LP, Assassin's Creed/2018-02-25 14-27-22.flv'...
14:27:44.709: [ffmpeg muxer: 'adv_file_output'] Output of file 'C:/Users/SneakyKGB/Videos/LP, Assassin's Creed/2018-02-25 14-27-22.flv' stopped
14:27:44.709: Output 'adv_file_output': stopping
14:27:44.709: Output 'adv_file_output': Total frames output: 1314
14:27:44.709: Output 'adv_file_output': Total drawn frames: 1325
14:27:44.709: ==== Recording Stop ================================================
14:28:00.417: Settings changed (outputs)
14:28:00.417: ------------------------------------------------
14:28:04.571: ---------------------------------
14:28:04.571: [NVENC encoder: 'recording_h264'] settings:
14:28:04.571:    rate_control: CQP
14:28:04.571:    bitrate:      0
14:28:04.571:    cqp:          23
14:28:04.571:    keyint:       250
14:28:04.571:    preset:       hq
14:28:04.571:    profile:      high
14:28:04.571:    level:        auto
14:28:04.571:    width:        1920
14:28:04.571:    height:       1080
14:28:04.571:    2-pass:       true
14:28:04.571:    b-frames:     2
14:28:04.571:    GPU:          0
14:28:04.571:
14:28:04.636: warning: Using global_quality with nvenc is deprecated. Use qp instead.
14:28:04.699: [Media Foundation AAC: 'Track1']: encoder created
14:28:04.699:    bitrate: 160
14:28:04.699:    channels: 2
14:28:04.699:    sample rate: 44100
14:28:04.699:    bits-per-sample: 16
14:28:04.699:
14:28:04.706: ==== Recording Start ===============================================
14:28:04.706: [ffmpeg muxer: 'adv_file_output'] Writing file 'C:/Users/SneakyKGB/Videos/LP, Assassin's Creed/2018-02-25 14-28-04.flv'...
14:28:23.555: [ffmpeg muxer: 'adv_file_output'] Output of file 'C:/Users/SneakyKGB/Videos/LP, Assassin's Creed/2018-02-25 14-28-04.flv' stopped
14:28:23.555: Output 'adv_file_output': stopping
14:28:23.555: Output 'adv_file_output': Total frames output: 1119
14:28:23.555: Output 'adv_file_output': Total drawn frames: 1131
14:28:23.555: ==== Recording Stop ================================================
 
I think with your 7700k and GTX 1070, you should stick with high settings & 100% render scaling for in-game settings.
Is your 7700k overclocked by chance? This will help a bit as well.
What speed is your RAM running at? 2400Mhz+ will give you the best performance

For a game such as AC Origins (CPU intensive) I would stick with h264 (NVENC) encoding, this will reduce as much load as possible off your CPU.
Using CQP of 15-23, High Performance, High Profile, 0 (Auto) or 2 keyframe Interval will probably be the best bet as well, as AC Origins is also GPU intensive to a large degree.

Make sure to try and reduce the load on your GPU, you want around 15-20fps overhead when using h264 encoder, 10-15fps overhead when using x264 encoder.

If there are any options in-game towards nVidia GameWorks functionality, individually test them to see if one of those are the cause of the issue as well, if it is still stuttering after the above changes and fps limit setting. It may be a case of it putting a lot more load than it seems on your GPU whilst you are recording and playing the game.
I know you have stated in your initial post, however:
Limiting your frame rate in-game will help a lot in getting the best quality out of your hardware in regards to recording/streaming. I recommend using MSI AfterBurner or EVGA Precision to cap your fps to your monitor refresh rate, or 1-3 frames higher than your monitor refresh rate will generally resolve the issue of screen tearing. Try to avoid V-Sync as it can induce input lag.

In your logfile I noticed you have Windows GameDVR enabled. This may be a cause of the performance issue as even when you are not using it, just having it enabled in Windows settings it will always hook into the game process and commit resources (Similar to what OBS does when OBS is open, though more aggressively as it also buffers for replay recording)

Another thing to note, when uploading a logfile to assist in troubleshooting, 3 minutes or more worth of footage is best as it give a lot more frames to be encoded and rendered for output. Generally the best way to do test footage for troubleshooting is to find the most fps intensive area, create a route with that area in the center of it, then run through it, turn around and run through it going the opposite direction back to where you started. It will also assist you in fine-tuning in-game graphic settings.

Last yet not least, it is much easier for others to assist in troubleshooting if you upload the logfile via the menu option in OBS:
https://obsproject.com/forum/threads/please-post-a-log-with-your-issue-heres-how.23074/

I hope this helps!
 
Top