Question / Help No lag in game but recording lags

Gedes

New Member
so here is a sample scene: https://www.youtube.com/watch?v=xVf0j6xEsoQ&feature=youtu.be
iam recording 1080p in 60 fps, in game there is no lag whatsoever, but the video is very choppy.

here are my settings:
http://imgur.com/a/u4ZHl

and there are the logs:

"
00:57:09: =====Stream Start: 2016-10-15, 00:57:09===============================================
00:57:09: Multithreaded optimizations: On
00:57:09: Base resolution: 1920x1080
00:57:09: Output resolution: 1920x1080
00:57:09: ------------------------------------------
00:57:09: Loading up D3D10 on NVIDIA GeForce GTX 860M (Adapter 1)...
00:57:09: ------------------------------------------
00:57:09: Audio Format: 48000 Hz
00:57:09: ------------------------------------------
00:57:09: Audio Channels: 2 Ch
00:57:09: Playback device Default
00:57:09: ------------------------------------------
00:57:09: Using desktop audio input: Speakers (Yeti Stereo Microphone)
00:57:09: Global Audio time adjust: 0
00:57:09: ------------------------------------------
00:57:09: Audio Encoding: AAC
00:57:09: bitrate: 192
00:57:09: Using graphics capture
00:57:09: Trying to hook process: SpaceEngineers.exe
00:57:09: Scene buffering time set to 700
00:57:09: Using custom x264 settings: "crf=20"
00:57:09: x264: VBV maxrate specified, but no bufsize, ignored
00:57:09: x264: MB rate (489600) > level limit (245760)
00:57:09: ------------------------------------------
00:57:09: Video Encoding: x264
00:57:09: fps: 60
00:57:09: width: 1920, height: 1080
00:57:09: preset: veryfast
00:57:09: profile: main
00:57:09: keyint: 120
00:57:09: CBR: no
00:57:09: CFR: yes
00:57:09: max bitrate: 26128
00:57:09: buffer size: 0
00:57:09: quality: 12
00:57:09: ------------------------------------------
00:57:09: SharedTexCapture hooked
00:57:16: FlushBufferedVideo: Flushing 21 packets over 333 ms
00:57:16: Total frames encoded: 337, total frames duplicated: 213 (63.20%)
00:57:16: Total frames rendered: 232, number of late frames: 44 (18.97%) (it's okay for some frames to be late)
00:57:16:
00:57:16: Profiler time results:
00:57:16:
00:57:16: ==============================================================
00:57:16: video thread frame - [100%] [avg time: 16.73 ms] [children: 92.8%] [unaccounted: 7.21%]
00:57:16: | scene->Preprocess - [0.00598%] [avg time: 0.001 ms]
00:57:16: | GPU download and conversion - [92.8%] [avg time: 15.523 ms] [children: 2.05%] [unaccounted: 90.7%]
00:57:16: | | flush - [0.556%] [avg time: 0.093 ms]
00:57:16: | | CopyResource - [1.47%] [avg time: 0.246 ms]
00:57:16: | | conversion to 4:2:0 - [0.0239%] [avg time: 0.004 ms]
00:57:16: Convert444Threads - [100%] [avg time: 1.39 ms] [children: 99.6%] [unaccounted: 0.36%]
00:57:16: | Convert444toNV12 - [99.6%] [avg time: 1.385 ms]
00:57:16: encoder thread frame - [100%] [avg time: 1.9 ms] [children: 1.16%] [unaccounted: 98.8%]
00:57:16: | sending stuff out - [1.16%] [avg time: 0.022 ms]
00:57:16: ==============================================================
00:57:16:
00:57:16:
00:57:16: Profiler CPU results:
00:57:16:
00:57:16: ==============================================================
00:57:16: video thread frame - [cpu time: avg 0.538 ms, total 125 ms] [avg calls per frame: 1]
00:57:16: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
00:57:16: | GPU download and conversion - [cpu time: avg 0.134 ms, total 31.25 ms] [avg calls per frame: 1]
00:57:16: | | flush - [cpu time: avg 0.067 ms, total 15.625 ms] [avg calls per frame: 1]
00:57:16: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
00:57:16: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
00:57:16: Convert444Threads - [cpu time: avg 1.604 ms, total 593.75 ms] [avg calls per frame: 2]
00:57:16: | Convert444toNV12 - [cpu time: avg 1.604 ms, total 593.75 ms] [avg calls per frame: 2]
00:57:16: encoder thread frame - [cpu time: avg 1.878 ms, total 593.75 ms] [avg calls per frame: 1]
00:57:16: | sending stuff out - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
00:57:16: ==============================================================
00:57:16:
00:57:16: =====Stream End: 2016-10-15, 00:57:16=================================================
"
my specs:

Intel core I7-4710HQ 2.5 GHz
16 GB RAM
64 bits
NVIDIA GeForce GTX 860M
1 SSD drive for system
1 HDD drive for the rest

recording to the SSD
 

alpinlol

Active Member
Well if you would have followed the Guide https://obsproject.com/forum/resources/obs-classic-how-to-make-high-quality-local-recordings.16/ things might look different.

Your Bitrate doesnt really has to be set since the Buffer is set to 0 which lets the Encoder use whatever it needs to achieve the set Quality Goal. I would still set Bitrate to 1000 and Buffer to 0

Most important Part is the Preset please set it to Ultrafast if you are going to record 1080p60 though keep in mind your Mobile CPU even tho its a proper i7 Mobile Version will still have less performance than a Desktop Version and you might still have Issues, if so downscale by 1.5 and record in 720p60 or 1080p30


I dont know if NVENC properly works with Notebooks that offer an Intel HD since they tend to run into Blackscreen issues.
But if NVENC is working on your Notebook then its your best go to for 1080p60.
 

Gedes

New Member
Well if you would have followed the Guide https://obsproject.com/forum/resources/obs-classic-how-to-make-high-quality-local-recordings.16/ things might look different.

Your Bitrate doesnt really has to be set since the Buffer is set to 0 which lets the Encoder use whatever it needs to achieve the set Quality Goal. I would still set Bitrate to 1000 and Buffer to 0

Most important Part is the Preset please set it to Ultrafast if you are going to record 1080p60 though keep in mind your Mobile CPU even tho its a proper i7 Mobile Version will still have less performance than a Desktop Version and you might still have Issues, if so downscale by 1.5 and record in 720p60 or 1080p30


I dont know if NVENC properly works with Notebooks that offer an Intel HD since they tend to run into Blackscreen issues.
But if NVENC is working on your Notebook then its your best go to for 1080p60.

I tried using those settings before, but the result was the same :/ I'll try. also I am using an all-in-one gaming MSI PC

EDIT: I tried those settings with NVENC but it only seems to decrease the quality. downscalling to 720p60 does not affect the stuttering, it only decreases quality :C
 
Last edited:

alpinlol

Active Member
I tried using those settings before, but the result was the same :/ I'll try. also I am using an all-in-one gaming MSI PC

You should sue MSI for marketing this PC as a "gaming PC" because thats barely more than a office PC.

If you test Settings make sure to restart OBS and also post your results!
 

alpinlol

Active Member
as you can see I am getting quite high fps so the pc is fine for playing the game, maybe it is just that it's too weak to record ? should i get an external dedicated machine for that ? or is there anything i can do to remove that stutter ?

With post your results I was hoping to get a Log to each of the Youtube Vids as well :P
 

Gedes

New Member
oops :P

NVEC:
"
13:33:37: =====Stream Start: 2016-10-17, 13:33:37===============================================
13:33:37: Multithreaded optimizations: On
13:33:37: Base resolution: 1920x1080
13:33:37: Output resolution: 1280x720
13:33:37: ------------------------------------------
13:33:37: Loading up D3D10 on NVIDIA GeForce GTX 860M (Adapter 1)...
13:33:37: ------------------------------------------
13:33:37: Audio Format: 48000 Hz
13:33:37: ------------------------------------------
13:33:37: Audio Channels: 2 Ch
13:33:37: Playback device Default
13:33:37: ------------------------------------------
13:33:37: Using desktop audio input: Speakers (Yeti Stereo Microphone)
13:33:37: Global Audio time adjust: 0
13:33:37: ------------------------------------------
13:33:37: Audio Encoding: AAC
13:33:37: bitrate: 192
13:33:37: Using graphics capture
13:33:37: Trying to hook process: SpaceEngineers.exe
13:33:37: Scene buffering time set to 700
13:33:37: NVENC internal init finished successfully
13:33:37: NVENC supports 10 h264 presets
13:33:37: ------------------------------------------
13:33:37: Video Encoding: NVENC
13:33:37: fps: 60
13:33:37: width: 1280, height: 720
13:33:37: preset: llhq
13:33:37: profile: high
13:33:37: level: autoselect
13:33:37: keyint: -1
13:33:37: rcMode: minQP
13:33:37: CBR: no
13:33:37: CFR: no
13:33:37: max bitrate: 1000
13:33:37: avg bitrate: 1000
13:33:37: buffer size: 0
13:33:37: quality: 10
13:33:37: ------------------------------------------
13:33:37: SharedTexCapture hooked
13:33:52: FlushBufferedVideo: Flushing 45 packets over 734 ms
13:33:52: Total frames encoded: 870, total frames duplicated: 397 (45.63%)
13:33:52: Total frames rendered: 665, number of late frames: 101 (15.19%) (it's okay for some frames to be late)
13:33:52: Encoder closed
13:33:52: NVENC deinitialized
13:33:52:
13:33:52: Profiler time results:
13:33:52:
13:33:52: ==============================================================
13:33:52: video thread frame - [100%] [avg time: 11.218 ms] [children: 87%] [unaccounted: 13%]
13:33:52: | scene->Preprocess - [0.0178%] [avg time: 0.002 ms]
13:33:52: | GPU download and conversion - [87%] [avg time: 9.763 ms] [children: 1.21%] [unaccounted: 85.8%]
13:33:52: | | flush - [0.677%] [avg time: 0.076 ms]
13:33:52: | | CopyResource - [0.214%] [avg time: 0.024 ms]
13:33:52: | | conversion to 4:2:0 - [0.321%] [avg time: 0.036 ms]
13:33:52: Convert444Threads - [100%] [avg time: 0.631 ms] [children: 99.4%] [unaccounted: 0.634%]
13:33:52: | Convert444toNV12 - [99.4%] [avg time: 0.627 ms]
13:33:52: encoder thread frame - [100%] [avg time: 1.337 ms] [children: 1.2%] [unaccounted: 98.8%]
13:33:52: | sending stuff out - [1.2%] [avg time: 0.016 ms]
13:33:52: ==============================================================
13:33:52:
13:33:52:
13:33:52: Profiler CPU results:
13:33:52:
13:33:52: ==============================================================
13:33:52: video thread frame - [cpu time: avg 0.493 ms, total 328.125 ms] [avg calls per frame: 1]
13:33:52: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
13:33:52: | GPU download and conversion - [cpu time: avg 0.14 ms, total 93.75 ms] [avg calls per frame: 1]
13:33:52: | | flush - [cpu time: avg 0.093 ms, total 62.5 ms] [avg calls per frame: 1]
13:33:52: | | CopyResource - [cpu time: avg 0.025 ms, total 15.625 ms] [avg calls per frame: 1]
13:33:52: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
13:33:52: Convert444Threads - [cpu time: avg 0.695 ms, total 859.375 ms] [avg calls per frame: 2]
13:33:52: | Convert444toNV12 - [cpu time: avg 0.682 ms, total 843.75 ms] [avg calls per frame: 2]
13:33:52: encoder thread frame - [cpu time: avg 0.056 ms, total 46.875 ms] [avg calls per frame: 1]
13:33:52: | sending stuff out - [cpu time: avg 0.018 ms, total 15.625 ms] [avg calls per frame: 1]
13:33:52: ==============================================================
13:33:52:
13:33:52: =====Stream End: 2016-10-17, 13:33:52=================================================
"

x264:
"
13:33:37: =====Stream Start: 2016-10-17, 13:33:37===============================================
13:33:37: Multithreaded optimizations: On
13:33:37: Base resolution: 1920x1080
13:33:37: Output resolution: 1280x720
13:33:37: ------------------------------------------
13:33:37: Loading up D3D10 on NVIDIA GeForce GTX 860M (Adapter 1)...
13:33:37: ------------------------------------------
13:33:37: Audio Format: 48000 Hz
13:33:37: ------------------------------------------
13:33:37: Audio Channels: 2 Ch
13:33:37: Playback device Default
13:33:37: ------------------------------------------
13:33:37: Using desktop audio input: Speakers (Yeti Stereo Microphone)
13:33:37: Global Audio time adjust: 0
13:33:37: ------------------------------------------
13:33:37: Audio Encoding: AAC
13:33:37: bitrate: 192
13:33:37: Using graphics capture
13:33:37: Trying to hook process: SpaceEngineers.exe
13:33:37: Scene buffering time set to 700
13:33:37: NVENC internal init finished successfully
13:33:37: NVENC supports 10 h264 presets
13:33:37: ------------------------------------------
13:33:37: Video Encoding: NVENC
13:33:37: fps: 60
13:33:37: width: 1280, height: 720
13:33:37: preset: llhq
13:33:37: profile: high
13:33:37: level: autoselect
13:33:37: keyint: -1
13:33:37: rcMode: minQP
13:33:37: CBR: no
13:33:37: CFR: no
13:33:37: max bitrate: 1000
13:33:37: avg bitrate: 1000
13:33:37: buffer size: 0
13:33:37: quality: 10
13:33:37: ------------------------------------------
13:33:37: SharedTexCapture hooked
13:33:52: FlushBufferedVideo: Flushing 45 packets over 734 ms
13:33:52: Total frames encoded: 870, total frames duplicated: 397 (45.63%)
13:33:52: Total frames rendered: 665, number of late frames: 101 (15.19%) (it's okay for some frames to be late)
13:33:52: Encoder closed
13:33:52: NVENC deinitialized
13:33:52:
13:33:52: Profiler time results:
13:33:52:
13:33:52: ==============================================================
13:33:52: video thread frame - [100%] [avg time: 11.218 ms] [children: 87%] [unaccounted: 13%]
13:33:52: | scene->Preprocess - [0.0178%] [avg time: 0.002 ms]
13:33:52: | GPU download and conversion - [87%] [avg time: 9.763 ms] [children: 1.21%] [unaccounted: 85.8%]
13:33:52: | | flush - [0.677%] [avg time: 0.076 ms]
13:33:52: | | CopyResource - [0.214%] [avg time: 0.024 ms]
13:33:52: | | conversion to 4:2:0 - [0.321%] [avg time: 0.036 ms]
13:33:52: Convert444Threads - [100%] [avg time: 0.631 ms] [children: 99.4%] [unaccounted: 0.634%]
13:33:52: | Convert444toNV12 - [99.4%] [avg time: 0.627 ms]
13:33:52: encoder thread frame - [100%] [avg time: 1.337 ms] [children: 1.2%] [unaccounted: 98.8%]
13:33:52: | sending stuff out - [1.2%] [avg time: 0.016 ms]
13:33:52: ==============================================================
13:33:52:
13:33:52:
13:33:52: Profiler CPU results:
13:33:52:
13:33:52: ==============================================================
13:33:52: video thread frame - [cpu time: avg 0.493 ms, total 328.125 ms] [avg calls per frame: 1]
13:33:52: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
13:33:52: | GPU download and conversion - [cpu time: avg 0.14 ms, total 93.75 ms] [avg calls per frame: 1]
13:33:52: | | flush - [cpu time: avg 0.093 ms, total 62.5 ms] [avg calls per frame: 1]
13:33:52: | | CopyResource - [cpu time: avg 0.025 ms, total 15.625 ms] [avg calls per frame: 1]
13:33:52: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
13:33:52: Convert444Threads - [cpu time: avg 0.695 ms, total 859.375 ms] [avg calls per frame: 2]
13:33:52: | Convert444toNV12 - [cpu time: avg 0.682 ms, total 843.75 ms] [avg calls per frame: 2]
13:33:52: encoder thread frame - [cpu time: avg 0.056 ms, total 46.875 ms] [avg calls per frame: 1]
13:33:52: | sending stuff out - [cpu time: avg 0.018 ms, total 15.625 ms] [avg calls per frame: 1]
13:33:52: ==============================================================
13:33:52:
13:33:52: =====Stream End: 2016-10-17, 13:33:52=================================================
"
 

alpinlol

Active Member
I forgot to mention that NVENC actually needs a set Bitrate/Buffer which would be something like 15000 CFR checked Keyint of 2.

Even with those Settings I somewhat doubt that its getting rid of your 45% duplicated Frames. Do you have any overlay Tool running in the background like razer synpase or whatever?
 

Gedes

New Member
I am only running space engineers + steam, sometimes web browser in the background. I am not aware of any programs that could cause this. What is the cause of duplicated frames ?

also which settings do i need to set for NVENC to work well ? do you mean CBR or CFR, and do i set both the bitrate and buffer to 15000 ?
 
Last edited:

alpinlol

Active Member
I am only running space engineers + steam, sometimes web browser in the background. I am not aware of any programs that could cause this. What is the cause of duplicated frames ?

also which settings do i need to set for NVENC to work well ? do you mean CBR or CFR, and do i set both the bitrate and buffer to 15000 ?

Duplicated Frames can be caused by hook conflicts or even when your Hardware is falling behind with it tasks and a few other weird unexplainable things.

The 2nd Part I literally answered every Question in the Post before.
 

Gedes

New Member
okay i downloaded OBS studio, it is really looking way better :D

EDIT: yes, for OBS studio works so much better its unbelivable. I chose classic for the simple reason of not many tutorials for studio out there. Thanks for the help alpinlol :D
 
Last edited:
Top