Skipped frames due to encoding lag?

quackrah

New Member
Okay, so here's the issue: whenever I record at 240 fps, it skips 90% of the frames, making the video impossible to watch. The strange thing is, I'm using the same render settings as I always have, and before I started live streaming for the first time, everything was working perfectly. It wouldn't skip any frames. However, after I streamed for the first time on YouTube, it started skipping frames whenever I recorded. Oddly enough, it doesn't skip frames while streaming.

I've tried various solutions, such as running OBS as an administrator, changing OBS's priority, setting the process priority to high within OBS, and even giving it GPU priority in the NVIDIA Control Panel. Unfortunately, none of these attempts have resolved the issue. I'm using the H.264 NVENC codec.

If anyone knows how to fix this, please share your insights. Thank you! :)
 

Attachments

  • Screenshot_2.png
    Screenshot_2.png
    44.1 KB · Views: 121
  • Screenshot_3.png
    Screenshot_3.png
    44.5 KB · Views: 111
  • Screenshot_4.png
    Screenshot_4.png
    27.7 KB · Views: 110
  • Screenshot_5.png
    Screenshot_5.png
    19.2 KB · Views: 118

quackrah

New Member
I wanna add a log if it helps:
14:49:33.420: CPU Name: 12th Gen Intel(R) Core(TM) i5-12400F
14:49:33.420: CPU Speed: 2496MHz
14:49:33.420: Physical Cores: 6, Logical Cores: 12
14:49:33.420: Physical Memory: 32606MB Total, 23215MB Free
14:49:33.420: Windows Version: 10.0 Build 22621 (release: 22H2; revision: 2283; 64-bit)
14:49:33.420: Running as administrator: true
14:49:33.420: Windows 10/11 Gaming Features:
14:49:33.420: Game DVR: On
14:49:33.420: Game Mode: Probably On (no reg key set)
14:49:33.424: Sec. Software Status:
14:49:33.424: Norton 360 for Gamers: enabled (AV)
14:49:33.425: Microsoft Defender Antivirus: disabled (AV)
14:49:33.425: Norton 360 for Gamers: enabled (FW)
14:49:33.425: Windows Firewall: disabled (FW)
14:49:33.426: Current Date/Time: 2023-09-16, 14:49:33
14:49:33.426: Browser Hardware Acceleration: true
14:49:33.426: Hide OBS windows from screen capture: false
14:49:33.426: Qt Version: 6.4.3 (runtime), 6.4.3 (compiled)
14:49:33.426: Portable mode: false
14:49:33.547: OBS 29.1.3 (64-bit, windows)
14:49:33.547: ---------------------------------
14:49:33.581: ---------------------------------
14:49:33.581: audio settings reset:
14:49:33.581: samples per sec: 48000
14:49:33.581: speakers: 2
14:49:33.581: max buffering: 960 milliseconds
14:49:33.581: buffering type: dynamically increasing
14:49:33.582: ---------------------------------
14:49:33.582: Initializing D3D11...
14:49:33.582: Available Video Adapters:
14:49:33.584: Adapter 0: NVIDIA GeForce RTX 3060
14:49:33.584: Dedicated VRAM: 12718178304
14:49:33.584: Shared VRAM: 17095315456
14:49:33.584: PCI ID: 10de:2504
14:49:33.584: Driver Version: 31.0.15.3713
14:49:33.584: output 0:
14:49:33.584: name=C27F390
14:49:33.584: pos={0, 0}
14:49:33.584: size={1920, 1080}
14:49:33.584: attached=true
14:49:33.584: refresh=60
14:49:33.584: bits_per_color=8
14:49:33.584: space=RGB_FULL_G22_NONE_P709
14:49:33.584: sdr_white_nits=80
14:49:33.584: nit_range=[min=0.500000, max=270.000000, max_full_frame=270.000000]
14:49:33.584: dpi=96 (100%)
14:49:33.584: id=\\?\DISPLAY#SAM0D32#5&1b2b4495&0&UID4352#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}
14:49:33.584: alt_id=\\.\DISPLAY1
14:49:33.585: Loading up D3D11 on adapter NVIDIA GeForce RTX 3060 (0)
14:49:33.646: D3D11 loaded successfully, feature level used: b000
14:49:33.646: DXGI increase maximum frame latency success
14:49:33.646: Hardware-Accelerated GPU Scheduling enabled on adapter!
14:49:33.646: D3D11 GPU priority setup success
14:49:34.801: ---------------------------------
14:49:34.801: video settings reset:
14:49:34.801: base resolution: 1920x1080
14:49:34.801: output resolution: 1920x1080
14:49:34.801: downscale filter: Bicubic
14:49:34.801: fps: 240/1
14:49:34.801: format: NV12
14:49:34.801: YUV mode: Rec. 709/Full
14:49:34.801: NV12 texture support enabled
14:49:34.801: P010 texture support not available
14:49:34.802: Audio monitoring device:
14:49:34.802: name: Default
14:49:34.802: id: default
14:49:34.803: ---------------------------------
14:49:34.805: Failed to load 'en-GB' text for module: 'aja-output-ui.dll'
14:49:34.805: No AJA devices found, skipping loading AJA UI plugin
14:49:34.805: Failed to initialize module 'aja-output-ui.dll'
14:49:34.806: Failed to load 'en-GB' text for module: 'aja.dll'
14:49:34.806: No AJA devices found, skipping loading AJA plugin
14:49:34.806: Failed to initialize module 'aja.dll'
14:49:34.807: Skipping module '../../obs-plugins/64bit/chrome_elf.dll', not an OBS plugin
14:49:34.807: Failed to load 'en-GB' text for module: 'coreaudio-encoder.dll'
14:49:34.809: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
14:49:34.809: Failed to load 'en-US' text for module: 'decklink-captions.dll'
14:49:34.810: Failed to load 'en-US' text for module: 'decklink-output-ui.dll'
14:49:34.812: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
14:49:34.812: Failed to initialize module 'decklink.dll'
14:49:34.835: [AMF] Unable to load 'amfrt64.dll', error code 126.
14:49:34.836: [AMF] AMF Test failed due to one or more errors.
14:49:34.836: Failed to initialize module 'enc-amf.dll'
14:49:34.838: Failed to load 'en-GB' text for module: 'frontend-tools.dll'
14:49:34.843: Skipping module '../../obs-plugins/64bit/libcef.dll', not an OBS plugin
14:49:34.843: Skipping module '../../obs-plugins/64bit/libEGL.dll', not an OBS plugin
14:49:34.843: Skipping module '../../obs-plugins/64bit/libGLESv2.dll', not an OBS plugin
14:49:34.856: [obs-browser]: Version 2.21.1
14:49:34.856: [obs-browser]: CEF Version 103.0.5060.134 (runtime), 103.0.0-5060-shared-textures.2591+g4204d54+chromium-103.0.5060.134 (compiled)
14:49:34.860: NVENC supported
14:49:35.503: [NVENC] AV1 is not supported
14:49:35.504: [noise suppress]: NVIDIA denoiser disabled, redistributable not found or could not be loaded.
14:49:35.505: Failed to get NVVideoEffects.dll version info size
14:49:35.505: [NVIDIA VIDEO FX]: FX disabled, redistributable not found or could not be loaded.
14:49:35.507: Failed to load 'en-GB' text for module: 'obs-qsv11.dll'
14:49:35.537: Failed to load 'en-GB' text for module: 'obs-vst.dll'
14:49:35.538: Failed to load 'en-GB' text for module: 'obs-websocket.dll'
14:49:35.538: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.2.3 | RPC Version: 1)
14:49:35.538: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.4.3 | Qt version (run-time): 6.4.3
14:49:35.538: [obs-websocket] [obs_module_load] Linked ASIO Version: 101201
14:49:35.543: [obs-websocket] [obs_module_load] Module loaded.
14:49:35.545: Failed to load 'en-GB' text for module: 'rtmp-services.dll'
14:49:35.548: [vlc-video]: Couldn't find VLC installation, VLC video source disabled
14:49:35.554: Failed to load 'en-GB' text for module: 'win-wasapi.dll'
14:49:35.554: ---------------------------------
14:49:35.554: Loaded Modules:
14:49:35.554: win-wasapi.dll
14:49:35.554: win-dshow.dll
14:49:35.554: win-capture.dll
14:49:35.554: vlc-video.dll
14:49:35.554: text-freetype2.dll
14:49:35.554: rtmp-services.dll
14:49:35.554: obs-x264.dll
14:49:35.554: obs-websocket.dll
14:49:35.554: obs-vst.dll
14:49:35.554: obs-transitions.dll
14:49:35.554: obs-text.dll
14:49:35.554: obs-qsv11.dll
14:49:35.554: obs-outputs.dll
14:49:35.554: obs-filters.dll
14:49:35.554: obs-ffmpeg.dll
14:49:35.554: obs-browser.dll
14:49:35.554: image-source.dll
14:49:35.554: frontend-tools.dll
14:49:35.554: decklink-output-ui.dll
14:49:35.554: decklink-captions.dll
14:49:35.554: coreaudio-encoder.dll
14:49:35.554: ---------------------------------
14:49:35.554: ==== Startup complete ===============================================
14:49:35.588: All scene data cleared
14:49:35.588: ------------------------------------------------
14:49:35.600: [win-wasapi: 'Desktop Audio'] update settings:
14:49:35.600: device id: default
14:49:35.600: use device timing: 1
14:49:35.602: [Loaded global audio device]: 'Desktop Audio'
14:49:35.602: [win-wasapi: 'Mic/Aux'] update settings:
14:49:35.602: device id: default
14:49:35.602: use device timing: 0
14:49:35.602: [Loaded global audio device]: 'Mic/Aux'
14:49:35.603: [duplicator-monitor-capture: 'Display Capture'] update settings:
14:49:35.603: display: C27F390 (1920x1080)
14:49:35.603: cursor: true
14:49:35.603: method: DXGI
14:49:35.603: id: \\?\DISPLAY#SAM0D32#5&1b2b4495&0&UID4352#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}
14:49:35.603: alt_id: \\.\DISPLAY1
14:49:35.603: setting_id: \\?\DISPLAY#SAM0D32#5&1b2b4495&0&UID4352#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}
14:49:35.603: force SDR: false
14:49:35.604: Switched to scene 'Scene'
14:49:35.604: ------------------------------------------------
14:49:35.604: Loaded scenes:
14:49:35.604: - scene 'Scene':
14:49:35.604: - source: 'Display Capture' (monitor_capture)
14:49:35.604: ------------------------------------------------
14:49:35.616: WASAPI: Device 'Microphone (Razer Seiren Mini)' [48000 Hz] initialized
14:49:35.628: WASAPI: Device 'Realtek HD Audio 2nd output (Realtek(R) Audio)' [48000 Hz] initialized
14:49:38.706: [jim-nvenc: 'advanced_video_recording'] settings:
14:49:38.706: codec: H264
14:49:38.706: rate_control: CQP
14:49:38.706: bitrate: 0
14:49:38.706: cqp: 17
14:49:38.706: keyint: 250
14:49:38.706: preset: p5
14:49:38.706: tuning: hq
14:49:38.706: multipass: qres
14:49:38.706: profile: high
14:49:38.706: width: 1920
14:49:38.706: height: 1080
14:49:38.706: b-frames: 2
14:49:38.706: lookahead: false
14:49:38.706: psycho_aq: true
14:49:38.706:
14:49:38.746: ---------------------------------
14:49:38.746: [FFmpeg aac encoder: 'Track1'] bitrate: 160, channels: 2, channel_layout: stereo
14:49:38.746:
14:49:38.748: [ffmpeg muxer: 'adv_file_output'] Using muxer settings:
14:49:38.748: movflags=frag_keyframe+empty_moov+delay_moov
14:49:38.759: ==== Recording Start ===============================================
14:49:38.759: [ffmpeg muxer: 'adv_file_output'] Writing file 'C:/Users/nikos/Videos/2023-09-16 14-49-38.mp4'...
14:49:44.057: [ffmpeg muxer: 'adv_file_output'] Output of file 'C:/Users/nikos/Videos/2023-09-16 14-49-38.mp4' stopped
14:49:44.057: Output 'adv_file_output': stopping
14:49:44.057: Output 'adv_file_output': Total frames output: 1159
14:49:44.057: Output 'adv_file_output': Total drawn frames: 1271
14:49:44.057: Video stopped, number of skipped frames due to encoding lag: 599/1171 (51.2%)
14:49:44.057: ==== Recording Stop ================================================
 

