5.1 Surround Processor

Turns a 5.1 mix into a two-track Lt/Rt that any Dolby Pro Logic decoder or amplifier plays back as surround, and that still sounds right in plain stereo. It all runs in your browser: the audio never leaves your computer.

1Your 5.1 mix

2Check the channels

Make sure each channel is assigned to the right speaker. A wrong layout is the commonest cause of a bad Lt/Rt: dialogue should be on C, and the LFE is the one that is nearly all deep bass.

0:00:00

3Settings

Into both sides, so the decoder puts it back in the centre speaker.
0 dB keeps them at the level of the mix.
Low-passed at 120 Hz without any phase shift, so it stays in time with the bass in the main channels, and added to both sides; the decoder's bass management sends it to the subwoofer. Dolby's own stereo fold-down leaves it out; most films lose their weight without it.
Bass has no direction you can hear. Kept in step, it survives mono and stereo playback (encoded with the rest, it nearly cancels out) and cannot drag a decoder's steering, and the dialogue with it, to the rear.
Same sample rate as the mix. The whole file is turned down only if it would clip, so its loudest peak sits at −1 dBFS; nothing else changes.

4Listen and look

The scope shows where a Pro Logic II decoder will put the sound. The labels mark where each channel of your mix lands; during the preview, the moving trace shows the encoded track itself. Dialogue should sit at C, and ambience and effects should reach towards LS and RS.

The preview starts at the position chosen in step 2 and plays the encoded Lt/Rt as stereo. To hear the surround, play the finished file through a Pro Logic decoder.

5Make the file

Sending it on for streaming, broadcast or disc? See Delivering it below.

Delivering it

The surround in an Lt/Rt file is carried by small differences of level and phase between the two tracks. Anything that changes those differences moves sounds or loses the surround, so the file has to reach the listener's decoder intact.

Formats

Mark Dolby Digital files as Dolby Surround

A Dolby Digital stereo file can carry a flag saying it is Dolby Surround encoded, and many AV amplifiers then switch to Pro Logic decoding by themselves. With FFmpeg:

ffmpeg -i film_LtRt.wav -c:a ac3 -b:a 256k -dsur_mode on film_LtRt.ac3

For Dolby Digital Plus, use -c:a eac3 and an .ec3 file name.

After it is made

What stereo and mono listeners hear

In stereo it plays normally, though surround sounds come out wide and slightly diffuse rather than from one point. In mono, surround sounds are about 8 dB quieter than the front; an ordinary stereo fold-down loses about 3 dB. Every matrix encode works this way. If the file will mostly be heard in mono, choose Plain stereo (Lo/Ro) in step 3 instead.

To hear it in surround, set the AV amplifier to Pro Logic II Movie, or on newer models to its upmixer (Dolby Surround or DTS Neural:X).

How it works

A matrix decoder works out where each sound belongs from two things: how loud it is in each track, and whether the two tracks are in step or opposed. Centre content is equal and in step; surround content is opposed. This encoder places every channel exactly where Pro Logic II expects it: left surround is 0.87 in Lt and 0.49 in Rt in opposite phase, and the mirror image for right surround, so the decoder can tell the two surrounds apart.

The surrounds are also turned 90° in phase against the front channels, which keeps them from cancelling against the front when they are mixed in. Here the turn is exactly 90° at every frequency (a linear-phase filter of 8,191 points at 48 kHz, applied by FFT). The front channels are not filtered at all, only delayed to line up, so in stereo they are exactly as mixed.

Below 100 Hz the surrounds' bass goes to both sides in step rather than in opposite phase. Bass has no direction you can hear, and in opposite phase it would nearly cancel on mono and stereo systems and could pull a decoder's steering, and the dialogue with it, towards the rear. Dolby's own encoder simply drops it. The crossover keeps the total level within a sixth of a decibel. The LFE goes through a 120 Hz low-pass with no phase shift, so it stays in time with the bass of the main channels. All the processing is done in floating point, and the file is turned down by a single fixed amount only if it would otherwise clip.