You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Playback: stop sending the sink's passthrough channel count as delivery max_channels #467
Android TV re-encodes surround audio on stereo outputs even though Media3 can decode and downmix it on the device. For example, a 1080p H.264 file with 5.1 E-AC-3 on a TV with stereo output gets a server-side AAC stereo conversion instead of direct play. Before a pending silo-server fix, it got a full video transcode, or transcoding_disabled when transcoding was off.
The cause is the value the client sends as max_channels. PlaybackCapabilityDetector sets maxChannels = passthrough?.maxChannels on the original_http, progressive, and hls deliveries. That number comes from AudioCapabilityManager.mapCapabilities: the largest encoded channel count the sink accepts for passthrough, never below 2. A stereo TV therefore reports 2 for every delivery, including routes where Media3 decodes the track to PCM.
Contract
silo-server now documents DeliveryCapabilityV3.max_channels as a limit on the channel count of the audio stream a delivery class carries, not the output device's channel count. A client that decodes and downmixes surround itself should omit it. Per-sink passthrough limits are already reported exactly in output.audio_passthrough.entries, and the server uses those entries to decide passthrough eligibility. See docs/architecture/playback-protocol-v3.md (delivery capability table).
silo-apple sends 8 and needs no change.
Proposed change
Stop sending the passthrough sink's channel count as the delivery max_channels.
Omit the field when Media3 decodes and downmixes, or send a limit derived from the audio decoder if a delivery really can't take more channels.
Keep reporting passthrough layouts through output.audio_passthrough.
Expected result
With the server fix and this change, a 5.1 E-AC-3 file on a stereo Android TV output plays directly over original_http. With only the server fix, it plays as an HLS remux with the video copied and the audio converted to stereo AAC.
Closing: the premise is wrong. Silo-Server/silo-server#579 shows Android TV failing at AudioTrack init when given decoded 5.1 audio on a stereo output, so sending the output's channel count as the delivery max_channels protects devices that can't downmix. Silo-Server/silo-server#1938 now handles that ceiling on the server by converting only the audio and keeping the video copy.
Activity
tomislav commentedon Oct 4, 2026
Closing: the premise is wrong. Silo-Server/silo-server#579 shows Android TV failing at AudioTrack init when given decoded 5.1 audio on a stereo output, so sending the output's channel count as the delivery max_channels protects devices that can't downmix. Silo-Server/silo-server#1938 now handles that ceiling on the server by converting only the audio and keeping the video copy.