Minecraft keeps lagging when recording.

My Minecraft keeps lagging when recording. I tried everything but no result.

Log Analise.

13:18:04.099: video settings reset:
13:18:04.099: base resolution: 1920x1080
13:18:04.099: output resolution: 1920x1080
13:18:04.099: downscale filter: Bicubic
13:18:04.099: fps: 90/1
13:18:04.099: format: NV12
13:18:04.099: YUV mode: Rec. 709/Partial
13:18:04.100: NV12 texture support enabled
13:18:04.100: P010 texture support not available
13:18:04.103: Audio monitoring device:
13:18:04.103: name: Default
13:18:04.103: id: default
13:18:04.332: ---------------------------------
13:18:04.333: ==== Startup complete ===============================================
13:18:04.363: All scene data cleared
13:18:04.363: ------------------------------------------------
13:18:04.381: [win-wasapi: 'Desktop Audio'] update settings:
13:18:04.381: device id: {0.0.0.00000000}.{1f2ce581-f6cf-4739-83c7-ab149d2f0766}
13:18:04.381: use device timing: 1
13:18:04.383: [Loaded global audio device]: 'Desktop Audio'
13:18:04.383: [win-wasapi: 'Mic/Aux'] update settings:
13:18:04.383: device id: {0.0.1.00000000}.{f6a095c3-2220-4bcd-8911-4669036ebcf6}
13:18:04.383: use device timing: 0
13:18:04.383: [WASAPISource::TryInitialize]:[{0.0.0.00000000}.{1f2ce581-f6cf-4739-83c7-ab149d2f0766}] Failed to enumerate device: 80070490
13:18:04.383: [Loaded global audio device]: 'Mic/Aux'
13:18:04.383: WASAPI: Device '{0.0.0.00000000}.{1f2ce581-f6cf-4739-83c7-ab149d2f0766}' failed to start (source: Desktop Audio)
13:18:04.384: [WASAPISource::TryInitialize]:[{0.0.1.00000000}.{f6a095c3-2220-4bcd-8911-4669036ebcf6}] Failed to enumerate device: 80070490
13:18:04.384: WASAPI: Device '{0.0.1.00000000}.{f6a095c3-2220-4bcd-8911-4669036ebcf6}' failed to start (source: Mic/Aux)
13:18:04.384: [win-wasapi: 'Microfone'] update settings:
13:18:04.384: device id: {0.0.1.00000000}.{f6a095c3-2220-4bcd-8911-4669036ebcf6}
13:18:04.384: use device timing: 0
13:18:04.384: [WASAPISource::TryInitialize]:[{0.0.1.00000000}.{f6a095c3-2220-4bcd-8911-4669036ebcf6}] Failed to enumerate device: 80070490
13:18:04.384: WASAPI: Device '{0.0.1.00000000}.{f6a095c3-2220-4bcd-8911-4669036ebcf6}' failed to start (source: Microfone)
13:18:04.386: [duplicator-monitor-capture: 'Display Capture'] update settings:
13:18:04.386: display: HP 22w (1920x1080)
13:18:04.386: cursor: true
13:18:04.386: method: DXGI
13:18:04.386: id: \\?\DISPLAY#HPN342E#5&2c049244&0&UID33025#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}
13:18:04.386: alt_id: \\.\DISPLAY1
13:18:04.386: setting_id: \\?\DISPLAY#HPN342E#5&2c049244&0&UID33025#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}
13:18:04.386: force SDR: false
13:18:05.475: [window-capture: 'Window Capture'] update settings:
13:18:05.475: executable: chrome.exe
13:18:05.475: method selected: Automatic
13:18:05.475: method chosen: WGC
13:18:05.475: force SDR: false
13:18:05.500: Switched to scene 'Gameplay'
13:18:05.500: ------------------------------------------------
13:18:05.500: Loaded scenes:
13:18:05.500: - scene 'Shorts':
13:18:05.500: - source: 'Captures' (group)
13:18:05.500: - source: 'Display Capture' (monitor_capture)
13:18:05.500: - source: 'Game Capture' (game_capture)
13:18:05.501: - source: 'Widgets' (group)
13:18:05.501: - source: 'Live Sub Count' (browser_source)
13:18:05.501: - source: 'Others' (group)
13:18:05.501: - source: 'Microfone' (wasapi_input_capture)
13:18:05.501: - source: 'Text' (group)
13:18:05.501: - source: 'Score' (text_gdiplus_v2)
13:18:05.501: - scene 'Stream Starting':
13:18:05.501: - source: 'Tesstd' (browser_source)
13:18:05.501: - scene 'Just Chatting':
13:18:05.501: - source: 'Browser' (browser_source)
13:18:05.501: - source: 'Window Capture' (window_capture)
13:18:05.501: - source: 'Overlays' (browser_source)
13:18:05.501: - scene 'End':
13:18:05.501: - source: 'Browser 2' (browser_source)
13:18:05.501: - source: 'Overlays' (browser_source)
13:18:05.501: - scene 'BRB':
13:18:05.501: - source: 'Browser 3' (browser_source)
13:18:05.501: - scene 'Gameplay':
13:18:05.501: - source: 'Overlays' (browser_source)
13:18:05.501: - source: 'Game Capture 2' (game_capture)
13:18:05.501: ------------------------------------------------
13:18:05.621: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:18:10.276: [obs-browser: 'Live Sub Count'] Error: [Report Only] This document requires 'TrustedHTML' assignment. (:1)
13:21:02.082: Switched to Preview/Program mode
13:21:02.083: ------------------------------------------------
13:21:02.913: Switched to scene 'Gameplay'
13:21:02.917: Switched to regular Preview mode
13:21:02.917: ------------------------------------------------
13:21:10.485: Number of remaining views: 1
13:21:10.485: ---------------------------------
13:21:10.485: video settings reset:
13:21:10.485: base resolution: 1920x1080
13:21:10.485: output resolution: 1920x1080
13:21:10.485: downscale filter: Bicubic
13:21:10.485: fps: 60/1
13:21:10.485: format: NV12
13:21:10.485: YUV mode: Rec. 709/Partial
13:21:10.485: NV12 texture support enabled
13:21:10.485: P010 texture support not available
13:21:10.699: Settings changed (video)
13:21:10.699: ------------------------------------------------
13:21:30.556: User switched to scene 'Shorts'
13:21:31.290: [game-capture: 'Game Capture 2'] capture stopped
13:21:35.228: User Removed source 'Display Capture' (monitor_capture) from scene 'Captures'
13:21:41.672: User switched to scene 'Stream Starting'
13:21:42.829: User switched to scene 'Shorts'
13:21:43.353: User switched to scene 'End'
13:21:44.165: User switched to scene 'Gameplay'
13:21:44.174: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:21:44.190: [game-capture: 'Game Capture 2'] capture stopped
13:21:45.923: User switched to scene 'BRB'
13:21:46.191: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:21:46.207: [game-capture: 'Game Capture 2'] capture stopped
13:21:46.731: User switched to scene 'End'
13:21:54.090: User switched to scene 'Just Chatting'
13:22:00.801: User switched to scene 'Shorts'
13:22:02.267: User switched to scene 'Stream Starting'
13:22:04.273: User switched to scene 'Just Chatting'
13:22:06.026: User switched to scene 'Gameplay'
13:22:06.041: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:06.057: [game-capture: 'Game Capture 2'] capture stopped
13:22:08.057: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:08.074: [game-capture: 'Game Capture 2'] capture stopped
13:22:08.766: User switched to scene 'BRB'
13:22:09.431: User switched to scene 'End'
13:22:10.074: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:10.090: [game-capture: 'Game Capture 2'] capture stopped
13:22:10.347: User switched to scene 'Gameplay'
13:22:10.358: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:10.373: [game-capture: 'Game Capture 2'] capture stopped
13:22:12.380: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:12.390: [game-capture: 'Game Capture 2'] capture stopped
13:22:14.391: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:14.407: [game-capture: 'Game Capture 2'] capture stopped
13:22:16.407: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:16.424: [game-capture: 'Game Capture 2'] capture stopped
13:22:18.430: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:18.440: [game-capture: 'Game Capture 2'] capture stopped
13:22:20.441: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:20.456: [game-capture: 'Game Capture 2'] capture stopped
13:22:22.457: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:22.473: [game-capture: 'Game Capture 2'] capture stopped
13:22:24.474: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:24.490: [game-capture: 'Game Capture 2'] capture stopped
13:22:26.491: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:26.507: [game-capture: 'Game Capture 2'] capture stopped
13:22:28.507: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:28.523: [game-capture: 'Game Capture 2'] capture stopped
13:22:30.524: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:30.540: [game-capture: 'Game Capture 2'] capture stopped
13:22:32.540: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:32.557: [game-capture: 'Game Capture 2'] capture stopped
13:22:34.557: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:34.573: [game-capture: 'Game Capture 2'] capture stopped
13:22:36.574: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:36.590: [game-capture: 'Game Capture 2'] capture stopped
13:22:38.590: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:38.607: [game-capture: 'Game Capture 2'] capture stopped
13:22:39.979: User switched to scene 'BRB'
13:22:40.607: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:22:40.623: [game-capture: 'Game Capture 2'] capture stopped
13:22:41.245: User switched to scene 'End'
13:22:42.393: User switched to scene 'Just Chatting'
13:22:47.586: User switched to scene 'Stream Starting'
13:22:48.522: User switched to scene 'Shorts'
13:22:48.634: User switched to scene 'Stream Starting'
13:22:48.642: User switched to scene 'Shorts'
13:24:28.258: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:24:28.258: User switched to scene 'Gameplay'
13:24:28.274: [game-capture: 'Game Capture 2'] capture stopped
13:24:30.275: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:24:30.290: [game-capture: 'Game Capture 2'] capture stopped
13:24:32.291: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:24:32.307: [game-capture: 'Game Capture 2'] capture stopped
13:24:32.599: ---------------------------------
13:24:32.599: [x264 encoder: 'advanced_video_recording'] preset: slow
13:24:32.599: [x264 encoder: 'advanced_video_recording'] settings:
13:24:32.599: rate_control: CRF
13:24:32.599: bitrate: 0
13:24:32.599: buffer size: 0
13:24:32.599: crf: 22
13:24:32.599: fps_num: 60
13:24:32.599: fps_den: 1
13:24:32.599: width: 1920
13:24:32.599: height: 1080
13:24:32.599: keyint: 250
13:24:32.599:
13:24:32.602: ---------------------------------
13:24:32.602: [FFmpeg aac encoder: 'Track1'] bitrate: 160, channels: 2, channel_layout: stereo
13:24:32.602:
13:24:32.604: ---------------------------------
13:24:32.604: [FFmpeg aac encoder: 'Track2'] bitrate: 160, channels: 2, channel_layout: stereo
13:24:32.604:
13:24:32.618: ==== Recording Start ===============================================
13:24:32.618: [ffmpeg muxer: 'adv_file_output'] Writing file 'C:/Users/alexa/Desktop/Folders/Folders/YT/Recordings/2024-02-18 13-24-32.mp4'...
13:24:34.308: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:24:34.324: [game-capture: 'Game Capture 2'] capture stopped
13:24:36.324: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:24:36.340: [game-capture: 'Game Capture 2'] capture stopped
13:24:38.341: [game-capture: 'Game Capture 2'] attempting to hook process: javaw.exe
13:24:38.402: [game-capture: 'Game Capture 2'] gl shared texture capture successful
13:24:38.407: [game-capture: 'Game Capture 2'] shared texture capture successful
13:25:37.571: [ffmpeg muxer: 'adv_file_output'] Output of file 'C:/Users/alexa/Desktop/Folders/Folders/YT/Recordings/2024-02-18 13-24-32.mp4' stopped
13:25:37.571: Output 'adv_file_output': stopping
13:25:37.571: Output 'adv_file_output': Total frames output: 3640
13:25:37.571: Output 'adv_file_output': Total drawn frames: 3868 (3897 attempted)
13:25:37.571: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 29 (0.7%)
13:25:37.572: ==== Recording Stop ================================================
13:25:37.579: Video stopped, number of skipped frames due to encoding lag: 3194/3753 (85.1%)


If you need something else just contact me on Discord

enchantedendermanyt

Send me fix on Discord
 

koala

Active Member
Your CPU isn't powerful enough to use the "slow" preset of the x264 encoder. Choose a less demanding preset such as "veryfast", which is the default. Also, using 90 fps while your monitor runs with only 60 Hz is wasting 50% CPU cycles for encoding for nothing, because there is no additional video material to encode. So use 60 fps for OBS and use the "veryfast" preset of x264.
 
Top