Skip to content

Use conservative byte-size estimation for fixed byte-sized segments#2666

Closed
Bolajiadesina wants to merge 1 commit intomifi:masterfrom
Bolajiadesina:feat/strict-byte-sized-segments-estimate
Closed

Use conservative byte-size estimation for fixed byte-sized segments#2666
Bolajiadesina wants to merge 1 commit intomifi:masterfrom
Bolajiadesina:feat/strict-byte-sized-segments-estimate

Conversation

@Bolajiadesina
Copy link
Contributor

Context

  • Related to #2639: “Create byte sized segments” sometimes produces segments larger than the specified max size.
  • This PR is a small step toward stricter size enforcement by using a more conservative duration estimation.

Effect

This is still an approximation, but:

  • We now aim for slightly smaller segments than the user’s limit, accounting for overhead.
  • This should significantly reduce cases where segments end up noticeably above the requested byte size.

It does not yet implement per‑frame back‑off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants