Skip to content

[bug] Android TV sends stereo to a 5.1 receiver for TrueHD/DTS the sink can't bitstream #2010

Closed

Description

@Quick104

What happened

On an Android TV whose HDMI/eARC output passes AC-3 and E-AC-3 to an AV receiver but not TrueHD or DTS, a TrueHD 7.1 movie reaches the receiver as stereo. The Silo player HUD shows the track decoded to PCM by the bundled FFmpeg decoder. The receiver shows 2/0 (2.0). An E-AC-3 5.1 movie on the same setup passes through, and the receiver shows 3/2/.1.

The planner treats any codec the client can decode as directly playable (audioEligibilityV3, reason client_decode_supported). Android advertises TrueHD, DTS, and DTS-HD as decodable because it bundles FFmpeg. The TV's audio framework then mixes the decoded multichannel PCM down to stereo on its HDMI/eARC output, so the receiver gets 2.0. The v3 planner never targets a bitstream codec the sink accepts. Its only audio encode target is AAC, and AAC is also decoded to PCM on the device.

Plex on the same TV converts the track on the server to E-AC-3 or AC-3 5.1, and the receiver gets 5.1.

Steps to reproduce

  1. On a Silo dev deployment, take a Matroska file with a DTS 5.1 (or TrueHD 7.1) track the client cannot pass through.
  2. Send POST /api/v2/playback/start with an Android TV request whose audio_evidence is exact, whose client_features include layout_aware_passthrough, whose codecs_audio lists dts/truehd (FFmpeg decode), and whose audio_passthrough lists ac3/eac3 with 6-channel 5.1 entries but no dts/truehd.
  3. The plan is original_http, validated_original_playback, audio claim {"codec":"dts","passthrough":false,"reason":"client_decode_supported"}.
  4. On a device whose HDMI output mixes app PCM to stereo, the receiver gets 2.0.

Expected behavior

When the sink cannot take the source codec as a bitstream, the source has more than two channels, and the sink accepts E-AC-3 or AC-3 5.1, the server should prefer a video-copy remux that converts the audio to E-AC-3 5.1 (AC-3 5.1 when the sink lacks E-AC-3), as Plex does. When that conversion is unavailable or would change the picture, the current direct-play route should still apply.

Silo version / commit

main at 47a2998

Deployment

Local dev build

Clients affected

  • Web UI
  • Android
  • iOS/tvOS/macOS
  • Jellyfin-compat client (Infuse, Findroid, ...)
  • Other/not client-specific

Relevant logs

level=INFO msg="playback plan decided" component=playback outcome=plan decision_reason=validated_original_playback delivery=original_http play_method=direct requested_file_id=6 effective_file_id=6 dv_profile=0 dynamic_range=sdr quality_preference=original

[redacted: request ids, timestamps]

Technical notes

  • internal/playback/capabilities_v3.go audioEligibilityV3: the decode branch checks codec membership only.
  • internal/playback/plan_v3.go: remux and transcode routes encode AAC only; appendAudioArgs in transcode.go already supports eac3 and ac3 (used by Jellyfin compatibility).
  • Android cannot reliably tell whether its mixer carries multichannel PCM. A failed direct multichannel PCM probe does not prove a stereo mixer, so the rule should not depend on that probe.
  • Trade-off: a device whose mixer does carry multichannel PCM to a receiver would get lossy E-AC-3 5.1 instead of lossless PCM for codecs it cannot pass through. Plex makes the same trade.

AI harness

Claude Code (T3 Code)

AI tool(s)

Codex (cross-provider design review)

AI model(s)

claude-opus-5-5, gpt-6.1-sol

AI involvement

Fully AI-generated, human verified

Independent or adversarial review

Codex (gpt-6.1-sol) reviewed the proposed design before implementation.

Confirmations

  • I reproduced this myself on a real deployment
  • Any logs provided are raw apart from marked redactions and are not AI-summarized; if none were available, I said so above

Source: community report on Discord

Activity

  1. Quick104 commented on Oct 6, 2026

    @Quick104
    ContributorAuthor

    🤖 AI agent claim. Claude Code (claude-opus-5-5) is working on a fix for this issue on behalf of @Quick104, who is assigned.

    A pull request will link here when the fix is ready. If the work stops without a fix, the assignment and this comment are removed.

    Planning to work on this, or have context to add? Reply here and mention @Quick104.

  2. self-assigned this
    on Oct 6, 2026
  3. added
    bug
    on Oct 6, 2026
  4. added a commit that references this issue on Nov 5, 2026
    377d442
  5. added a commit that references this issue on Nov 19, 2026
    d203b9f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions