Repository navigation
feat: adapt bitrate and keyframes on loss instead of freezing - #43
Merged
Merged
Conversation
Use the per-preset bitrate table, step MediaCodec bitrate and IDR cadence from encoder input drops, and repeat SPS/PPS on the receiver so a shredded GOP stays live instead of frozen until the next keyframe.
kvm404
force-pushed
the
feat/degraded-network
branch
from
August 18, 2026 01:56
15bad62 to
ec6fa2f
Compare
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BitrateControllersteps bitrate down on encoder drops and requests faster IDRs.h264parse config-interval=-1; jitterbuffer stays 150ms./statuscan setrequest_keyframewhen RTP is stale.Why
v0.2 PR 7. Stay live on lossy Wi-Fi instead of freezing until the next GOP.
Testing
Evidence:
go test ./.../-race;JAVA_HOME=... ./gradlew testDebugUnitTest.Compatibility Impact
No Android
/statuspoll yet (PR 5 watchdog). Adaptation is drop-driven;noteReceiverAge/noteRequestKeyframeare hooks.Privacy/Security Impact
Notes
Draft. May conflict with #42 on
control/server.go— restack after that merges if needed. No 15 fps toggle (PR 9). No/telemetry.