Replay length varies erratically

JSH

New Member
Trying to do a simple 7 second replay with current version of OBS. Using Instant-Replay.lua and Advanced Scene Switcher macro. Everything works well EXCEPT the length varies from 16 seconds to 1 second. I have Settings > Output > Advanced > Streaming > Encoder Settings set to CBR, 5000 Kbps without Use Custom Buffer Size (however I am not streaming with OBS). Replay Buffer is enabled and Max Replay Time is ”7 s”. Any suggestions?
 

Suslik V

Active Member
Log file from the OBS session where issue happens may help to developers to resolve the issue.
Also, the size of the replay file may vary because of keframes intervals.

Previously similar issue was reported for Linux and Mac:
 

Pulsar

New Member
I am having this same issue. I am running OBS 31.0.0. My previous version I believe was OBS 29 where I ran into an issue with an error where it indicated OBS did not shut down properly. Tried all the workarounds on the net but couldn't resolve it. My replay worked fine on OBS29. No issues what so ever
I then uninstalled OBS because of that issue and reinstalled it with the newest version OBS31.0.0. However, I suffer the same issue as the OP. I set the replay at 7secs however, when I replay it, it varies from a few millisecs to 16 seconds in length. I am not sure why. I did take look at the logs but not sure how to decipher what the issue may be. I have attached the logs here.

Running Windows 11 Home 23H2

Any help would be appreciated.
 

Attachments

  • 2024-12-20 08-01-02.txt
    315.7 KB · Views: 3

JSH

New Member
Here is a log: https://obsproject.com/logs/yUoCMckfuTfMOTk4
It contains about 6 replays. Although the replay buffer was set to 8 seconds, the problem is the replays vary from about 8 seconds to 1 second. Please let me know if there is something I am doing wrong or if it is a bug? If it is a bug, do you think I should try to go back and use OBS version 29 that Pulsar (previous poster to this thread) said worked?
 

Suslik V

Active Member
Code:
11:38:10.071:     fps:               30/1
...
For key frames interval 250 frames (default setting for most popular encoders in OBS) - it results in about 8 seconds distance between keyframes (depending on content). OBS Replay Buffer simply dumps to the disk already encoded data between (at least) two keyframes (because H.264 video encoding/decoding should start from special frame named "keyframe"). So, in your case, it is normal to have such deviation in length of the saved data. You may try to lower key frames interval in attempt to decrease replay length deviations. Sometimes Output Mode: Advanced allows to set Keyframe Interval either in seconds or in frames for the selected encoder.

Also, the next errors is likely a USB device connection issues (wiring, bandwidth etc):
Code:
11:38:13.738: warning: Found EOI before any SOF, ignoring
11:38:13.738: fatal:   No JPEG data found in image
11:38:13.738: Video Capture Device: Error decoding video
it is better to resolve it before making recordings.
 
Top