Skip to content

[bug] Multichannel-to-stereo transcodes are quieter than comparable apps #746

Closed

Description

@Quick104

What happened

Users report that the same files sound quieter in Silo than in Plex or Jellyfin when Silo converts surround audio to stereo.

The server currently asks FFmpeg for the target channel count with -ac 2 but does not apply a downmix gain. A local 5.1 center-channel fixture measured about -9.7 LUFS after Silo's current stereo conversion. Applying the +6 dB downmix boost used by Jellyfin produced about -3.7 LUFS.

This is specific to server-owned multichannel-to-stereo conversion. Direct play, copied audio, stereo-to-stereo conversion, and surround output should not change.

Reproduction

  1. Create or select a 5.1 source with center-channel dialogue.
  2. Encode it through Silo's current AAC stereo arguments.
  3. Compare the result with the same FFmpeg conversion using a post-downmix +6 dB gain.
  4. The current output is about 6 dB quieter on material that does not engage the limiter.

No server error is expected; this is an audio-recipe difference.

Expected behavior

When the selected source track has more than two channels and Silo encodes exactly two output channels, Silo should restore up to 6 dB after downmixing while preventing clipping.

Acceptance criteria:

  • Downmix to stereo before applying gain or limiting.
  • Use a peak-safe limiter with enough headroom for AAC overshoot.
  • Do not boost stereo or mono sources, surround outputs, direct play, or copied audio.
  • Freeze the selected source channel count through local, remote-node, token reconstruction, Jellyfin compatibility, and prepared-download paths.
  • Version the byte-affecting audio recipe so mixed-version nodes cannot silently produce the old output.
  • Cover positive, negative, clipping, and reconstruction cases with tests.

Related: #579, which tracks output-channel negotiation and is not fixed by this change.

Environment

Base commit: 20ae82ae05edcfef151a02738e323cf1a97034ef

Local FFmpeg fixture; the original reports came from Silo users comparing the same files across apps.

AI use

  • Tool: T3 Code (Codex harness)
  • Model: gpt-5.6-sol
  • Involvement: AI-assisted; measurements and source paths were checked against the repository and local FFmpeg output.

Activity

  1. added
    bug
    on Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions