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
rust: Port the output encoder slot gates in obs-output.c to obs-output #2467
Rust port, round 9 unit 2: the output encoder slots and setter gates in libobs/obs-output.c.h, moved to obs-output.
Scope
Rust takes over these decisions:
get_first_audio_encoder_index / get_first_video_encoder_index: the first occupied slot, from an occupancy mask C passes;
obs_output_audio: the raw output's own audio, or the first audio encoder's;
obs_output_set_mixer / obs_output_set_mixers: the encoded, index and active gates;
obs_output_remove_encoder_internal / obs_output_remove_encoder: which slots hold the encoder (by type), and the active gate;
obs_output_set_video_encoder2 / obs_output_set_audio_encoder: the flag and type gates, the active refusal, the index rule, the same-encoder shortcut, whether a caption track is created, and the preferred-size step for index 0;
the index bounds of obs_output_get_video_encoder2, obs_output_get_video_encoder and obs_output_get_audio_encoder;
obs_output_set_service: the service gate;
obs_output_set_preferred_size2: the video flag, index and active gates, the raw size write, and the encoder step.
C keeps the log_flag_* checks (in the same order), active() loaded where it is today, every encoder ref and release, add and remove output, the caption track create and destroy, obs_encoder_set_scaled_size, obs_encoder_audio, the service pointer swap and the logs.
Activity
rdoupe commentedon Oct 26, 2026
Claiming: #2467 (round 9 unit 2, output encoder slot gates).
obs-output: Port the output encoder slot rules and setter gates (obs-…