Question / Help Duplicated frames in local recording over 2% - issue?

PrinceVinc

Member
I recorded Darksiders and saw some strange stuttering in my preview screen.
I had a discussion before about it, and there @Boildown mentioned that it should be under 1% for Local recording.
Back then the Problem was solved by connecting both monitors at the same GPU.
Since than nothing changed much.
So what could cause it?

Log file:
https://gist.github.com/9bd3edbdff1d912e5771

There seems to be a Hook conflict, I think it could be steam but I disabled overlay and similar already.
But it seems not to work like I want it too, cause Process Explorer still shows Steam as a Hook in the DLL

Here is a picture witch every DLL that is not Microsoft related.
Bitdefender was present in the past already.
 

Attachments

  • OBS.jpg
    OBS.jpg
    120.1 KB · Views: 42
Last edited:

PrinceVinc

Member
Edited start post, the crf setting is optional, I use quality balance instead.
The recording is set up like that.
And my PC can handle Veryfast + ther other CPU presets can cause quality loss.
 

Boildown

Active Member
Unfortunately the quality balance is there for streaming back when people still streamed VBR. It doesn't go up to high enough values for local recording IMO. So I'd recommend using the CRF=x method instead, as Osiris mentioned, and in the local recording guide.

Also, I'd record at the same FPS as the incoming video, presumably 60, not 48 as you have it set. And set the key interval to auto instead of 2 (2 is for Twitch streaming). And since you're getting 2% duplicated frames on Very Fast, switch it to Super Fast.

After those changes it should be performing better.
 

PrinceVinc

Member
I am recording with 48fps for a while now and the quality balance 10 is fine for me due to the fact that I upload the footage to YouTube (kind of Streaming) so I think the Issue is Steam or what ever Programm hooks with my game.
In the analyzed hook file, it can't tell me what programm is the hook, thats why I provided the Pictures with the dll.

And the Witcher 3 does not have that kind of Problem with 48fps recording.
So can Duplicated frames be caused by a different recording FPS than the FPS I am playing with?
I think 48FPS is good enough if you watch a Video and I mostly play @60 fps.
I decided to go 48FPS cause the Witcher 3 does not have Steady 60FPS so that became my Standard go to FPS.
Oh and the Key Int is crucial in my set up for editing purposes.
 

Boildown

Active Member
Switching to SuperFast is the only part that will have a big impact on performance (fixing the stuttering).

The other changes are for efficiency, mainly, or may have only a small impact on performance. If you're cutting on keyframes, then the short keyint makes sense. Using 48fps shouldn't cause duplicated frames, but I find your reasoning for preferring it to be shaky at best. Nevertheless, its no big deal. The important thing will be to switch to SuperFast preset.
 

PrinceVinc

Member
I just did some more tests with the same warning hook but only <1% Duplicated frames, my guess is that it's the game itself who causes those duplicated frames.
The main difference is the game with the duplicated frames is a (very old game xD) dx9 and the one without is (newish game) dx10
It seems to be that, depending on the source the duplictaed frames differ, I recorded a Visual Novel Today and there where 3% Duplicated frames xD go figure.

My findings show me that it seems to be game related :P But thx for your input, it's very much appreciated ^^
 

dping

Active Member
I just did some more tests with the same warning hook but only <1% Duplicated frames, my guess is that it's the game itself who causes those duplicated frames.
The main difference is the game with the duplicated frames is a (very old game xD) dx9 and the one without is (newish game) dx10
It seems to be that, depending on the source the duplictaed frames differ, I recorded a Visual Novel Today and there where 3% Duplicated frames xD go figure.

My findings show me that it seems to be game related :P But thx for your input, it's very much appreciated ^^
one thing to check since your mic seems to be lagging behind (which can cause duplicate frames) check audio format of you SC450USB in windows recording devices. also check your headset/speakers under advanced in windows playback devices. make sure all audio formats are the same. Right now, OBS is set for 48000Hz so if any device is 44100Hz it will re-encode it which uses up extra CPU.

tl'dr make sure all audio format matches for best performance.

I second the notion to use superfast preset as it will alleviate CPU usage a little while maintaining quality with sacrificing higher filesizes.


EDIT: also, unknown hooks mean the hook isn't active which is fine. if there is a filepath, thats when something is wrong.
 

PrinceVinc

Member
Thx for the hint I realised it too, but could not really find out why, but it was so "minor" that I just let it slide.
I set my Audio to 24Bit 48000Hz(Studioquality?) and the Mic is now 1 Channel (Mono Mic), 16Bit 48000Hz(DVD Quality?)
I don't know though what kind of a set back it would be for me to switch my Audio to 16Bit DVD-Quality aswell :P
So I basically set both to 48000 Hz with the highest "Quality" available at this Hz rate.

Edit: The hook thing part is interesting, I was worried cause the Analyze Log said its is an Major Issue.

Edit2: in the Video itself I can't see so much Audio distortion, but after changing the settings, the timestamp is still behind target about 170(ms?)
At wich rate is there really reason to worry? I found this thread, but it didn't really helped that much to figure out what to do.
https://obsproject.com/forum/threads/how-to-fix-as-behind-target-timestamp-by-xx.15381/
Except for increase buffer time, but this will put more strain on my cpu I presume?
 
Last edited:

dping

Active Member
Thx for the hint I realised it too, but could not really find out why, but it was so "minor" that I just let it slide.
I set my Audio to 24Bit 48000Hz(Studioquality?) and the Mic is now 1 Channel (Mono Mic), 16Bit 48000Hz(DVD Quality?)
I don't know though what kind of a set back it would be for me to switch my Audio to 16Bit DVD-Quality aswell :P
So I basically set both to 48000 Hz with the highest "Quality" available at this Hz rate.

Edit: The hook thing part is interesting, I was worried cause the Analyze Log said its is an Major Issue.

Edit2: in the Video itself I can't see so much Audio distortion, but after changing the settings, the timestamp is still behind target about 170(ms?)
At wich rate is there really reason to worry? I found this thread, but it didn't really helped that much to figure out what to do.
https://obsproject.com/forum/threads/how-to-fix-as-behind-target-timestamp-by-xx.15381/
Except for increase buffer time, but this will put more strain on my cpu I presume?
you really want to set OBS to your audio devices not the other way around, but as long as they match really.
 

PrinceVinc

Member
Ok, so is it ok to be behind timestamp at some points? I sometimes have this message 2-5, but not in every recording so I assume it can happen but there is nothing I can really do about it right?

I heard it can be caused by a "bad" usb conncetion or due to OC in some way, but there is none really applied.
So to sum it all up:
I can live with some duplicated frames in my recordings, what I like to know is:
How much % is a bad sign?
And how much Timestamp behind target x is ok?
 

Boildown

Active Member
How much % is a bad sign?
And how much Timestamp behind target x is ok?

My rule of thumb is that less than 1% is acceptable, more than 1% is unacceptable. If its near 1%, then I try to lower it a little bit until its around .5 % and then I know its good pretty much no matter what.

As for the Timestamp warning, I completely ignore it. If when you watch the video afterwards all the sounds happen in sync, then there's nothing to worry about.
 

PrinceVinc

Member
Ok, thx the Duplicated frames where game related it seems the one with the above 2% was Darksiders a DX9 Game.
I recently played batman Arkham Asylum and there where only 0,01% Duplicated frames :p
I shouldn't worry to much anymore I guess.
Thx for the help anyhow^^
 
Top