Question / Help Stuttery OBS recordings (not streams). In game is 140 fps

DamageInc

Member
Hi guys

Im running an i7 4790k, 16gb fast ram and a gtx 980.
Im using OBS to record BattleField 4 game play. I was attracted to OBS Studios ability to record multiple audio channels. Im recording in game sound, my mic and Teamspeak3 seperately.

Im recording at 1440p, 60 fps using the nvenc encoder at a 60000 bitrate and using CBR. Im recording from obs to an ssd which is seperate to my OS ssd and sepetate again to my games ssd.

The mp4 output when watched in premiere pro is choppy...like 25 fps choppy. Whilst im recording my gameplay is smooth and normal hitting 120 to 140 fps continually.

Any thoughts on what i can try to generate recordings which are act
 

Harold

Active Member
Im recording at 1440p, 60 fps using the nvenc encoder at a 60000 bitrate and using CBR.
Why cbr when recording?
Why not simply use the simple output mode presets?

Post your OBS log too.
 

DamageInc

Member
I will post log tomorrow (im in bed now lol).

Im not using simple output mode presets because they dont allow you to configure multiple audio stream recording (unless i missed something)

But i will try it in the morning with just in game sounds being recorded
Ill post a log too

Chees for replies.
 

DamageInc

Member
OK, I just did a recording in OBS.
2560 x 1440, 60fps, NVENC H.264 at 80,000 bitrate. Preset=HighQuality, Profile=High, Level=5.1. Two pass encoding is off. I recorded 3 audio streams (Game, My Mic and TS3) each at 192 bitrate.

Here is the OBS log:
Code:
OBS Log

I brought the raw footage from OBS into Premiere and watched it. It was ok, but im still seeing the chop. I stepped through several "seconds" frame by frame and what i see is that out of 60 frames (its recorded at 60fps) 7 of the frames will have an identical frame following it...so about every 7-9 frames i get a double frame - which my eyes see as stuttering.

Now Im a bit spoiled, as i game on a 144hz monitor and get 140 fps which means Im used to SILKY smooth gameplay now and when i see 60fps it feels flickery, but this is worse than that sensation.

Anyhow - hope anyone has any suggestions now you have my log.
Cheers!
 

DamageInc

Member
Log (2nd attempt):

This is utterly frustrating....i keep getting the message that i cant post more than 10,000 characters in the message, despite putting it into CODE brackets. Ill try half then half in another post.

