Question / Help Random stuttering/lag in recording

KWM1

New Member
Hey all. Heres the log: https://obsproject.com/logs/ilMTslab1TpLj-5v

I'm getting issues recording a certain game in OBS. If I do any racing/driving within this one game, it has stuttering and lag randomly throughout the recording. If I'm recording voice over the top then the voice stays perfectly fine, but the video will still have random lag.

My game, even when recording runs at roughly 150-200fps depending on the track/cars and doesn't drop randomly.

I've tried recording in Window Capture (capturing '[acs.exe]:Assetto Corsa'), Display Capture & also Game Capture and all do the exact same thing.

OBS records gameplay/voiceovers perfectly fine in every other game I've recorded.

Has anyone else run into this issue?

As you will see in the log i changed some settings before the last recording at 22:03:22.

Thanks all.
 
Try using x264, your system should be powerful enough to handle it. The AMF encoder is generally not that great.
 
Try using x264, your system should be powerful enough to handle it. The AMF encoder is generally not that great.

Thanks for the reply. I tried that but still the same. Also tried a fresh install of OBS and still the same too.

Any help would be much appreciated.
 
So after some experimenting if I record to my SSD there isn't any stuttering/lag, unlike when recording to HDD. But, this isn't really going to work as I would prefer my recordings to be on my HDD, so any advice on that? Also, I still have 'encoding lag', on both SSD or HDD.
 
Unfortunately I am not familiar at all with the AMF encoder, so I'm not really qualified to give proper advice based on the results the logs show.

What I can say though is if you're only having the encoding lag when recording to the HDD, then your HDD is a bottleneck to your encoder -- it just can't write fast enough to the drive to be ready to encode the next frame.

The only real fix for this if you need to record directly to the hard drive is to lower your bitrate. Or at least, lower your peak bitrate to mitigate against those instances where the larger amount of data causes the write delays.

I'm not sure if you're using CQP or VBR or CBR... but my recommendation would be to actually use CBR and find the bitrate which results in no missed frames. Normally for recording, a quality-based encoding target is recommended, but if there's a hard bitrate cap being enforced by your hardware, then there's no other real way.
 
Unfortunately I am not familiar at all with the AMF encoder, so I'm not really qualified to give proper advice based on the results the logs show.

What I can say though is if you're only having the encoding lag when recording to the HDD, then your HDD is a bottleneck to your encoder -- it just can't write fast enough to the drive to be ready to encode the next frame.

The only real fix for this if you need to record directly to the hard drive is to lower your bitrate. Or at least, lower your peak bitrate to mitigate against those instances where the larger amount of data causes the write delays.

I'm not sure if you're using CQP or VBR or CBR... but my recommendation would be to actually use CBR and find the bitrate which results in no missed frames. Normally for recording, a quality-based encoding target is recommended, but if there's a hard bitrate cap being enforced by your hardware, then there's no other real way.
Thank you for the reply. So basically just try out different bitrates until i get no encoding issues. How would i find the peak bitrate and adjust that?
 
As I said, I'm not familiar with the AMF encoder, so I don't know the exact settings that need to be set. But if it's anything like x264 or nvenc, then all that needs to be done is set the Rate Control to CBR, and the bitrate to your target. If there's actual settings that allow you to have VBR, then that would be where you adjust the target and maximum bitrates.
 
Back
Top