Lags on recorded video (not on the content I am recording)

Bohdander

New Member
Hello everyone, many of my videos recorded in OBS have been experiencing lags lately. Sometimes the video was recorded without lags; sometimes half of the video was smooth, and the other half was not. I set a higher priority (higher than normal), and it got a little better, but the problem didn't disappear.

Please help me solve this problem!

I've attached the Log File of the session where there were lags in the recorded video.

Log File: https://obsproject.com/logs/TS3PloFmhJydByAO
 

koala

Active Member
You seem to record to a H: drive. In case this is an external drive connected with USB, switch to an internal drive for recording. External drives are usually not write cached, and this might lead to issues with OBS while writing long continuous data streams.
Your log contains a short 10 second recording with no issues. Settings seem fine, even conservative (only 30 fps). No lost frames logged. Either this is the wrong logfile, or there are no issues with OBS. Try a different media player, for example vlc. The Windows integrated media playback often doesn't work well.
 

Bohdander

New Member
You seem to record to a H: drive. In case this is an external drive connected with USB, switch to an internal drive for recording. External drives are usually not write cached, and this might lead to issues with OBS while writing long continuous data streams.
Your log contains a short 10 second recording with no issues. Settings seem fine, even conservative (only 30 fps). No lost frames logged. Either this is the wrong logfile, or there are no issues with OBS. Try a different media player, for example vlc. The Windows integrated media playback often doesn't work well.
H: drive is HDD. I'll already tried VLC and I can still see the lags.
Just now I've recorded few videos and in the videos named "2024-04-08 16-06-23", "2024-04-08 16-16-43" and "2024-04-08 16-18-02" there was frame drops.

Log File: https://obsproject.com/logs/cLFtGRDOkxeOJ5Xj
 

Bohdander

New Member
You seem to record to a H: drive. In case this is an external drive connected with USB, switch to an internal drive for recording. External drives are usually not write cached, and this might lead to issues with OBS while writing long continuous data streams.
Your log contains a short 10 second recording with no issues. Settings seem fine, even conservative (only 30 fps). No lost frames logged. Either this is the wrong logfile, or there are no issues with OBS. Try a different media player, for example vlc. The Windows integrated media playback often doesn't work well.
UPD. Another Log File with lags on two videos: https://obsproject.com/logs/jLh4g2M8sOKqYOCf
 

rockbottom

Active Member
HAGS is enabled in the last log, that should be disabled. There are also a couple of Scenes that have multiple Game/Window Captures, only 1 per to avoid interference. Your recordings will always stutter with the monitor @ 75HZ, run it @ 60 when using OBS.

Audio lagging here:
13:42:32.151: Max audio buffering reached!
13:42:32.151: adding 917 milliseconds of audio buffering, total audio buffering is now 960 milliseconds (source: Устройство воспроизведения)
 

Bohdander

New Member
HAGS is enabled in the last log, that should be disabled. There are also a couple of Scenes that have multiple Game/Window Captures, only 1 per to avoid interference. Your recordings will always stutter with the monitor @ 75HZ, run it @ 60 when using OBS.

Audio lagging here:
13:42:32.151: Max audio buffering reached!
13:42:32.151: adding 917 milliseconds of audio buffering, total audio buffering is now 960 milliseconds (source: Устройство воспроизведения)
Thank you for the answer! So I need to change the monitor refresh rate to 60 when using OBS? I'm recording a video on the scene where I've left only a screen capture. Will the other scenes with other captures affect the recording?
 

rockbottom

Active Member
See how it goes. Hopefully that audio lag clears up with HAGS disabled. If you're still seeing it happen, I think it may be from the Nvidia NR filters. They're set but not being used as the app is not installed.

13:40:58.209: [noise suppress: 'Подавлення шуму'] NVAFX redist is not installed.
13:40:58.211: [Loaded global audio device]: 'Mic/Aux'
13:40:58.211: - filter: 'Подавлення шуму' (noise_suppress_filter_v2)
13:40:58.211: - filter: 'Пороговий шумопонижувач' (noise_gate_filter)
13:40:58.211: - filter: 'Компресор' (compressor_filter)
 

Bohdander

New Member
See how it goes. Hopefully that audio lag clears up with HAGS disabled. If you're still seeing it happen, I think it may be from the Nvidia NR filters. They're set but not being used as the app is not installed.

13:40:58.209: [noise suppress: 'Подавлення шуму'] NVAFX redist is not installed.
13:40:58.211: [Loaded global audio device]: 'Mic/Aux'
13:40:58.211: - filter: 'Подавлення шуму' (noise_suppress_filter_v2)
13:40:58.211: - filter: 'Пороговий шумопонижувач' (noise_gate_filter)
13:40:58.211: - filter: 'Компресор' (compressor_filter)
Thank you!
 

Bohdander

New Member
See how it goes. Hopefully that audio lag clears up with HAGS disabled. If you're still seeing it happen, I think it may be from the Nvidia NR filters. They're set but not being used as the app is not installed.

13:40:58.209: [noise suppress: 'Подавлення шуму'] NVAFX redist is not installed.
13:40:58.211: [Loaded global audio device]: 'Mic/Aux'
13:40:58.211: - filter: 'Подавлення шуму' (noise_suppress_filter_v2)
13:40:58.211: - filter: 'Пороговий шумопонижувач' (noise_gate_filter)
13:40:58.211: - filter: 'Компресор' (compressor_filter)
Well... The problem is 95% gone. But for some reason, sometimes the video can still lag at some points, which is very rare, but it happens. I'm attaching a log file in which a fps drop occurred during the recording of one of the videos (I think the first one).
 

rockbottom

Active Member
The log is incomplete

Your audio is still lagging, Nvidia NR is still in play & not installed. Remove the NR filter, see if it improves. If not, test with the source removed. It may be the audio driver if it still continues.

13:12:23.664: [win-wasapi: 'Захоплення звукового виходу'] update settings:
13:12:23.664: device id: default
13:12:23.664: use device timing: 1


13:12:23.666: [noise suppress: 'Подавлення шуму'] NVAFX redist is not installed.

13:12:23.669: - scene 'Запис звуку':
13:12:23.669: - source: 'Захоплення звукового входу' (wasapi_input_capture)
13:12:23.669: - filter: 'Подавлення шуму' (noise_suppress_filter_v2)
13:12:23.669: - filter: 'Пороговий шумопонижувач' (noise_gate_filter)
13:12:23.669: - filter: 'Компресор' (compressor_filter)

13:17:55.332: Max audio buffering reached!
13:17:55.332: adding 917 milliseconds of audio buffering, total audio buffering is now 960 milliseconds (source: Захоплення звукового виходу)
13:17:55.332:
13:19:04.623: Source Захоплення звукового виходу audio is lagging (over by 65987.86 ms) at max audio buffering. Restarting source audio.
13:24:29.572: Source Захоплення звукового виходу audio is lagging (over by 72307.28 ms) at max audio buffering. Restarting source audio.
13:26:21.082: Source Захоплення звукового виходу audio is lagging (over by 108214.25 ms) at max audio buffering. Restarting source audio.
13:27:21.134: Source Захоплення звукового виходу audio is lagging (over by 23166.20 ms) at max audio buffering. Restarting source audio.
 

Bohdander

New Member
The log is incomplete

Your audio is still lagging, Nvidia NR is still in play & not installed. Remove the NR filter, see if it improves. If not, test with the source removed. It may be the audio driver if it still continues.

13:12:23.664: [win-wasapi: 'Захоплення звукового виходу'] update settings:
13:12:23.664: device id: default
13:12:23.664: use device timing: 1


13:12:23.666: [noise suppress: 'Подавлення шуму'] NVAFX redist is not installed.

13:12:23.669: - scene 'Запис звуку':
13:12:23.669: - source: 'Захоплення звукового входу' (wasapi_input_capture)
13:12:23.669: - filter: 'Подавлення шуму' (noise_suppress_filter_v2)
13:12:23.669: - filter: 'Пороговий шумопонижувач' (noise_gate_filter)
13:12:23.669: - filter: 'Компресор' (compressor_filter)

13:17:55.332: Max audio buffering reached!
13:17:55.332: adding 917 milliseconds of audio buffering, total audio buffering is now 960 milliseconds (source: Захоплення звукового виходу)
13:17:55.332:
13:19:04.623: Source Захоплення звукового виходу audio is lagging (over by 65987.86 ms) at max audio buffering. Restarting source audio.
13:24:29.572: Source Захоплення звукового виходу audio is lagging (over by 72307.28 ms) at max audio buffering. Restarting source audio.
13:26:21.082: Source Захоплення звукового виходу audio is lagging (over by 108214.25 ms) at max audio buffering. Restarting source audio.
13:27:21.134: Source Захоплення звукового виходу audio is lagging (over by 23166.20 ms) at max audio buffering. Restarting source audio.
Thank you for the answer!
1. I don't know why it says that I'm using Nvidia NR, because I'm using Speex noise suppress.
2. I'm recording video in orther scene that don't have microphone input, it records only system/game sound
I'll try to reinstall or do something with audio driver
1715693034682.png
 

rockbottom

Active Member
These are not needed & can be disabled (Windows).
13:12:20.962: Game Bar: On
13:12:20.962: Game DVR: On

If you're going to update the audio driver, get it from the support page for your mobo.
 

rockbottom

Active Member
Thinking out loud. The Audio Source is in both Scenes. Was it added to the second Scene as "Create New" or "Add Existing"? Looks like Create New was used when it should have been "Add Existing"

13:12:23.664: [win-wasapi: 'Захоплення звукового виходу'] update settings:
13:12:23.664: device id: default
13:12:23.664: use device timing: 1
13:12:23.665: [win-wasapi: 'Захоплення звукового входу'] update settings:
13:12:23.665: device id: default
13:12:23.665: use device timing: 0

3:12:23.669: Loaded scenes:
13:12:23.669: - scene 'Запис Відео':
13:12:23.669: - source: 'Захоплення екрана' (monitor_capture)
13:12:23.669: - source: 'Захоплення звукового виходу' (wasapi_output_capture)
13:12:23.669: - scene 'Запис звуку':
13:12:23.669: - source: 'Захоплення звукового входу' (wasapi_input_capture)
13:12:23.669: - filter: 'Подавлення шуму' (noise_suppress_filter_v2)
13:12:23.669: - filter: 'Пороговий шумопонижувач' (noise_gate_filter)
13:12:23.669: - filter: 'Компресор' (compressor_filter)
 
Top