PaiSand

Active Member
YUV mode should be partial, not full.
FPS 60 or, if your hardware allows you, 120 at most.
Don't use advance output mode, keep it on simple output mode

At this point, run the Auto-configuration Wizard and apply the settings it gives. Do NOT change anything.
Please restart OBS and perform a test recording of at least 30 seconds doing as you normally do, including playing games, full camera or whatever you normally do.
Now look inside Help menu. Upload the current log file and paste the url to the log in here. Click on the Analize button to start troubleshooting common issues.
 

quackrah

New Member
YUV mode should be partial, not full.
FPS 60 or, if your hardware allows you, 120 at most.
Don't use advance output mode, keep it on simple output mode

At this point, run the Auto-configuration Wizard and apply the settings it gives. Do NOT change anything.
Please restart OBS and perform a test recording of at least 30 seconds doing as you normally do, including playing games, full camera or whatever you normally do.
Now look inside Help menu. Upload the current log file and paste the url to the log in here. Click on the Analize button to start troubleshooting common issues.
 

PaiSand

Active Member
Please review and folow directons and recommedations on the analyzer:

  1. Disable HAGS
  2. Use 60 fps
  3. YUV color must be Partial
  4. Diplay capture have to be on it's own scene. Never put game and diplay capture on same scene.
  5. Run OBS as admin.
After correcting this, test it again.
 
Top