-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ai/live: Add a minimum segment duration for new WHIP. #3451
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3451 +/- ##
===================================================
+ Coverage 30.36565% 30.39711% +0.03146%
===================================================
Files 151 151
Lines 44524 44547 +23
===================================================
+ Hits 13520 13541 +21
- Misses 30214 30216 +2
Partials 790 790
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. One question, what should we set as min segment duration in our infra?
@leszko The default in this PR is 1 second, I think that is fine to leave as-is (so, no infra changes needed). We send keyframe requests every 2 seconds so our actual segment duration will be closer to 2 seconds. This is mostly meant to mitigate potential issues where multiple segments are emitted in a bursty fashion, eg frames buffered then blasted out within a few milliseconds. This causes us to have multiple (>3) segments in-flight, which the slow orchestrator checker doesn't like. I have also tested making the min segment duration longer (eg, 10 seconds) which means we coalesce multiple keyframes into a single segment ... I don't think that is necessary right now, but we have that option if we need it later on. (things are still realtime since we don't buffer segments) |
Coalesces the rapid fire keyframes that we see sometimes