Repository navigation
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Negotiation and planning contracts/api/v2/openapi.json, internal/playback/protocol_v3.go, internal/playback/plan_v3.go, internal/playback/dolby_vision_plan_v3.go, internal/playback/recipecard.go, internal/streamtoken/* |
New fields, feature identifiers, transformations, recipe versions, and token claims carry separate-audio HLS and DV7-to-DV8.1 settings. Planning selects eligible recipes and preserves those settings during reconstruction. |
Transcode runtime and media output internal/playback/separate_audio_hls.go, internal/playback/transcode.go, internal/playback/dolby_vision_*.go, internal/playback/transformations_v3.go, Dockerfile, go.mod, licenses/dovi_tool-MIT.txt |
The runtime creates separate audio and video HLS renditions, aligns timestamps, converts DV7 fragments, probes the toolchain, and applies transcode policy. The image installs dovi_tool 2.3.4 with checksum verification and its license. |
Segment lifecycle internal/playback/separate_audio_segments.go, internal/playback/segment_pruner.go, internal/playback/throttle.go, internal/playback/transcode_manager.go, internal/playback/transcode.go |
Audio segments use independent generation-aware demand, acknowledgement, recovery, throttling, timeline, and retention state. Restart and stale-session checks guard recovery and pruning. |
API, worker, and proxy integration internal/api/handlers/*, internal/transcodenode/*, internal/proxy/* |
Handlers and workers pass recipe fields, apply transcode policy, advertise capabilities, select compatible relays, serve audio media segments, and report acknowledgements by segment name and generation. |
Validation and documentation internal/playback/*_test.go, internal/api/handlers/*_test.go, internal/transcodenode/*_test.go, docs/*, contracts/api/v2/breaking-approvals.json |
Unit, integration, real-tool, recovery, timestamp, routing, and capability tests cover the new paths. Protocol and API documentation describe negotiation, recipe versions, recovery, and conversion behavior. |
Priority:
Estimated code review effort: 5 (Critical) | ~120 minutes
Possibly related issues
- Silo-Server/siloserver.org#301: Requests documentation for the separate-audio HLS layout and Profile 7-to-8.1 conversion added by this change.
Possibly related PRs
- Silo-Server/silo-server#3033: Defines negotiated HLS subtitle renditions; this change disables subtitle renditions for separate-audio recipes.
- Silo-Server/silo-server#3026: Defines MPEG-TS copy-remux packaging used by the separate-audio and Dolby Vision recipe versions.
Suggested labels: api-v2, impact: usability
Suggested reviewers: quick104
Merge Risk: 
Minimal · up to 27d27
-
The contract changes add only optional properties, and the updated approval file does not introduce a current contract-check risk.
Architecture risk: 
Low · up to 27d27
-
The change affects 6 systems.
Changed systems:
internal,docs,contracts,Dockerfile,go.mod,licensesArchitecture concerns
No architecture-level concerns identified.Review details
-
Systems and components
- observed — internal (service) was modified; 55 changed files map to changed impact.
- observed — docs (service) was modified; 4 changed files map to changed impact.
- observed — contracts (api) was modified; 2 changed files map to changed impact.
- observed — Dockerfile (service) was modified; 1 changed file maps to changed impact.
Before / after behavior
- observed — Modified behavior in go.mod: Added
github.com/Eyevinn/mp4ff v0.60.0to the direct dependency requirements. - observed — Modified behavior in internal/api/handlers/playback_native_hls_test.go: Adds a routing test with worker and proxy servers and a worker-only remux / proxy-only egress policy. It asserts that the older proxy is selected without separate-audio transformation, excluded when that transformation is added, and that a replacement proxy advertising native HLS rendition relay support is selected.
- observed — Modified behavior in internal/api/handlers/playback_service.go: Capabilities now use the handler’s native feature list, which excludes
playback.FeatureServerDV7ToDV81V3when transcoding is disabled. - observed — Modified behavior in internal/api/handlers/playback_service.go:
serverFeaturesForRequestV3now has aPlaybackHandlerreceiver and uses its handler-specific native feature list for native API v2 requests; the non-native API v1 path remains unchanged.
-
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 24.20% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 157 functions across 53 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
The Evidence section describes checks but does not include their artifacts. Before marking this ready, please add sanitized before-and-after capability/playlist excerpts for the new HLS layouts and generated-media output showing the Dolby Vision profile conversion, with the tested commit. No web screenshots are needed for these backend changes. |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Requested evidence for 2bb44cd. Capabilities and playlists use synthetic fixtures; conversion uses the real dovi_tool. Capability, playlist and conversion excerpts |
|
The
The other listed cases do not need re-checking for this diff: #1177 C1/C2 retain the tested defaults and unchanged capacity enforcement; #1246 C1/C2 use the unchanged Jellyfin compatibility routes without native recipe opt-in. #1246 C3's referenced public compatibility guide is not changed here. Suggested line: Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
There was a problem hiding this comment.
Actionable comments posted: 3

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Organization UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
91cd3e1a-ec4c-4d5d-9c5f-e257dcf9ec13
Files ignored due to path filters: 1-
go.sumis excluded by!**/*.sum
Files selected for processing: 56-
Dockerfilecontracts/api/v2/openapi.jsondocs/architecture/playback-protocol-v3.mddocs/design/schemas/playback-v3/v3/fixtures/valid/hls-subtitle-rendition-decision_response.jsondocs/design/schemas/playback-v3/v3/fixtures/valid/learned-limit-decision_response.jsondocs/playback-api.mdgo.modinternal/api/handlers/playback.gointernal/api/handlers/playback_native_hls_test.gointernal/api/handlers/playback_native_session_recipe_test.gointernal/api/handlers/playback_service.gointernal/api/handlers/playback_service_test.gointernal/api/handlers/playback_test.gointernal/api/handlers/playback_transcode_rehome.gointernal/api/handlers/playback_v3.gointernal/jellycompat/dv_strip_test.gointernal/playback/dolby_vision_fragment.gointernal/playback/dolby_vision_fragment_real_test.gointernal/playback/dolby_vision_fragment_test.gointernal/playback/dolby_vision_hls.gointernal/playback/dolby_vision_plan_v3.gointernal/playback/dolby_vision_probe.gointernal/playback/native_hls_codec.gointernal/playback/native_hls_codec_test.gointernal/playback/native_hls_v3.gointernal/playback/native_hls_v3_test.gointernal/playback/plan_v3.gointernal/playback/protocol_v3.gointernal/playback/recipecard.gointernal/playback/restart_locked_test.gointernal/playback/segment_pruner.gointernal/playback/separate_audio_aac_real_test.gointernal/playback/separate_audio_hls.gointernal/playback/separate_audio_hls_real_test.gointernal/playback/separate_audio_hls_test.gointernal/playback/separate_audio_recovery_real_test.gointernal/playback/separate_audio_segments.gointernal/playback/separate_audio_segments_test.gointernal/playback/separate_audio_timestamp_test.gointernal/playback/testdata/protocol_v3/hls-subtitle-rendition-decision_response.jsoninternal/playback/testdata/protocol_v3/learned-limit-decision_response.jsoninternal/playback/throttle.gointernal/playback/transcode.gointernal/playback/transcode_manager.gointernal/playback/transcode_manager_test.gointernal/playback/transcode_manifest_test.gointernal/playback/transformations_v3.gointernal/playback/transformations_v3_test.gointernal/proxy/capability_snapshot_test.gointernal/proxy/server.gointernal/streamtoken/token.gointernal/streamtoken/token_test.gointernal/transcodenode/restart_locked_test.gointernal/transcodenode/separate_audio_hls_test.gointernal/transcodenode/server.golicenses/dovi_tool-MIT.txt
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
-
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
The capability excerpts are missing. This PR changes the Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
Updated the requested capability response excerpts in the PR description. The disabled case omits the DV conversion feature. Also narrowed |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
There was a problem hiding this comment.
🧹 Nitpick comments: 1
internal/playback/plan_v3.go: 1
767-767:Trivial · Maintainability & Code Quality · Low value Optionally use the recipe-version constant.
The planner currently emits
"1", which matchesTransformationHLSSeparateAudioRecipeVersionV3. This is future-proofing only. No current mismatch or project rule requires the change.♻️ Suggested fix
- plan.Transformations = append(plan.Transformations, TransformationV3{Name: packaging, Executor: ExecutorServerV3, RecipeVersion: "1"}) + plan.Transformations = append(plan.Transformations, TransformationV3{Name: packaging, Executor: ExecutorServerV3, RecipeVersion: TransformationHLSSeparateAudioRecipeVersionV3})

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Organization UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
5a70257d-b1ce-421c-a738-ee437e05da80
Files ignored due to path filters: 1-
go.sumis excluded by!**/*.sum
Files selected for processing: 26-
Dockerfilecontracts/api/v2/openapi.jsondocs/architecture/playback-protocol-v3.mddocs/design/schemas/playback-v3/v3/fixtures/valid/hls-subtitle-rendition-decision_response.jsondocs/design/schemas/playback-v3/v3/fixtures/valid/learned-limit-decision_response.jsondocs/playback-api.mdinternal/api/handlers/playback.gointernal/api/handlers/playback_native_session_recipe_test.gointernal/api/handlers/playback_transcode_rehome.gointernal/api/handlers/playback_v3.gointernal/api/handlers/playback_v3_test.gointernal/api/handlers/playback_v3_union_test.gointernal/playback/native_hls_v3.gointernal/playback/native_hls_v3_test.gointernal/playback/plan_v3.gointernal/playback/protocol_v3.gointernal/playback/recipecard.gointernal/playback/subtitle_rendition.gointernal/playback/subtitle_rendition_test.gointernal/playback/testdata/protocol_v3/hls-subtitle-rendition-decision_response.jsoninternal/playback/testdata/protocol_v3/learned-limit-decision_response.jsoninternal/playback/transcode.gointernal/playback/transcode_manifest_test.gointernal/playback/transformations_v3.gointernal/streamtoken/token.gointernal/transcodenode/server.go
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
-
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Tested a local integration of this PR and #3036 ( A full-quality DV8 source played through the HDR10 recipe with HEVC video and E-AC-3 audio. Native Video diagnostics reported HDR10; playback continued beyond two minutes. Pause and resume passed. The separate HLS video/audio renditions also passed an independent FFprobe check (3840×2160 HEVC/PQ and six-channel E-AC-3). Physical display HDR mode was not exposed by the device API. This does not qualify DV7 conversion or C3 failover; those remain separate checks. |
|
Real-source follow-up on local integration
These are first-segment and short playback checks. Physical Dolby Vision output, full-title playback and C3 failover remain unqualified. |
Problem
Related issue: N/A
Validation tasks: changes #1177 C3
Some native players need separate HLS audio to play HEVC reliably. Dolby Vision profile 7 also needs conversion for players that accept profile 8.1.
Approach
Add opt-in separate audio and profile 7 to 8.1 conversion with dovi_tool. Conversion discards the enhancement layer and requires current transcoding permission. Preserve the selected recipe through seek and recovery on integrated and remote workers.
Ordinary MPEG-TS copy uses the existing
hls_copy_mpegts_v1path. Separate audio keeps subtitle sidecars when copy-rendition negotiation would otherwise create a nested multivariant playlist.Validation
Evidence
Earlier conversion and separate-audio captures, from 2bb44cd. Current negotiation checks are listed above; these captures are not current-head device qualification.
Actual generated-media excerpts from 2bb44cd (real dovi_tool 2.3.4; selected ffprobe fields):
{"before":{"dv_profile":7,"el_present_flag":1,"bl_present_flag":1,"dv_bl_signal_compatibility_id":6},"after":{"dv_profile":8,"el_present_flag":0,"bl_present_flag":1,"dv_bl_signal_compatibility_id":1},"base_nal_bytes_unchanged":true}The synthetic 256×256 sample used a public FFmpeg FATE RPU and signaled an enhancement layer without containing enhancement-layer pictures. This establishes sample conversion, not full dual-layer title or physical HDR output validation.
Manual update: Silo-Server/siloserver.org#301.
Checklist
AI Disclosure
Note
Add separate-audio HLS and server DV7-to-DV8.1 conversion to playback
prepareLocalTransportV3/prepareRemoteTransportV3in playback_v3.go (DV plans rejected when transcoding disabled, native recipe fields propagated) andhandleSegment/handleSegmentDownloadedin server.go (audio segments served/recovered/acknowledged by media name instead of video ordinal). Subtitle renditions are disabled for separate-audio recipes in subtitle_rendition.goMacroscope summarized 27d27f7.