Skip to content

Dolby Digital Plus (ddp)

Dolby Digital Plus (E-AC-3), written as .ec3. Every option is on deezy encode ddp.

deezy encode ddp movie.mkv
deezy encode ddp --channels 8 --bitrate 1024 movie.mkv

Layouts

--channels picks 1.0 (1), 2.0 (2), 5.1 (6) or 7.1 (8). Auto (0, the default) follows the source as for Dolby Digital, and gives an 8-channel source 7.1 when DeeZy has dee_shim, else 5.1 with a notice.

  • 7.1 and 7.0 need dee_shim: DEE alone codes DD+ 7.1 only for Blu-ray (see ddp-bluray). Without dee_shim, --channels 8 is refused.
  • A source with no LFE is coded as 5.0, or a 7.0 source as 7.0 through dee_shim (5.0 without it). --upmix-50-to-51 codes a 5.0 source as 5.1 with a silent LFE.
  • --disable-lfe codes 5.1 as 5.0 and 7.1 as 7.0 (through dee_shim).
  • --stereo-down-mix (loro by default, ltrt or dpl2) picks how DEE mixes a 2.0 output, and the downmix it marks in the stream for players. DD+ takes dpl2 for every layout. The downmix levels work as for DD.

Data rates

ddp
  1.0   default 64: 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128, 144, 160,
        176, 192, 200, 208, 216, 224, 232, 240, 248, 256, 272, 288, 304, 320, 336, 352,
        368, 384, 400, 448, 512, 576, 640, 704, 768, 832, 896, 960, 1008, 1024
  2.0   default 128: 96, 104, 112, 120, 128, 144, 160, 176, 192, 200, 208, 216, 224,
        232, 240, 248, 256, 272, 288, 304, 320, 336, 352, 368, 384, 400, 448, 512, 576,
        640, 704, 768, 832, 896, 960, 1008, 1024
  5.1   default 192: 192, 200, 208, 216, 224, 232, 240, 248, 256, 272, 288, 304, 320,
        336, 352, 368, 384, 400, 448, 512, 576, 640, 704, 768, 832, 896, 960, 1008, 1024
  7.1   default 384, needs dee_shim: 384, 448, 504, 576, 640, 704, 768, 832, 896, 960,
        1008, 1024, 1152, 1280, 1408, 1512, 1536, 1664, 1792
        R0:R1 (dee_shim): E-AC-3 core 32-1024, dependent 32-1024 kbps

The 7.1 rates are dee_shim's (--layout 7.1/eac3).

Blu-ray secondary audio

--bluray-secondary makes Blu-ray secondary audio: 2.0 or 5.1, at the rates listed on ddp-bluray (192 kbps by default). A rate it doesn't take becomes the closest one it does, with a warning. --loudness-target works with it; --user-data doesn't. DEE keeps the LFE of secondary audio, so --disable-lfe gives it a silent one.

deezy encode ddp --bluray-secondary --channels 2 movie.mkv

Loudness

As for Dolby Digital: DEE measures the loudness and writes the measured dialnorm, and --custom-dialnorm, --loudness-target and --loudness-preset work the same way.

Other options

  • --user-data N writes a user data ID into the stream (-1, the default, writes none).
  • DRC, --surround-3db (off by default), the phase shift and the LFE low-pass filter work as for Dolby Digital.

From an Atmos source

As for Dolby Digital: a TrueHD Atmos track is encoded from FFmpeg's 7.1 decode, and DEE renders an Atmos master to 5.1 at most. Use ddp-atmos to keep the objects.