deezy encode preset
Runs a preset from the config's [presets]. --name picks it; options after it come after the preset's own, so they win. deezy config list-presets lists the presets. See Presets.
usage: DeeZy encode preset [-h] [--ffmpeg FFMPEG] [--truehdd TRUEHDD]
[--dee DEE] [--track-index TRACK_INDEX]
[--dee-shim DEE_SHIM] [--no-shim] [--delay DELAY]
[--keep-temp] [--reuse-temp-files]
[--temp-dir TEMP_DIR] [--output OUTPUT]
[--output-template OUTPUT_TEMPLATE]
[--output-preview] [--max-parallel MAX_PARALLEL]
[--jitter-ms JITTER_MS] [--allow-sleep]
[--max-logs N] [--max-batch-results N]
[--working-dir WORKING_DIR]
[--batch-summary-output]
[--batch-output-dir BATCH_OUTPUT_DIR] [--overwrite]
[--keep-logs] [--print-commands] [--dry-run]
[--limit-ffmpeg LIMIT_FFMPEG]
[--limit-dee LIMIT_DEE]
[--limit-truehdd LIMIT_TRUEHDD]
[--bitrate KBPS|R0:R1]
[--drc-line-mode {film_standard,film_light,music_standard,music_light,speech,none}]
[--drc-rf-mode {film_standard,film_light,music_standard,music_light,speech,none}]
[--custom-dialnorm CUSTOM_DIALNORM]
[--no-dialogue-intelligence]
[--loudness-preset {manual,atsc_a85,ebu_r128,freetv_op59,arib_b32}]
[--speech-threshold SPEECH_THRESHOLD]
[--no-low-pass-filter] [--surround-3db]
[--no-surround-90-deg-phase-shift]
[--upmix-50-to-51]
[--stereo-down-mix {auto,loro,ltrt,dpl2}]
[--lt-rt-center {+3,+1.5,0,-1.5,-3,-4.5,-6,-inf}]
[--lt-rt-surround {-1.5,-3,-4.5,-6,-inf}]
[--lo-ro-center {+3,+1.5,0,-1.5,-3,-4.5,-6,-inf}]
[--lo-ro-surround {-1.5,-3,-4.5,-6,-inf}]
[--channels CHANNELS]
[--atmos-mode {streaming,standard,bluray}]
[--no-oamd-as-is]
[--thd-warp-mode {normal,warping,prologiciix,loro}]
[--encoding-profile {ims,ims_music}]
[--ddp-drc {film_standard,film_light,music_standard,music_light,speech,none}]
[--flat-panel-drc {film_standard,film_light,music_standard,music_light,speech,none}]
[--home-theatre-drc {film_standard,film_light,music_standard,music_light,speech,none}]
[--portable-headphones-drc {film_standard,film_light,music_standard,music_light,speech,none}]
[--portable-speakers-drc {film_standard,film_light,music_standard,music_light,speech,none}]
[--aac-profile {aaclc,heaac,heaacv2}]
[--pipe {auto,always,never}] --name PRESET_NAME
INPUT [INPUT ...]
positional arguments:
INPUT
Input file paths or directories
options:
-h, --help
show this help message and exit
--ffmpeg, FFMPEG
Path to FFmpeg.
--truehdd, TRUEHDD
Path to truehdd.
--dee, DEE
The folder of the DEE tools, or one of them.
--track-index, TRACK_INDEX
The source track. Supports: 'N' (audio track N), 'a:N' (audio track N), 's:N' (stream index N).
--dee-shim, DEE_SHIM
Path to dee_shim (0.3.0 or newer). DeeZy needs it for DD+ 7.1 and 7.0, ddp-atmos --atmos-mode standard and bluray, TrueHD --drc none, and to measure 7.1. It also runs every ddp-atmos, thd and thd-atmos encode through it, which is faster on AMD CPUs and keeps more of the source as it is (see --no-oamd-as-is and --no-as-is). Found beside the DEE tools, in apps/dee_shim or on PATH when not given.
--no-shim
Don't use dee_shim, even when it is found.
--delay, DELAY
The delay in milliseconds, seconds or frames at a frame rate, decimals allowed. Note '--delay=' is required! (--delay=-10.5ms / --delay=1.25s / --delay=-3@23.976; the rate may also be 24000/1001, ntsc, pal, film or ntsc-film).
--keep-temp
Keeps the temp files after finishing.
--reuse-temp-files
Attempt to reuse already-extracted temp files adjacent to the input file when the extractor command is identical. This implies --keep-temp.
--temp-dir, TEMP_DIR
Path to store temporary files to. If not specified this will automatically happen in the temp dir of the os.
--output, OUTPUT
The output file path. If not specified we will attempt to automatically add Delay/Language string to output file name.
--output-template, OUTPUT_TEMPLATE
Optional lightweight template to control auto-generated output filenames. Supported tokens: {title},{year},{stem},{stem-cleaned},{source},{lang},{channels},{worker},{delay},{opt-delay},{format},{track},{bitrate},{bitrate-split}.
--output-preview
When set, render and show template-based filenames but do not write outputs. Useful to validate templates before running batch jobs.
--max-parallel, MAX_PARALLEL
Maximum number of files to process in parallel (default: 1).
--jitter-ms, JITTER_MS
Maximum random jitter in milliseconds to apply before heavy phases (FFmpeg/DEE/truehdd). Helps avoid synchronization spikes when running parallel jobs. Default 0 (disabled).
--allow-sleep
Allow the system to sleep while encoding. By default, DeeZy prevents automatic system sleep without keeping the display on.
--max-logs, N
Maximum number of log files to keep in the working logs directory for this run. Overrides config value if provided. Use 0 to keep none.
--max-batch-results, N
Maximum number of batch-results JSON files to keep in the working batch-results directory for this run. Overrides config value if provided. Use 0 to keep none.
--working-dir, WORKING_DIR
Directory to use for DeeZy working files (logs and batch-results). Overrides config/default. If not set, uses the workspace beside the executable.
--batch-summary-output
Enable batch processing results summary (JSON format). Results will be saved to a 'batch-results' folder next to the executable by default.
--batch-output-dir, BATCH_OUTPUT_DIR
When used with --batch-summary-output, place all encoded outputs into this directory instead of writing them next to the input files.
--overwrite
Overwrite existing output files instead of failing.
--keep-logs
Writes the job's command lines and everything DEE, FFmpeg and truehdd print to '<output>.log' beside the output, when the job fails too. FFmpeg then runs at its info level.
--print-commands
Print each FFmpeg, truehdd and DEE command line as it starts.
--dry-run
Probe the input and print the FFmpeg, truehdd and DEE command lines the encode would run, without running them or writing any file.
--limit-ffmpeg, LIMIT_FFMPEG
Optional limit for concurrent FFmpeg processing. Defaults to --max-parallel if not set. If set higher than --max-parallel the value will be capped to --max-parallel and a warning will be emitted.
--limit-dee, LIMIT_DEE
Optional limit for concurrent DEE processing. Defaults to --max-parallel if not set. If set higher than --max-parallel the value will be capped to --max-parallel and a warning will be emitted.
--limit-truehdd, LIMIT_TRUEHDD
Optional limit for concurrent truehdd processing. Defaults to --max-parallel if not set. If set higher than --max-parallel the value will be capped to --max-parallel and a warning will be emitted.
--bitrate, KBPS|R0:R1
Total bitrate in kbps (adjusted to a supported rate), or exact core and dependent rates as R0:R1 for two-substream DD+ output (requires dee_shim).
--drc-line-mode, {film_standard,film_light,music_standard,music_light,speech,none}
Dynamic range compression settings.
--drc-rf-mode, {film_standard,film_light,music_standard,music_light,speech,none}
Dynamic range compression settings.
--custom-dialnorm, CUSTOM_DIALNORM
Custom dialnorm (0 disables custom dialnorm).
--no-dialogue-intelligence
Dialogue intelligence disabled.
--loudness-preset, {manual,atsc_a85,ebu_r128,freetv_op59,arib_b32}
Measure to a loudness regulation (ATSC A/85, EBU R128, FreeTV OP59, ARIB B32) instead of the manual settings. Replaces --no-dialogue-intelligence and --speech-threshold.
--speech-threshold, SPEECH_THRESHOLD
[0-100] If the percentage of speech is higher than the threshold, the encoder uses speech gating to set the dialnorm value. (Otherwise, the encoder uses level gating).
--no-low-pass-filter
Disables low pass filter.
--surround-3db
Lowers the surround channels by 3 dB (DEE's surround_3dB_attenuation). Off by default, as in DEE.
--no-surround-90-deg-phase-shift
Disables surround 90 degree phase shift.
--upmix-50-to-51
Encode a 5.0 source as 5.1 with a silent LFE channel, rather than as 5.0.
--stereo-down-mix, {auto,loro,ltrt,dpl2}
Down mix method for stereo.
--lt-rt-center, {+3,+1.5,0,-1.5,-3,-4.5,-6,-inf}
Lt/Rt center downmix level.
--lt-rt-surround, {-1.5,-3,-4.5,-6,-inf}
Lt/Rt surround downmix level.
--lo-ro-center, {+3,+1.5,0,-1.5,-3,-4.5,-6,-inf}
Lo/Ro center downmix level.
--lo-ro-surround, {-1.5,-3,-4.5,-6,-inf}
Lo/Ro surround downmix level.
--channels, CHANNELS
Override channels setting from preset (format depends on preset's format).
--atmos-mode, {streaming,standard,bluray}
Atmos encoding mode: streaming (5.1 backbone), standard (7.1 backbone as E-AC-3) or bluray (7.1 backbone with an AC-3 core). standard and bluray need dee_shim.
--no-oamd-as-is
Lets DEE smooth the object metadata again, as it does without dee_shim. By default dee_shim codes it as the master has it. Without dee_shim this changes nothing.
--thd-warp-mode, {normal,warping,prologiciix,loro}
The warp mode truehdd gives a TrueHD Atmos stream that has none. Without it the stream keeps none, which DEE renders as warping.
--encoding-profile, {ims,ims_music}
Encoding profile. For encoding music content, select ims_music.
--ddp-drc, {film_standard,film_light,music_standard,music_light,speech,none}
Dynamic range compression settings for AC4.
--flat-panel-drc, {film_standard,film_light,music_standard,music_light,speech,none}
Dynamic range compression settings for AC4 (channel-based AC-4 has no 'none').
--home-theatre-drc, {film_standard,film_light,music_standard,music_light,speech,none}
Dynamic range compression settings for AC4 (channel-based AC-4 has no 'none').
--portable-headphones-drc, {film_standard,film_light,music_standard,music_light,speech,none}
Dynamic range compression settings for AC4 (channel-based AC-4 has no 'none').
--portable-speakers-drc, {film_standard,film_light,music_standard,music_light,speech,none}
Dynamic range compression settings for AC4 (channel-based AC-4 has no 'none').
--aac-profile, {aaclc,heaac,heaacv2}
AAC profile: aaclc (56-576 kbps, default 192), heaac (16-143, default 64) or heaacv2 (14-63, default 56). The output is always 2.0.
--pipe, {auto,always,never}
How FFmpeg's audio reaches DEE. 'auto' (the default) pipes it straight into DEE on Windows and writes a temp WAV elsewhere or with --reuse-temp-files; 'always' pipes it or refuses the job; 'never' always writes the temp WAV.
--name, PRESET_NAME
Name of the preset to use for encoding.
Examples
- Encode with the preset
web-128:
- Use the preset with another data rate: