Skip to content

rust: Port the encoder audio start alignment in obs-encoder.c to obs-output #2320

Closed

Description

@rdoupe

Rust port, round 8 unit 3: the encoder audio start alignment and the setter gates in libobs/obs-encoder.c.h, moved to obs-output::encoder_audio_start.

Scope

Rust takes over these decisions:

  • buffer_audio: wait, truncate, take the video start, or start unpaired;
  • calc_offset_size, push_back_audio and start_from_buffer;
  • the first-packet reset and send condition of receive_audio, and the pts step of send_audio_data;
  • the group start gate and pts step in receive_video;
  • the gates of obs_encoder_set_gpu_scale_type and obs_encoder_set_frame_rate_divisor.

C keeps the deques, refs, the group mutex, do_encode, the pause checks, the group reconfigure, the logs, and both divides by the sample rate. C passes those results in.

Plan

The standard six commits:

  1. move;
  2. characterization test;
  3. Tier 1 RED;
  4. GREEN in a libobs.ported-* group;
  5. Tier 3 parity;
  6. docs.

Metadata

Metadata

Assignees

Labels

ready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions