Skip to content

feat: optional stereo->5.1 surround upmix - #2

Merged
strepto42 merged 1 commit into
mainfrom
feat/surround-upmix
Jun 8, 2026
Merged

feat: optional stereo->5.1 surround upmix#2
strepto42 merged 1 commit into
mainfrom
feat/surround-upmix

Conversation

@strepto42

Copy link
Copy Markdown
Owner

Adds config-gated upmix=surround using FFmpeg's surround filter to upmix stereo to 5.1 (free DTS Neo:PC-style alternative). Multichannel input still downmixes. New unit test + docs. Default off.

Config-gated upmix (upmix=off|surround, or --upmix). For <=2ch input with
upmix=surround, SpdifEncoder runs an FFmpeg `surround` libavfilter graph
(abuffer -> surround -> aformat -> abuffersink), buffers output in an AVAudioFifo,
and primes with silence to cover FFT latency so the realtime consumer never
starves. Multichannel input still downmixes via swr. Links avfilter.

A free, license-clean DTS Neo:PC / Pro Logic II-style matrix upmix alternative.

- unit test: stereo + upmix=surround yields AC3/IEC61937 bursts.
- config key `upmix`; README/CLAUDE/default.conf documented.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@strepto42
strepto42 merged commit c8caa59 into main Jun 8, 2026
1 check passed
@strepto42
strepto42 deleted the feat/surround-upmix branch June 8, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant