obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
58.91k stars 7.84k forks source link

Instant-replay.lua media source not playing properly when using Rescale Output #10457

Open jenks6797 opened 5 months ago

jenks6797 commented 5 months ago

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

30.1.1

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/dRruxzOfdQZKNpj5

OBS Studio Crash Log URL

No response

Expected Behavior

I'm using the instant-replay.lua script to save a replay to a media source. The media source is set to 100% speed. Expected behavior is the video file plays normally, at 100% speed.

Current Behavior

Video file plays at very slow speed (feels like 50%). Even if I change the speed to 200%, nothing changes. Note: The recorded file plays normally in Windows. It's just the media source inside OBS that's not playing correctly.

Steps to Reproduce

  1. Set up instant-replay.lua, create media source for replay, etc.
  2. In Output > Recording settings, turn on Rescale Output. Rescale using Bicubic to 2560x1440.
  3. Save a replay using the Instant Replay hotkey.
  4. Video won't play correctly. Try changing the Speed %, it should have no effect.
  5. Turn off Rescale Output and try again. Everything should work as expected again.

Anything else we should know?

I'm recording using AV1.

derrod commented 5 months ago

Hardware decoding isn't enabled, and AV1 CPU decoding may be too slow. However, for AV1 specifically hardware decoding is broken, see #10213.

jenks6797 commented 5 months ago

Hardware decoding isn't enabled, and AV1 CPU decoding may be too slow. However, for AV1 specifically hardware decoding is broken, see #10213.

Do you think the upscaled video specifically would be causing this issue such that hardware decoding needs to be enabled? It works fine without hardware decoding enabled as long as the recording isn't being upscaled.