Allow B-frames#47
Conversation
WalkthroughThis change removes the forced setting of the video encoder "bf" (B-frames) parameter to 0 in two locations: Changes
Sequence Diagram(s)Not applicable — this change involves removal of a configuration parameter with no observable control flow to diagram. Estimated code review effort: 1 (Low) Related issues: None provided Related PRs: None provided Suggested labels: encoder, cleanup Suggested reviewers: None provided Poem: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/moq-dock.cpp (1)
219-220: 🧹 Nitpick | 🔵 TrivialConsider surfacing jitter buffer sizing implications.
The PR description notes that using many B-frames may require a larger jitter buffer to perform comparably to non-B-frame streams. Since this file/segment doesn't touch buffer sizing, worth confirming elsewhere in the stack (e.g., MoQ output/dock buffer config) that jitter buffer size is either adaptive or exposed for users to tune when they opt into more aggressive B-frame settings.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/moq-dock.cpp` around lines 219 - 220, The MoQ inline-headers change in moq-dock.cpp only forces repeat_headers and does not address the stated B-frame jitter-buffer impact. Review the MoQ output/dock configuration path around the related buffer-sizing settings and make sure jitter buffer size is either adaptive to B-frame-heavy streams or exposed as a user-tunable option. Use the existing MoQ dock/output setup symbols near the repeat_headers handling to locate where the buffer config should be added or wired through.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@src/moq-dock.cpp`:
- Around line 219-220: The MoQ inline-headers change in moq-dock.cpp only forces
repeat_headers and does not address the stated B-frame jitter-buffer impact.
Review the MoQ output/dock configuration path around the related buffer-sizing
settings and make sure jitter buffer size is either adaptive to B-frame-heavy
streams or exposed as a user-tunable option. Use the existing MoQ dock/output
setup symbols near the repeat_headers handling to locate where the buffer config
should be added or wired through.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 49b62ddd-6c75-40b1-96d6-d90e4f8c8254
📒 Files selected for processing (2)
src/moq-dock.cppsrc/moq-service.cpp
💤 Files with no reviewable changes (1)
- src/moq-service.cpp
Removes the B-frame limitation. These were force-disabled before.
Tested in firefox, chromium and edge with both h264 and av1. All played fine with bframes, just needs a larger jitter buffer if using many of them.