You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OBS does not de-initialize encoders on RTMP stream start fail #10651
If the stream output fails to start, allocated encoders should be de-allocated if they are not being used.
Current Behavior
The encoders sit initialized but not started, as obs_output_begin_data_capture() was never called. In the case of NVENC, this results in an NVENC session lingering around taking up a slot until OBS is shut down or a stream is successfully started.
nvidia-smi:
Encoder Stats
Active Sessions : 1
Average FPS : 0
Average Latency : 0
Steps to Reproduce
Load OBS
Configure an RTMP or WHIP stream with an invalid stream key/bearer token
Attempt to start stream, it should fail with the "unable to access channel" error message
Observe that the encoder was initialized but never freed.
Activity
tytan652 commentedon May 8, 2024
Is it RTMP-only or it concerns RTMP and WHIP or any protocol (or even any encoded output) ?
tt2468 commentedon May 8, 2024
I only validated this for RTMP and WHIP, though others are likely affected also. It seems as though the issue mainly stems from:
obs_output_signal_stop()with a fail code, and never truly starts