My recordings sometimes turn out "choppy"

DubskiDude

New Member
I've noticed that when I record games, often the video is smooth, but some sections get a little "rough" or "choppy". It's a bit disorienting sometimes. How would I go about fixing this and getting my recordings to stay consistently smooth?

My settings:
CQP (18)
Keyframe Interval: 2
Preset: Quality
Profile: High
Look-ahead is off
Psycho Visual Tuning are off
GPU: 0
Max B-frames: 4

I have a Ryzen 9 3900x and a Nvidia Geforce GTX 1070

Any advice would be very much appreciated!
 
by rough/choppy do you mean a stutter or a drop in quality?
try running as admin, turning game dvr and game bar off

Right, sometimes it will look like it drops down to 30FPS for a few seconds and then jump back to 60. I uninstalled Game Bar and set OBS to admin so I'll see if that works.
 
Did another recording and it was doing well for a solid 8 minutes, but then the framerate smoothness goes out the window. Here's an example, happens at the 40-50 second mark: https://www.dropbox.com/s/smy9bm6jgeq6lao/2020-12-17 16-30-25.mp4?dl=0

Note that everything is fine in-game, it's just OBS that craps out. Also the Dropbox preview is crap so you might have to download it to see it properly.

Thanks for the sample video! Now I am sure that I am fighting with the exact same problem (hopefully with a common root cause).
I usually record in long sessions (hours). The game runs smoothly, not even the slightest hiccup in FPS, rock solid 60 FPS. It comes out that in the recordings some sections get doubled frames. OBS is set to 60 FPS and mentioned sections look like ~30 FPS and stay like that for 10-20 seconds. They are a really negligible percent of a whole recording but happen unpredictably which is utterly annoying. Especially when they emerge in the worst possible moment.

Unfortunately, I don't have a fix for that yet. I can say that it affects both 1660 Ti and 3060 Ti in my case. Tried many different suggestions, updates, drivers, fiddled around with settings to no avail.

I see other people on this forum who experience similar problems. Maybe it is something bigger?

My two affected specs:
Ryzen 4800HS, GTX 1660 Ti
Ryzen 5900X, RTX 3060 Ti
 
Hopefully someone can help us figure it out. Also I was watching my GPU usage and the highest it ever went was around 40%, so it's not like my GPU is being maxed out or anything
 
The logs you posted don't have a recording attempt. Record a session for at least 1 minute, then stop recording, and with OBS still open, upload the current logs.
 
I am also having the same issues with similar specs. Could this be a Hard Drive related issue? I attached a log, but apologies if I did something wrong. I'm a total newbie at this stuff.
 

Attachments

Yep. Honestly, the frames lost to encoding lag are very minimal. It's consistently ~50 frames per recording, which shouldn't show up too badly in some of your longer recordings. You've already disabled psychovisual tuning, so that takes care of the major recommendation to eliminate cuda processing, but you might want to try either a higher CQP value or a different recording destination.

That said though, that shouldn't be the major issue. Are you using VLC to play back the videos, or something else like the standard windows player? If you're using the default, then that has problems playing back 30+ fps videos, and should not be used as reference.
 
I am also having the same issues with similar specs. Could this be a Hard Drive related issue? I attached a log, but apologies if I did something wrong. I'm a total newbie at this stuff.

I thought it might be the disk IO. So I tested on Ram Disk then. It did not help.

As for GPU saturation it is moderate, definitely not maxed out. I see this problem as quite hard to track down. A kind of logging system would be nice - does OBS have one? Having some more detailed logs I could correlate other variables and eventually at least find the reason of the problem.
 
Yeah, I am aware of these logs. They seem to have pre and post info only with some overall profiling. I thought about a debug output of some kind with periodically collected data.

