Question / Help Laggy Recording but in-game FPS is fine

MineKnights

New Member
Whenever I record with OBS, my game runs perfectly fine, but when I play the recording, it seems to stutter often. Anybody have any ideas?

Code:
12:03:35.506: CPU Name: Intel(R) Core(TM) i5-4430 CPU @ 3.00GHz
12:03:35.506: CPU Speed: 2993MHz
12:03:35.506: Physical Cores: 4, Logical Cores: 4
12:03:35.506: Physical Memory: 12242MB Total, 7319MB Free
12:03:35.506: Windows Version: 10.0 Build 15063 (revision: 296; 64-bit)
12:03:35.506: Running as administrator: false
12:03:35.506: Aero is Enabled (Aero is always on for windows 8 and above)
12:03:35.507: Portable mode: false
12:03:35.517: OBS 19.0.3 (64bit, windows)
12:03:35.517: ---------------------------------
12:03:35.518: ---------------------------------
12:03:35.518: audio settings reset:
12:03:35.518:     samples per sec: 48000
12:03:35.518:     speakers:        2
12:03:35.519: ---------------------------------
12:03:35.519: Initializing D3D11...
12:03:35.519: Available Video Adapters:
12:03:35.521:     Adapter 1: NVIDIA GeForce GTX 1060 6GB
12:03:35.521:       Dedicated VRAM: 2084765696
12:03:35.521:       Shared VRAM:    2123520000
12:03:35.521:       output 1: pos={0, 0}, size={1920, 1080}, attached=true
12:03:35.523: Loading up D3D11 on adapter NVIDIA GeForce GTX 1060 6GB (0)
12:03:36.313: D3D11 loaded successfully, feature level used: 45056
12:03:37.176: ---------------------------------
12:03:37.176: video settings reset:
12:03:37.176:     base resolution:   1920x1080
12:03:37.176:     output resolution: 1920x1080
12:03:37.176:     downscale filter:  Bicubic
12:03:37.176:     fps:               30/1
12:03:37.176:     format:            NV12
12:03:37.178: Audio monitoring device:
12:03:37.178:     name: Default
12:03:37.178:     id: default
12:03:37.178: ---------------------------------
12:03:37.181: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
12:03:37.189: [CoreAudio encoder]: Adding CoreAudio AAC encoder
12:03:37.191: [AMF] Encountered Exception during AMF initialization: Unable to load 'amfrt64.dll', error code 126.
12:03:37.191: Failed to initialize module 'enc-amf.dll'
12:03:37.205: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
12:03:37.205: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
12:03:37.206: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
12:03:37.206: Failed to load 'en-US' text for module: 'obs-browser.dll'
12:03:37.206: [browser_source: 'Version: 1.29.0']
12:03:37.210: NVENC supported
12:03:37.268: Couldn't find VLC installation, VLC video source disabled
12:03:37.274: No blackmagic support
12:03:37.328: ---------------------------------
12:03:37.328:   Loaded Modules:
12:03:37.328:     win-wasapi.dll
12:03:37.328:     win-mf.dll
12:03:37.328:     win-dshow.dll
12:03:37.328:     win-decklink.dll
12:03:37.328:     win-capture.dll
12:03:37.328:     vlc-video.dll
12:03:37.328:     text-freetype2.dll
12:03:37.328:     rtmp-services.dll
12:03:37.328:     obs-x264.dll
12:03:37.328:     obs-vst.dll
12:03:37.328:     obs-transitions.dll
12:03:37.328:     obs-text.dll
12:03:37.328:     obs-qsv11.dll
12:03:37.328:     obs-outputs.dll
12:03:37.328:     obs-filters.dll
12:03:37.328:     obs-ffmpeg.dll
12:03:37.328:     obs-browser.dll
12:03:37.328:     image-source.dll
12:03:37.328:     frontend-tools.dll
12:03:37.328:     enc-amf.dll
12:03:37.328:     coreaudio-encoder.dll
12:03:37.328: ==== Startup complete ===============================================
12:03:37.338: Service '' not found
12:03:37.339: All scene data cleared
12:03:37.339: ------------------------------------------------
12:03:37.364: WASAPI: Device 'Speakers / Headphones (IDT High Definition Audio CODEC)' initialized
12:03:37.369: WASAPI: Device 'CABLE Output (VB-Audio Virtual Cable)' initialized
12:03:37.373: WASAPI: Device 'Microphone (Wireless Stereo Headset)' initialized
12:03:37.413: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds
12:03:42.225: WASAPI: Device 'Microphone (Wireless Stereo Headset)' initialized
12:03:42.229: Switched to scene 'Minecraft'
12:03:42.230: [game-capture: 'Game Capture'] attempting to hook process: Minecraft.Windows.exe
12:03:42.232: ------------------------------------------------
12:03:42.232: Loaded scenes:
12:03:42.232: - scene 'Scene':
12:03:42.232: - scene 'Minecraft':
12:03:42.232:     - source: 'Mic/Aux 2' (wasapi_input_capture)
12:03:42.232:     - source: 'Game Capture' (game_capture)
12:03:42.232: - scene 'Audio Test':
12:03:42.232:     - source: 'Mic/Aux 2' (wasapi_input_capture)
12:03:42.232:     - source: 'Audio Input Capture' (wasapi_input_capture)
12:03:42.232: - scene 'Dirty Bomb':
12:03:42.232:     - source: 'Mic/Aux 2' (wasapi_input_capture)
12:03:42.232:     - source: 'Desktop Audio' (wasapi_output_capture)
12:03:42.232:     - source: 'Game Capture' (game_capture)
12:03:42.232: ------------------------------------------------
12:03:42.246: [game-capture: 'Game Capture'] shared texture capture successful
12:04:06.529: User added source 'Desktop Audio' (wasapi_output_capture) to scene 'Minecraft'
12:04:15.746: [game-capture: 'Game Capture'] shared texture capture successful
12:08:45.513: [game-capture: 'Game Capture'] shared texture capture successful
12:08:55.678: [game-capture: 'Game Capture'] shared texture capture successful
12:21:26.610: rtmp-common.c: [initialize_output] Could not find service ''
12:21:26.611: ---------------------------------
12:21:26.611: [NVENC encoder: 'recording_h264'] settings:
12:21:26.611:     rate_control: CBR
12:21:26.611:     bitrate:      50000
12:21:26.611:     cqp:          0
12:21:26.611:     keyint:       250
12:21:26.611:     preset:       hp
12:21:26.611:     profile:      main
12:21:26.611:     level:        auto
12:21:26.611:     width:        1920
12:21:26.611:     height:       1080
12:21:26.611:     2-pass:       false
12:21:26.611:     b-frames:     2
12:21:26.611:     GPU:          0
12:21:26.611:
12:21:28.139: [CoreAudio AAC: 'Track1']: settings:
12:21:28.139:     mode:          AAC
12:21:28.139:     bitrate:       160
12:21:28.139:     sample rate:   48000
12:21:28.139:     cbr:           on
12:21:28.139:     output buffer: 1536
12:21:28.141: [CoreAudio AAC: 'Track2']: settings:
12:21:28.141:     mode:          AAC
12:21:28.141:     bitrate:       160
12:21:28.141:     sample rate:   48000
12:21:28.141:     cbr:           on
12:21:28.141:     output buffer: 1536
12:21:28.148: ==== Recording Start ===============================================
12:21:28.148: [ffmpeg muxer: 'adv_file_output'] Writing file 'C:/Users/Jaden/Videos/2017-08-01 12-21-26.mp4'...
12:22:01.784: [ffmpeg muxer: 'adv_file_output'] Output of file 'C:/Users/Jaden/Videos/2017-08-01 12-21-26.mp4' stopped
12:22:01.785: Output 'adv_file_output': stopping
12:22:01.785: Output 'adv_file_output': Total encoded frames: 1008
12:22:01.785: Output 'adv_file_output': Total drawn frames: 1009
12:22:01.785: ==== Recording Stop ================================================
12:22:03.812: [game-capture: 'Game Capture'] shared texture capture successful
12:22:45.279: [game-capture: 'Game Capture'] shared texture capture successful
12:27:56.612: [game-capture: 'Game Capture'] capture window no longer exists, terminating capture
12:27:56.613: [game-capture: 'Game Capture'] capture stopped
12:29:11.405: rtmp-common.c: [initialize_output] Could not find service ''
12:29:11.406: rtmp-common.c: [initialize_output] Could not find service ''
12:29:11.407: rtmp-common.c: [initialize_output] Could not find service ''
12:29:11.408: rtmp-common.c: [initialize_output] Could not find service ''
12:29:11.458: rtmp-common.c: [initialize_output] Could not find service ''
12:29:12.712: rtmp-common.c: [initialize_output] Could not find service ''
12:29:15.361: rtmp-common.c: [initialize_output] Could not find service ''
12:29:20.712: rtmp-common.c: [initialize_output] Could not find service ''
12:29:21.005: rtmp-common.c: [initialize_output] Could not find service ''
12:29:29.681: ---------------------------------
12:29:29.681: video settings reset:
12:29:29.681:     base resolution:   1920x1080
12:29:29.681:     output resolution: 1920x1080
12:29:29.681:     downscale filter:  Bicubic
12:29:29.681:     fps:               60/1
12:29:29.681:     format:            NV12
12:29:29.691: Settings changed (video)
12:29:29.691: ------------------------------------------------
12:29:41.268: [game-capture: 'Game Capture'] attempting to hook process: Minecraft.Windows.exe
12:29:41.270: [game-capture: 'Game Capture'] using direct hook
12:29:41.300: [game-capture: 'Game Capture'] shared texture capture successful
12:29:52.707: rtmp-common.c: [initialize_output] Could not find service ''
12:29:52.708: ---------------------------------
12:29:52.708: [NVENC encoder: 'recording_h264'] settings:
12:29:52.708:     rate_control: CBR
12:29:52.708:     bitrate:      50000
12:29:52.708:     cqp:          0
12:29:52.708:     keyint:       250
12:29:52.708:     preset:       hp
12:29:52.708:     profile:      main
12:29:52.708:     level:        auto
12:29:52.708:     width:        1920
12:29:52.708:     height:       1080
12:29:52.708:     2-pass:       false
12:29:52.708:     b-frames:     2
12:29:52.708:     GPU:          0
12:29:52.708:
12:29:53.068: [CoreAudio AAC: 'Track1']: settings:
12:29:53.068:     mode:          AAC
12:29:53.068:     bitrate:       160
12:29:53.068:     sample rate:   48000
12:29:53.068:     cbr:           on
12:29:53.068:     output buffer: 1536
12:29:53.075: [CoreAudio AAC: 'Track2']: settings:
12:29:53.075:     mode:          AAC
12:29:53.075:     bitrate:       160
12:29:53.075:     sample rate:   48000
12:29:53.075:     cbr:           on
12:29:53.075:     output buffer: 1536
12:29:53.092: ==== Recording Start ===============================================
12:29:53.092: [ffmpeg muxer: 'adv_file_output'] Writing file 'C:/Users/Jaden/Videos/2017-08-01 12-29-52.mp4'...
12:30:21.496: [ffmpeg muxer: 'adv_file_output'] Output of file 'C:/Users/Jaden/Videos/2017-08-01 12-29-52.mp4' stopped
12:30:21.496: Output 'adv_file_output': stopping
12:30:21.496: Output 'adv_file_output': Total encoded frames: 1703
12:30:21.496: Output 'adv_file_output': Total drawn frames: 1704
12:30:21.496: ==== Recording Stop ================================================
 