LOG Part 1
Code:
13:52:55.608: CPU Name: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
13:52:55.608: CPU Speed: 4000MHz
13:52:55.609: Physical Cores: 4, Logical Cores: 8
13:52:55.609: Physical Memory: 16325MB Total, 12744MB Free
13:52:55.609: Windows Version: 10.0 Build 14393 (revision: 0)
13:52:55.609: Running as administrator: false
13:52:55.609: Aero is Enabled (Aero is always on for windows 8 and above)
13:52:55.617: OBS 0.15.4 (64bit, windows)
13:52:55.617: ---------------------------------
13:52:55.618: ---------------------------------
13:52:55.618: audio settings reset:
13:52:55.618:     samples per sec: 48000
13:52:55.618:     speakers:        2
13:52:55.620: ---------------------------------
13:52:55.620: Initializing D3D11..
13:52:55.620: Available Video Adapters:
13:52:55.621:     Adapter 1: NVIDIA GeForce GTX 980
13:52:55.622:       Dedicated VRAM: 4258070528
13:52:55.622:       Shared VRAM:    4264513536
13:52:55.622:       output 1: pos={0, 0}, size={2560, 1440}, attached=true
13:52:55.622:       output 2: pos={2560, 224}, size={1920, 1200}, attached=true
13:52:55.622:       output 3: pos={-1920, 239}, size={1920, 1200}, attached=true
13:52:55.624: Loading up D3D11 on adapter NVIDIA GeForce GTX 980 (0)
13:52:56.016: D3D11 loaded sucessfully, feature level used: 45056
13:52:56.590: ---------------------------------
13:52:56.590: video settings reset:
13:52:56.590:     base resolution:   2560x1440
13:52:56.590:     output resolution: 2560x1440
13:52:56.590:     fps:               60/1
13:52:56.590:     format:            NV12
13:52:56.591: ---------------------------------
13:52:56.593: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
13:52:56.600: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
13:52:56.601: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
13:52:56.602: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
13:52:56.603: Failed to load 'en-US' text for module: 'obs-browser.dll'
13:52:56.606: NVENC supported
13:52:56.680: Couldn't find VLC installation, VLC video source disabled
13:52:59.595: No blackmagic support
13:52:59.626: ---------------------------------
13:52:59.626:   Loaded Modules:
13:52:59.626:     win-wasapi.dll
13:52:59.626:     win-mf.dll
13:52:59.626:     win-dshow.dll
13:52:59.626:     win-decklink.dll
13:52:59.626:     win-capture.dll
13:52:59.626:     vlc-video.dll
13:52:59.626:     text-freetype2.dll
13:52:59.626:     rtmp-services.dll
13:52:59.626:     obs-x264.dll
13:52:59.626:     obs-transitions.dll
13:52:59.626:     obs-qsv11.dll
13:52:59.626:     obs-outputs.dll
13:52:59.626:     obs-filters.dll
13:52:59.626:     obs-ffmpeg.dll
13:52:59.626:     obs-browser.dll
13:52:59.626:     image-source.dll
13:52:59.626:     coreaudio-encoder.dll
13:52:59.626: ==== Startup complete ===============================================
13:52:59.627: All scene data cleared
13:52:59.627: ------------------------------------------------
13:52:59.644: WASAPI: Device 'Speakers (Razer Surround Audio Controller)' initialized
13:52:59.647: WASAPI: Device 'VoiceMeeter Output (VB-Audio VoiceMeeter VAIO)' initialized
13:52:59.654: WASAPI: Device 'VoiceMeeter Aux Output (VB-Audio VoiceMeeter AUX VAIO)' initialized
13:52:59.656: Switched to scene 'BF4'
13:52:59.656: ------------------------------------------------
13:52:59.656: Loaded scenes:
13:52:59.656: - scene 'BF4':
13:52:59.656:     - source: 'Game Capture' (game_capture)
13:52:59.656: ------------------------------------------------
13:52:59.658: [game-capture: 'Game Capture'] attempting to hook process: bf4.exe
13:52:59.699: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds
13:52:59.701: [game-capture: 'Game Capture'] using direct hook
13:52:59.703: [game-capture: 'Game Capture'] Hooked to process: bf4.exe
13:52:59.703: [game-capture: 'Game Capture'] (half life scientist) everything..  seems to be in order
13:52:59.708: [game-capture: 'Game Capture'] Hooked DXGI
13:53:00.063: Update check: last known remote version is 0.15.4
13:53:04.702: adding 85 milliseconds of audio buffering, total audio buffering is now 128 milliseconds
13:53:04.763: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
13:53:04.767: [game-capture: 'Game Capture'] ----------------- d3d11 capture freed ----------------
13:53:04.846: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
13:53:20.378: [game-capture: 'Game Capture'] ----------------- d3d11 capture freed ----------------
13:53:20.399: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
13:53:31.005: ---------------------------------
13:53:31.008: [NVENC encoder: 'recording_h264'] settings:
13:53:31.008:     rate_control: CBR
13:53:31.008:     bitrate:      80000
13:53:31.008:     cqp:          0
13:53:31.008:     keyint:       250
13:53:31.008:     preset:       hq
13:53:31.008:     profile:      high
13:53:31.008:     level:        5.1
13:53:31.008:     width:        2560
13:53:31.008:     height:       1440
13:53:31.008:     2-pass:       false
13:53:31.008:     GPU:          0
 

DamageInc

Member
Log Part 2

