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.83k stars 7.84k forks source link

after the encoder has been initialized warnings when using stream encoder for recording #10955

Open exeldro opened 2 months ago

exeldro commented 2 months ago

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

30.2.0-rc1

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/IzjRZUMB8cqzbjpC

OBS Studio Crash Log URL

No response

Expected Behavior

No warnings in the log file and initialize the encoder once.

Current Behavior

These warning log lines are generated

10:00:34.328: encoder 'advanced_video_stream': Cannot apply a new video_t object after the encoder has been initialized 10:00:34.328: encoder 'advanced_video_stream': Cannot set the scaled resolution after the encoder has been initialized 10:00:34.328: encoder 'advanced_video_stream': Cannot enable GPU scaling after the encoder has been initialized`

Steps to Reproduce

  1. Have replay buffer and recording start when the stream starts image
  2. use the same encoder for recording and streaming image
  3. start streaming

Anything else we should know?

It looks like OBSBasic::StartStreaming calls AdvancedOutput::SetupOutputs twice, once via AdvancedOutput::SetupStreaming and once via AdvancedOutput::StartRecording

phillypro commented 3 weeks ago

hmmn...just bumped into this error myself .....stopped me right in my tracks