Isn't 50000bitrate a little bit high? Never tried it, just an idea.

If you have enough disk space available you can also try another recording option. I record with CRF instead of CBR. If you want, give it a try :-)

The default value for CRF is 18. The lower the value the better the quality but also the bigger the file. I'm fine with CRF 20.

Image with setting: click
 

Attachments

  • Unbenannt.png
    Unbenannt.png
    74.6 KB · Views: 567

MineKnights

New Member
Isn't 50000bitrate a little bit high? Never tried it, just an idea.

If you have enough disk space available you can also try another recording option. I record with CRF instead of CBR. If you want, give it a try :-)

The default value for CRF is 18. The lower the value the better the quality but also the bigger the file. I'm fine with CRF 20.

Image with setting: click

Yes I've viewed it in different players. Heres a gameplay is on YouTube and you can tell that the frames aren't consistent
https://youtu.be/NC_GrAaGX6w
 
Here you can see the recommended bitrates for a youtube video upload: click

Either you lower your bitrate or try CRF.

I can't tell you other possibilities. Maybe other people can suggest better solutions.
 
always enable vsync in game if you stream/record
recording with cbr is bad idea. go with attached picture if you want to keep using nvenc.
x264 crf +game can be too much for this cpu
 

Attachments

  • Screenshot 2017-08-03 11-44-07.png
    Screenshot 2017-08-03 11-44-07.png
    24.3 KB · Views: 664
Wouldn't V-Sync make my recording laggier since it is limiting my in-game FPS?

no, you need vsync to limit game so it wont max gpu. obs uses gpu also and if its maxed it cant grab frames well resulting in stuttering.
even minecraft will max gtx 1080 with 1000fps without vsync but you need only 60
 
Top