Code:
13:53:31.008:
13:53:31.540: [Media Foundation AAC: 'Game']: encoder created
13:53:31.540:     bitrate: 192
13:53:31.540:     channels: 2
13:53:31.540:     sample rate: 48000
13:53:31.540:     bits-per-sample: 16
13:53:31.540:
13:53:31.554: ==== Recording Start ===============================================
13:53:31.554: [ffmpeg muxer: 'adv_file_output'] Writing file 'H:/Live Recording/OBS/2016-09-18 13-53-31.mp4'...
13:53:32.704: [game-capture: 'Game Capture'] ----------------- d3d11 capture freed ----------------
13:53:32.838: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
13:53:32.855: [game-capture: 'Game Capture'] ----------------- d3d11 capture freed ----------------
13:53:32.884: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
13:53:41.197: [game-capture: 'Game Capture'] ----------------- d3d11 capture freed ----------------
13:53:41.223: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
13:53:42.783: [game-capture: 'Game Capture'] ----------------- d3d11 capture freed ----------------
13:53:42.949: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
13:53:42.973: [game-capture: 'Game Capture'] ----------------- d3d11 capture freed ----------------
13:53:43.009: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
13:53:59.840: [game-capture: 'Game Capture'] Hooked D3D9
13:59:00.336: [game-capture: 'Game Capture'] ----------------- d3d11 capture freed ----------------
13:59:00.356: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
13:59:02.784: [ffmpeg muxer: 'adv_file_output'] Output of file 'H:/Live Recording/OBS/2016-09-18 13-53-31.mp4' stopped
13:59:02.784: Output 'adv_file_output': stopping
13:59:02.784: Output 'adv_file_output': Total encoded frames: 19873
13:59:02.784: Output 'adv_file_output': Total drawn frames: 19874
13:59:02.784: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 1866 (9.4%)
13:59:02.784: ==== Recording Stop ================================================
13:59:10.675: [game-capture: 'Game Capture'] capture window no longer exists, terminating capture
14:11:40.648: ==== Shutting down ==================================================
14:11:40.649: Switched to scene '(null)'
14:11:40.650: WASAPI: Device 'Speakers (Razer Surround Audio Controller)' Terminated
14:11:40.655: WASAPI: Device 'VoiceMeeter Output (VB-Audio VoiceMeeter VAIO)' Terminated
14:11:40.656: WASAPI: Device 'VoiceMeeter Aux Output (VB-Audio VoiceMeeter AUX VAIO)' Terminated
14:11:40.658: All scene data cleared
14:11:40.658: ------------------------------------------------
14:11:40.681: Freeing OBS context data
14:11:40.719: == Profiler Results =============================
14:11:40.719: run_program_init: 4087.45 ms
14:11:40.719:  ┣OBSApp::AppInit: 1.021 ms
14:11:40.719:  ┃ ┗OBSApp::InitLocale: 0.616 ms
14:11:40.719:  ┗OBSApp::OBSInit: 4080.24 ms
14:11:40.719:    ┣obs_startup: 1.789 ms
14:11:40.719:    ┗OBSBasic::OBSInit: 4056.39 ms
14:11:40.719:      ┣OBSBasic::InitBasicConfig: 0.264 ms
14:11:40.719:      ┣OBSBasic::ResetAudio: 0.502 ms
14:11:40.719:      ┣OBSBasic::ResetVideo: 972.697 ms
14:11:40.719:      ┣OBSBasic::InitOBSCallbacks: 0.007 ms
14:11:40.719:      ┣OBSBasic::InitHotkeys: 0.029 ms
14:11:40.719:      ┣obs_load_all_modules: 3034.45 ms
14:11:40.719:      ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.29 ms
14:11:40.719:      ┃ ┣obs_init_module(image-source.dll): 0.003 ms
14:11:40.719:      ┃ ┣obs_init_module(obs-browser.dll): 0.025 ms
14:11:40.719:      ┃ ┣obs_init_module(obs-ffmpeg.dll): 1.305 ms
14:11:40.719:      ┃ ┣obs_init_module(obs-filters.dll): 0.006 ms
14:11:40.719:      ┃ ┣obs_init_module(obs-outputs.dll): 0.002 ms
14:11:40.719:      ┃ ┣obs_init_module(obs-qsv11.dll): 61.919 ms
14:11:40.719:      ┃ ┣obs_init_module(obs-transitions.dll): 0.003 ms
14:11:40.719:      ┃ ┣obs_init_module(obs-x264.dll): 0.001 ms
14:11:40.719:      ┃ ┣obs_init_module(rtmp-services.dll): 0.189 ms
14:11:40.719:      ┃ ┣obs_init_module(text-freetype2.dll): 1.112 ms
14:11:40.719:      ┃ ┣obs_init_module(vlc-video.dll): 0.027 ms
14:11:40.719:      ┃ ┣obs_init_module(win-capture.dll): 2910.75 ms
14:11:40.719:      ┃ ┣obs_init_module(win-decklink.dll): 1.546 ms
14:11:40.719:      ┃ ┣obs_init_module(win-dshow.dll): 1.983 ms
14:11:40.719:      ┃ ┣obs_init_module(win-mf.dll): 22.445 ms
14:11:40.719:      ┃ ┣obs_init_module(win-wasapi.dll): 0.004 ms
14:11:40.719:      ┃ ┗reset_win32_symbol_paths: 0.952 ms
14:11:40.719:      ┣OBSBasic::ResetOutputs: 0.359 ms
14:11:40.719:      ┣OBSBasic::CreateHotkeys: 0.142 ms
14:11:40.719:      ┣OBSBasic::InitService: 0.085 ms
14:11:40.719:      ┣OBSBasic::InitPrimitives: 0.159 ms
14:11:40.719:      ┗OBSBasic::Load: 29.406 ms
14:11:40.719: obs_hotkey_thread(25 ms): min=0.002 ms, median=0.004 ms, max=135.459 ms, 99th percentile=0.062 ms, 99.9777% below 25 ms
14:11:40.719: audio_thread(Audio): min=0 ms, median=0.029 ms, max=7.057 ms, 99th percentile=0.615 ms
14:11:40.719:  ┗receive_audio: min=0.003 ms, median=0.289 ms, max=7.02 ms, 99th percentile=0.686 ms, 0.283625 calls per parent call
14:11:40.719:    ┣buffer_audio: min=0 ms, median=0.001 ms, max=0.343 ms, 99th percentile=0.002 ms
14:11:40.719:    ┗do_encode: min=0.068 ms, median=0.285 ms, max=7.017 ms, 99th percentile=0.676 ms
14:11:40.719:      ┗encode(Game): min=0.065 ms, median=0.228 ms, max=1.677 ms, 99th percentile=0.487 ms
14:11:40.719: obs_video_thread(16.6667 ms): min=0.169 ms, median=0.982 ms, max=147.538 ms, 99th percentile=31.125 ms, 88.0874% below 16.667 ms
14:11:40.719:  ┣tick_sources: min=0 ms, median=0.005 ms, max=45.433 ms, 99th percentile=0.03 ms
14:11:40.719:  ┣render_displays: min=0 ms, median=0.269 ms, max=146.595 ms, 99th percentile=0.828 ms
14:11:40.719:  ┗output_frame: min=0.165 ms, median=0.71 ms, max=98.118 ms, 99th percentile=30.481 ms
14:11:40.719:    ┣gs_context(video->graphics): min=0.046 ms, median=0.075 ms, max=97.263 ms, 99th percentile=29.632 ms
14:11:40.719:    ┃ ┣render_video: min=0.015 ms, median=0.025 ms, max=0.966 ms, 99th percentile=0.187 ms
14:11:40.719:    ┃ ┃ ┣render_main_texture: min=0.002 ms, median=0.004 ms, max=0.808 ms, 99th percentile=0.05 ms
14:11:40.719:    ┃ ┃ ┣render_output_texture: min=0.002 ms, median=0.01 ms, max=0.322 ms, 99th percentile=0.025 ms
14:11:40.719:    ┃ ┃ ┣render_convert_texture: min=0.001 ms, median=0.007 ms, max=0.384 ms, 99th percentile=0.021 ms
14:11:40.719:    ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.002 ms, max=0.894 ms, 99th percentile=0.108 ms
14:11:40.719:    ┃ ┣download_frame: min=0 ms, median=0.001 ms, max=97.149 ms, 99th percentile=29.463 ms
14:11:40.719:    ┃ ┗gs_flush: min=0.013 ms, median=0.045 ms, max=1.459 ms, 99th percentile=0.112 ms
14:11:40.719:    ┗output_video_data: min=0.481 ms, median=0.629 ms, max=4.012 ms, 99th percentile=1.111 ms
14:11:40.719: video_thread(video): min=0 ms, median=0.001 ms, max=64.983 ms, 99th percentile=4.765 ms
14:11:40.719:  ┗receive_video: min=0.001 ms, median=2.176 ms, max=64.98 ms, 99th percentile=4.714 ms, 0.303156 calls per parent call
14:11:40.719:    ┗do_encode: min=1.289 ms, median=2.175 ms, max=64.98 ms, 99th percentile=4.713 ms
14:11:40.719:      ┗encode(recording_h264): min=1.256 ms, median=2.095 ms, max=64.941 ms, 99th percentile=4.643 ms
14:11:40.719: =================================================
14:11:40.719: == Profiler Time Between Calls ==================
14:11:40.719: obs_hotkey_thread(25 ms): min=24.552 ms, median=25.024 ms, max=160.154 ms, 96.4641% within ±2% of 25 ms (0% lower, 3.53594% higher)
14:11:40.719: obs_video_thread(16.6667 ms): min=1.456 ms, median=16.667 ms, max=147.547 ms, 86.0723% within ±2% of 16.667 ms (3.1986% lower, 10.7291% higher)
14:11:40.719: =================================================
14:11:40.936: Number of memory leaks: 1
 

Harold

Active Member
Pastebin and link if it gets too large.

And again, looking at the profiler data, it's still taking 30+ms per frame JUST in the video card portion, and another 65ms in the encoder.

nvenc may not be appropriate.

The settings for indistinguishable quality are crf (for x264) and cqp (for nvenc) rate control with a value around 15 or so.
 

DamageInc

Member
What baffles me is that I run shadowplay at 1440p using the same encoder at a 70,000 bitrate and get no dropped frames at all. As you can see from my log OBS is dropping 9.4% of my frames (which was what i was seeing in Premiere when i stepped frame by frame).

I dont understand why moving to x264 would improve matters as that is CPU intensive and does not take advantage of my GTX980's dedicated chip for encoding which the NVENC codes does?
 

Harold

Active Member
OBS does a lot of back and forth between the video card and the cpu, shadowplay doesn't. That's the difference.

Try with x264, crf bitrate control, crf 15, ultrafast x264 preset.
 

Harold

Active Member
Something I forgot, in order to go above 1920x1080 resolution, you need to make sure the profile is set to high or auto
 

DamageInc

Member
Here is the log from your suggested settings

Code:
15:48:58.385: CPU Name: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
15:48:58.385: CPU Speed: 4000MHz
15:48:58.385: Physical Cores: 4, Logical Cores: 8
15:48:58.385: Physical Memory: 16325MB Total, 13327MB Free
15:48:58.385: Windows Version: 10.0 Build 14393 (revision: 0)
15:48:58.385: Running as administrator: false
15:48:58.385: Aero is Enabled (Aero is always on for windows 8 and above)
15:48:58.393: OBS 0.15.4 (64bit, windows)
15:48:58.393: ---------------------------------
15:48:58.394: ---------------------------------
15:48:58.394: audio settings reset:
15:48:58.394:     samples per sec: 48000
15:48:58.394:     speakers:        2
15:48:58.396: ---------------------------------
15:48:58.396: Initializing D3D11..
15:48:58.396: Available Video Adapters:
15:48:58.397:     Adapter 1: NVIDIA GeForce GTX 980
15:48:58.397:       Dedicated VRAM: 4258070528
15:48:58.397:       Shared VRAM:    4264513536
15:48:58.397:       output 1: pos={0, 0}, size={2560, 1440}, attached=true
15:48:58.397:       output 2: pos={2560, 224}, size={1920, 1200}, attached=true
15:48:58.397:       output 3: pos={-1920, 239}, size={1920, 1200}, attached=true
15:48:58.399: Loading up D3D11 on adapter NVIDIA GeForce GTX 980 (0)
15:48:58.774: D3D11 loaded sucessfully, feature level used: 45056
15:48:59.115: ---------------------------------
15:48:59.115: video settings reset:
15:48:59.115:     base resolution:   2560x1440
15:48:59.115:     output resolution: 2560x1440
15:48:59.115:     fps:               60/1
15:48:59.115:     format:            NV12
15:48:59.116: ---------------------------------
15:48:59.118: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
15:48:59.125: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
15:48:59.126: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
15:48:59.127: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
15:48:59.128: Failed to load 'en-US' text for module: 'obs-browser.dll'
15:48:59.131: NVENC supported
15:48:59.198: Couldn't find VLC installation, VLC video source disabled
15:49:01.940: No blackmagic support
15:49:01.970: ---------------------------------
15:49:01.970:   Loaded Modules:
15:49:01.970:     win-wasapi.dll
15:49:01.970:     win-mf.dll
15:49:01.970:     win-dshow.dll
15:49:01.970:     win-decklink.dll
15:49:01.970:     win-capture.dll
15:49:01.970:     vlc-video.dll
15:49:01.970:     text-freetype2.dll
15:49:01.970:     rtmp-services.dll
15:49:01.970:     obs-x264.dll
15:49:01.970:     obs-transitions.dll
15:49:01.970:     obs-qsv11.dll
15:49:01.970:     obs-outputs.dll
15:49:01.970:     obs-filters.dll
15:49:01.970:     obs-ffmpeg.dll
15:49:01.970:     obs-browser.dll
15:49:01.970:     image-source.dll
15:49:01.970:     coreaudio-encoder.dll
15:49:01.970: ==== Startup complete ===============================================
15:49:01.971: All scene data cleared
15:49:01.971: ------------------------------------------------
15:49:01.992: WASAPI: Device 'Speakers (Razer Surround Audio Controller)' initialized
15:49:02.003: WASAPI: Device 'VoiceMeeter Output (VB-Audio VoiceMeeter VAIO)' initialized
15:49:02.007: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds
15:49:02.010: WASAPI: Device 'VoiceMeeter Aux Output (VB-Audio VoiceMeeter AUX VAIO)' initialized
15:49:02.012: Switched to scene 'BF4'
15:49:02.012: ------------------------------------------------
15:49:02.012: Loaded scenes:
15:49:02.012: - scene 'BF4':
15:49:02.012:     - source: 'Game Capture' (game_capture)
15:49:02.012: ------------------------------------------------
15:49:02.417: Update check: last known remote version is 0.15.4
15:49:19.171: adding 21 milliseconds of audio buffering, total audio buffering is now 42 milliseconds
15:49:23.244: Settings changed (outputs)
15:49:23.244: ------------------------------------------------
15:51:24.183: [game-capture: 'Game Capture'] attempting to hook process: bf4.exe
15:51:24.203: [game-capture: 'Game Capture'] using direct hook
15:51:24.206: [game-capture: 'Game Capture'] Hooked to process: bf4.exe
15:51:24.206: [game-capture: 'Game Capture'] (half life scientist) everything..  seems to be in order
15:51:24.210: [game-capture: 'Game Capture'] Hooked DXGI
15:51:27.341: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
15:51:44.959: [game-capture: 'Game Capture'] ----------------- d3d11 capture freed ----------------
15:51:45.085: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
15:51:45.115: [game-capture: 'Game Capture'] ----------------- d3d11 capture freed ----------------
15:51:45.145: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
15:51:48.596: [game-capture: 'Game Capture'] ----------------- d3d11 capture freed ----------------
15:51:48.619: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
15:51:56.299: [game-capture: 'Game Capture'] ----------------- d3d11 capture freed ----------------
15:51:56.445: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
15:51:56.459: [game-capture: 'Game Capture'] ----------------- d3d11 capture freed ----------------
15:51:56.493: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
15:52:08.295: [game-capture: 'Game Capture'] Hooked D3D9
 

