obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

"Skipped frames due to encoding lag" total frame counter does not increment when recording output scaling is enabled

Open nickcharlesyt opened this issue 1 year ago • 4 comments

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

30.2.2

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/Y78XoLaJwlVKTIT3

OBS Studio Crash Log URL

No response

Expected Behavior

Expected that when recording, the stats pane will show the current frames, as well as frames skipped, regardless of output options. Example, note the number 638 demonstrates OBS Studio is properly counting total recorded frames in the active recording when output scaling is disabled in the recording settings as shown here:

image

Output scaling setting in the recording options is set as follows when it works:

image

Current Behavior

Total frames in the skipped frames counter does not increment when recording. Unknown if it is still recording actual skipped frames or not. As shown here, there is an active recording, yet the frame counter reads "0 / 0 (0.0%)"

image

Output scaling setting in the recording options is set as follows when it does not work:

image

Steps to Reproduce

  1. Create a new profile or new installation of OBS
  2. In Output settings, enabled advanced options and select any option other than "disabled" in "Rescale Output" under Recording Settings
  3. Pick any non-canvas resolution (such as 1280x720 scaled resolution on a 1920x1080 canvas).
  4. Start a recording, note the total frames count (second number) in "Skipped frames due to encoding lag" will not reset and increment as expected. ...

Anything else we should know?

No response

nickcharlesyt avatar Aug 05 '24 06:08 nickcharlesyt

I was able to reproduce this issue on Mac OS Sonoma (14.6) with the same OBS version.

ArnavMehrotra avatar Aug 06 '24 19:08 ArnavMehrotra

With the settings provided there is a discrepancy between the total_frames count in the video object of the video thread vs the total_frames count in the video object of the thread which is updating the GUI. The total_frames gets incremented correctly in the video thread, but it's not getting reflected in the video object of the GUI thread so it outputs 0. With Rescaling disabled, the two threads have video objects with the same total_frames and the correct number of encoded frames is output.

I'll investigate further tomorrow.

ArnavMehrotra avatar Aug 07 '24 03:08 ArnavMehrotra

Hi @nickcharlesyt

can you please provide a issue replication video with all the replication steps, I would like to have a look into it

Sugam-Chand-M avatar Sep 02 '24 19:09 Sugam-Chand-M

Hi @nickcharlesyt

can you please provide a issue replication video with all the replication steps, I would like to have a look into it

Video demonstration here: https://www.youtube.com/watch?v=LEE9byN3I0o

First run through is with no output rescaling on recording, then I go into settings and enable output rescaling, start a new recording, and you can see no frame counter for encoding lag. This is a fresh profile and scene collection too, for the record.

nickcharlesyt avatar Sep 17 '24 15:09 nickcharlesyt