03:37:49.548: obs_graphics_thread(16.6667 ms): min=0.036 ms, median=0.89 ms, max=321.701 ms, 99th percentile=1.905 ms, 99.992% below 16.667 ms
03:37:49.548: ┣tick_sources: min=0 ms, median=0.002 ms, max=3.058 ms, 99th percentile=0.006 ms
03:37:49.548: ┣output_frame: min=0.033 ms, median=0.882 ms, max=309.677 ms, 99th percentile=1.816 ms
03:37:49.548: ┃ ┗gs_context(video->graphics): min=0.033 ms, median=0.882 ms, max=309.677 ms, 99th percentile=1.815 ms
03:37:49.548: ┃ ┣render_video: min=0.002 ms, median=0.796 ms, max=122.445 ms, 99th percentile=1.75 ms
03:37:49.548: ┃ ┃ ┣render_main_texture: min=0.001 ms, median=0.793 ms, max=122.443 ms, 99th percentile=1.695 ms
03:37:49.548: ┃ ┃ ┣render_convert_texture: min=0.004 ms, median=0.011 ms, max=0.142 ms, 99th percentile=0.029 ms, 0.0996632 calls per parent call
03:37:49.548: ┃ ┃ ┗output_gpu_encoders: min=0 ms, median=0.028 ms, max=0.44 ms, 99th percentile=0.063 ms, 0.0996632 calls per parent call
03:37:49.548: ┃ ┗gs_flush: min=0.009 ms, median=0.075 ms, max=309.669 ms, 99th percentile=0.137 ms
03:37:49.548: ┗render_displays: min=0 ms, median=0.001 ms, max=17.17 ms, 99th percentile=0.121 ms
03:37:49.548: OBSBasic::ResetOutputs: min=0.308 ms, median=0.34 ms, max=0.517 ms, 99th percentile=0.517 ms
03:37:49.548: =================================================
03:37:49.548: == Profiler Time Between Calls ==================
03:37:49.548: obs_hotkey_thread(25 ms): min=24.537 ms, median=25.024 ms, max=341.488 ms, 99.7412% within ±2% of 25 ms (0% lower, 0.258758% higher)
03:37:49.548: obs_graphics_thread(16.6667 ms): min=0.979 ms, median=16.667 ms, max=321.705 ms, 99.9857% within ±2% of 16.667 ms (0.0063138% lower, 0.00797533% higher)

Does not say much. Especially when alt-tabbing tends to lag OBS. Anyway, it seems render_main_texture() and gs_flush lag() functions lag sometimes. Tough, it does not mean they lag during exactly the same time as stuttering occur.
 
I have identicle problem when using stream recorder to test qaulity for twitch ,first noticed last year wheni had my intel system , i7 3770k , 32 gig ram gtx 1060 3 gigs , now i have amd ryzen 5 2600x 16 gig ram rtx 2060 super and i have still the identicle problem as trhe OP ive tried every driver under the sun and every version of windows i been though every single so called fix and still the same

thanks in advance if anyone has a clue as to why
 
I have identicle problem when using stream recorder to test qaulity for twitch ,first noticed last year wheni had my intel system , i7 3770k , 32 gig ram gtx 1060 3 gigs , now i have amd ryzen 5 2600x 16 gig ram rtx 2060 super and i have still the identicle problem as trhe OP ive tried every driver under the sun and every version of windows i been though every single so called fix and still the same

thanks in advance if anyone has a clue as to why
what I've been able to gather it's either something to do with the way dx12 handles frames or maybe an issue with mismatched hz on monitors (running slightly under 60hz, like 59.999 but i could be wrong. I've resorted to using a capture card fed into the computer it's capturing just to be able to stream smoothly. Literally the dumbest option became the only option. I hope someone smarter than me figures out a better solution that actually works, when i get a 3070 imma be pissed if this is still an issue
 
hope they can fix it whatever it is causing it , as i dont get that problem when i use mirillis action software so its nothing to do with hardware
 
Yep. Honestly, the frames lost to encoding lag are very minimal. It's consistently ~50 frames per recording, which shouldn't show up too badly in some of your longer recordings. You've already disabled psychovisual tuning, so that takes care of the major recommendation to eliminate cuda processing, but you might want to try either a higher CQP value or a different recording destination.

That said though, that shouldn't be the major issue. Are you using VLC to play back the videos, or something else like the standard windows player? If you're using the default, then that has problems playing back 30+ fps videos, and should not be used as reference.

The problem is it does occasionally make the framerate noticably choppy a few times every 10 minutes or so. I do use VLC to play back my videos, but I know it's not the video player because the choppiness translates to after I upload it the finished videos to Youtube.
 
Back
Top