DamageInc

Member
Part 2

Code:
15:52:10.619: ---------------------------------
15:52:10.619: [x264 encoder: 'recording_h264'] preset: ultrafast
15:52:10.620: [x264 encoder: 'recording_h264'] settings:
15:52:10.620:     rate_control: CRF
15:52:10.620:     bitrate:      0
15:52:10.620:     buffer size:  0
15:52:10.620:     crf:          15
15:52:10.620:     fps_num:      60
15:52:10.620:     fps_den:      1
15:52:10.620:     width:        2560
15:52:10.620:     height:       1440
15:52:10.620:     keyint:       250
15:52:10.620:     vfr:          off
15:52:10.620:
15:52:10.633: [Media Foundation AAC: 'Game']: encoder created
15:52:10.633:     bitrate: 192
15:52:10.633:     channels: 2
15:52:10.633:     sample rate: 48000
15:52:10.633:     bits-per-sample: 16
15:52:10.633:
15:52:10.633: [Media Foundation AAC: 'Procaster Mic']: encoder created
15:52:10.633:     bitrate: 192
15:52:10.633:     channels: 2
15:52:10.633:     sample rate: 48000
15:52:10.633:     bits-per-sample: 16
15:52:10.633:
15:52:10.633: [Media Foundation AAC: 'Teamspeak / Skype']: encoder created
15:52:10.633:     bitrate: 192
15:52:10.633:     channels: 2
15:52:10.633:     sample rate: 48000
15:52:10.633:     bits-per-sample: 16
15:52:10.633:
15:52:10.637: ==== Recording Start ===============================================
15:52:10.637: [ffmpeg muxer: 'adv_file_output'] Writing file 'H:/Live Recording/OBS/2016-09-18 15-52-10.mp4'...
15:58:27.306: [ffmpeg muxer: 'adv_file_output'] Output of file 'H:/Live Recording/OBS/2016-09-18 15-52-10.mp4' stopped
15:58:27.307: Output 'adv_file_output': stopping
15:58:27.307: Output 'adv_file_output': Total encoded frames: 22599
15:58:27.307: Output 'adv_file_output': Total drawn frames: 22600
15:58:27.307: Output 'adv_file_output': Number of skipped frames due to encoding lag: 31 (0.1%)
15:58:27.307: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 369 (1.6%)
15:58:27.307: ==== Recording Stop ================================================
15:58:29.515: [game-capture: 'Game Capture'] ----------------- d3d11 capture freed ----------------
15:58:29.534: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
15:58:36.416: ==== Shutting down ==================================================
15:58:36.418: Switched to scene '(null)'
15:58:36.418: WASAPI: Device 'Speakers (Razer Surround Audio Controller)' Terminated
15:58:36.425: WASAPI: Device 'VoiceMeeter Output (VB-Audio VoiceMeeter VAIO)' Terminated
15:58:36.426: WASAPI: Device 'VoiceMeeter Aux Output (VB-Audio VoiceMeeter AUX VAIO)' Terminated
15:58:36.428: All scene data cleared
15:58:36.428: ------------------------------------------------
15:58:36.474: Freeing OBS context data
15:58:36.536: == Profiler Results =============================
15:58:36.536: run_program_init: 3664.65 ms
15:58:36.536:  ┣OBSApp::AppInit: 1.059 ms
15:58:36.536:  ┃ ┗OBSApp::InitLocale: 0.609 ms
15:58:36.536:  ┗OBSApp::OBSInit: 3657.53 ms
15:58:36.536:    ┣obs_startup: 1.356 ms
15:58:36.536:    ┗OBSBasic::OBSInit: 3635.9 ms
15:58:36.536:      ┣OBSBasic::InitBasicConfig: 0.254 ms
15:58:36.536:      ┣OBSBasic::ResetAudio: 0.188 ms
15:58:36.536:      ┣OBSBasic::ResetVideo: 722.527 ms
15:58:36.536:      ┣OBSBasic::InitOBSCallbacks: 0.009 ms
15:58:36.536:      ┣OBSBasic::InitHotkeys: 0.029 ms
15:58:36.536:      ┣obs_load_all_modules: 2853.44 ms
15:58:36.536:      ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.287 ms
15:58:36.536:      ┃ ┣obs_init_module(image-source.dll): 0.002 ms
15:58:36.536:      ┃ ┣obs_init_module(obs-browser.dll): 0.023 ms
15:58:36.536:      ┃ ┣obs_init_module(obs-ffmpeg.dll): 1.179 ms
15:58:36.536:      ┃ ┣obs_init_module(obs-filters.dll): 0.005 ms
15:58:36.536:      ┃ ┣obs_init_module(obs-outputs.dll): 0.002 ms
15:58:36.536:      ┃ ┣obs_init_module(obs-qsv11.dll): 56.631 ms
15:58:36.536:      ┃ ┣obs_init_module(obs-transitions.dll): 0.004 ms
15:58:36.536:      ┃ ┣obs_init_module(obs-x264.dll): 0.001 ms
15:58:36.536:      ┃ ┣obs_init_module(rtmp-services.dll): 0.162 ms
15:58:36.537:      ┃ ┣obs_init_module(text-freetype2.dll): 0.968 ms
15:58:36.537:      ┃ ┣obs_init_module(vlc-video.dll): 0.027 ms
15:58:36.537:      ┃ ┣obs_init_module(win-capture.dll): 2737.04 ms
15:58:36.537:      ┃ ┣obs_init_module(win-decklink.dll): 1.401 ms
15:58:36.537:      ┃ ┣obs_init_module(win-dshow.dll): 2.041 ms
15:58:36.537:      ┃ ┣obs_init_module(win-mf.dll): 22.49 ms
15:58:36.537:      ┃ ┣obs_init_module(win-wasapi.dll): 0.003 ms
15:58:36.537:      ┃ ┗reset_win32_symbol_paths: 0.742 ms
15:58:36.537:      ┣OBSBasic::ResetOutputs: 0.319 ms
15:58:36.537:      ┣OBSBasic::CreateHotkeys: 0.149 ms
15:58:36.537:      ┣OBSBasic::InitService: 0.074 ms
15:58:36.537:      ┣OBSBasic::InitPrimitives: 0.144 ms
15:58:36.537:      ┗OBSBasic::Load: 40.984 ms
15:58:36.537: obs_hotkey_thread(25 ms): min=0.002 ms, median=0.004 ms, max=130.331 ms, 99th percentile=0.16 ms, 99.9739% below 25 ms
15:58:36.537: audio_thread(Audio): min=0 ms, median=0.689 ms, max=517.123 ms, 99th percentile=2.318 ms
15:58:36.537:  ┗receive_audio: min=0.002 ms, median=0.237 ms, max=516.637 ms, 99th percentile=1.269 ms, 1.92884 calls per parent call
15:58:36.537:    ┣buffer_audio: min=0 ms, median=0 ms, max=1.85 ms, 99th percentile=0.001 ms
15:58:36.537:    ┗do_encode: min=0.037 ms, median=0.234 ms, max=516.635 ms, 99th percentile=1.263 ms
15:58:36.537:      ┣encode(Procaster Mic): min=0.058 ms, median=0.106 ms, max=2.432 ms, 99th percentile=0.3 ms, 0.333346 calls per parent call
15:58:36.537:      ┣encode(Teamspeak / Skype): min=0.036 ms, median=0.104 ms, max=1.659 ms, 99th percentile=0.249 ms, 0.333346 calls per parent call
15:58:36.537:      ┗encode(Game): min=0.071 ms, median=0.241 ms, max=3.272 ms, 99th percentile=0.648 ms, 0.333308 calls per parent call
15:58:36.537: obs_video_thread(16.6667 ms): min=0.188 ms, median=1.298 ms, max=135.044 ms, 99th percentile=23.804 ms, 96.8755% below 16.667 ms
15:58:36.537:  ┣tick_sources: min=0 ms, median=0.009 ms, max=22.215 ms, 99th percentile=0.062 ms
15:58:36.537:  ┣render_displays: min=0 ms, median=0.374 ms, max=134.244 ms, 99th percentile=1.284 ms
15:58:36.537:  ┗output_frame: min=0.082 ms, median=0.877 ms, max=91.411 ms, 99th percentile=23.15 ms
15:58:36.537:    ┣gs_context(video->graphics): min=0.042 ms, median=0.103 ms, max=90.739 ms, 99th percentile=22.433 ms
15:58:36.537:    ┃ ┣render_video: min=0.016 ms, median=0.036 ms, max=2.304 ms, 99th percentile=0.156 ms
15:58:36.537:    ┃ ┃ ┣render_main_texture: min=0.002 ms, median=0.014 ms, max=1.062 ms, 99th percentile=0.056 ms
15:58:36.537:    ┃ ┃ ┣render_output_texture: min=0.002 ms, median=0.009 ms, max=1.881 ms, 99th percentile=0.032 ms
15:58:36.537:    ┃ ┃ ┣render_convert_texture: min=0.001 ms, median=0.009 ms, max=1.054 ms, 99th percentile=0.037 ms
15:58:36.537:    ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.002 ms, max=2.26 ms, 99th percentile=0.027 ms
15:58:36.537:    ┃ ┣download_frame: min=0 ms, median=0.001 ms, max=90.638 ms, 99th percentile=22.359 ms
15:58:36.537:    ┃ ┗gs_flush: min=0.017 ms, median=0.059 ms, max=2.18 ms, 99th percentile=0.341 ms
15:58:36.537:    ┗output_video_data: min=0.001 ms, median=0.74 ms, max=4.903 ms, 99th percentile=1.646 ms
15:58:36.537: video_thread(video): min=0 ms, median=1.732 ms, max=505.431 ms, 99th percentile=4.366 ms
15:58:36.537:  ┗receive_video: min=0.001 ms, median=1.933 ms, max=505.428 ms, 99th percentile=4.154 ms, 0.660606 calls per parent call
15:58:36.537:    ┗do_encode: min=0.977 ms, median=1.932 ms, max=505.427 ms, 99th percentile=4.151 ms
15:58:36.537:      ┗encode(recording_h264): min=0.962 ms, median=1.842 ms, max=41.564 ms, 99th percentile=3.566 ms
15:58:36.537: OBSBasic::ResetOutputs: 0.388 ms
15:58:36.537: =================================================
15:58:36.537: == Profiler Time Between Calls ==================
15:58:36.537: obs_hotkey_thread(25 ms): min=24.543 ms, median=25.025 ms, max=155.152 ms, 89.6882% within ±2% of 25 ms (0% lower, 10.3118% higher)
15:58:36.537: obs_video_thread(16.6667 ms): min=3.009 ms, median=16.667 ms, max=135.053 ms, 91.3269% within ±2% of 16.667 ms (3.76416% lower, 4.90889% higher)
15:58:36.537: =================================================
15:58:36.669: Number of memory leaks: 1
 

DamageInc

Member
Bottom line to me (without having looked at the video quality in Premiere Pro) - is that the lag has dropped from 10-30% (with various tests of the nvidia encoder) to 1.4% using your settings.

I guess I just need to check what the quality looks like.

I noticed that my 4790k cpu was totally maxed out running BF4 and OBS on the x264 codec.
 

Harold

Active Member
15:58:36.537: ┃ ┣download_frame: min=0 ms, median=0.001 ms, max=90.638 ms, 99th percentile=22.359 ms

Still a lot of work coming from the video card to the computer.
 

DamageInc

Member
I only just noticed your last message to set profile to high or auto. it was set to none during that recording. I dont know if setting it to high or auto will improve things or make it harder to encode lol.

I have to mow the garden now, but will be back in a couple of hours and ill set it to high or auto and see.
 

Suslik V

Active Member
Harold said,

99th percentile=22.359 ms

should ~16 ms or less for 60 fps, no matter what encoder or OBS settings is.
 
Top