obsproject / obsproject/obs-studio

Preview Stutter that appears in Streams/Recordings

Open
#4,191 184 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

platform/windows
Dominant language
C
Stars
76.4k
Forks
10.2k
Avg merge
4d 23h
Merged PRs (30d)
12

Description

Platform

Operating system and version: Windows 10 20H2
OBS Studio version: 26.1.1

Expected Behavior

Display a non-stuttering image if the source is not stuttering and resources are not constrained.

Current Behavior

After an indeterminate amount of time, the preview window will begin stuttering, irrespective of capture method (Window, Display, Game). This stuttering will make its way into the stream and/or recording.

Steps to Reproduce

  1. Open OBS
  2. Create Game/Window/Display capture, depending on source
  3. Watch the preview for stutter (usually about 5-10 minutes before it shows up in my case)
  4. Stutter appears

Recording of Behavior
This recording was made with a second instance of OBS. I thought there was some correlation by running two instances that the stutter went away, but this instance also experienced stutter, albeit, far later on.
Log from Stuttering OBS Instance shown
Timestamps: At the beginning and again at 2:20.

Recording of Stutter Behavior
Log from Recording

Another Recording from a completely different machine at another location.
2021-02-04 19-56-16.txt

Laptop Recording with the same exact issue.
2021-02-04 21-13-15.txt

Additional information

In my video, I am using the following link: TestUFO.
I have also made an imitation of this pattern as an MP4 for use in a video player supporting D3D11 (Potplayer).

The stuttering will eventually cease and reappear after different periods of time. However, if you change the profile in-use during the stuttering, it goes away...and eventually reappears. The behavior shows up significantly faster when using I444 color format; NV12 still does it, but it takes MUCH longer to appear..I waited probably about 15-20 minutes on NV12 vs about 5-10 with I444. This happens in games and really anything being captured, I chose the test pattern because it makes it easy to see.

I have used nSight Graphics/Systems and GPUView, but there does not seem to be a correlation with anything else going on. This has been tested on two different systems thoroughly. On one of the test systems, I did a fresh install of Windows, installed only necessary drivers/chipset drivers, OBS, Steam, and one game.

I believe this issue is related to the following forum topics:
https://obsproject.com/forum/threads/persistent-stutter-issue-tried-everything.137045/
https://obsproject.com/forum/threads/stutter-in-stream-preview-no-rendering-encoding-lag.114986/
https://obsproject.com/forum/threads/random-stuttering-in-preview-which-goes-into-recorded-videos.77744/
https://obsproject.com/forum/threads/obs-preview-stutters-while-not-recording.106424/

I am willing to be a test dummy for this, just let me know what you need from me.

Additional Examples

Vermintide II Gameplay Example

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Start by reviewing the attached OBS logs and reproducing on Windows 10 with OBS 26.1.1, using the listed Game, Window, or Display capture steps and waiting for the stutter to appear. Done means the preview and resulting stream or recording remain smooth without the issue recurring.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc, desktop, performance
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.