pcrlnd/deew
Dolby Encoding Engine Wrapper
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của tuần
#1 Repository của tuần
#1 Repository của tuần
Dolby Encoding Engine Wrapper
English readme • Magyar leírás
DDP encoding has never been so easy!

Description
- drives the command line tools of Dolby Encoding Engine 6.7 and creates the intermediate files in the background, giving you a proper tool
- encodes DD, DDP, DDP Atmos, TrueHD, TrueHD Atmos, AC4, AC4 Atmos and AAC (always 2.0, mono inputs are rejected)
- re-encodes TrueHD Atmos to DDP Atmos / TrueHD Atmos / AC4 Atmos from the Atmos master (raw
.thdor a container like mkv/mka/m2ts, use-tito select the track; decoded with truehdd, DDP Atmos and TrueHD Atmos use dee_shim to stop DEE smoothing the object positions a second time) - runs multiple encodes in parallel for batch encoding (see config)
- works on Windows, Linux and macOS
- automatic sample rate conversion using ffmpeg's soxr resampler in case of an unsupported sample rate
- for DD/DDP/AC4 unsupported rates will be converted to 48 kHz
- for TrueHD unsupported rates will be converted to 48 kHz if source sample rate is lower than 72 kHz, otherwise will be converted to 96 kHz
- automatic channel swapping for 7.1 sources (DEE swaps Ls Rs with Lrs Rrs for some reason)
- automatically compensates for the delay of the encoders: 256 samples for DD/DDP, 2048 for AC4 and 1600 for AAC (TrueHD has none)
- works even with video inputs
-moand-dn(loudness measurement) don't support 7.1 sources- versatile delay option that supports ms, s and also frame@fps formats, parsing delay from filenames also supported
The deew tool chain page shows how deew connects ffprobe, ffmpeg, truehdd, dee_shim and the DEE tools, with the exact options it passes to each one for every format.
Requirements
- ffmpeg
- ffprobe
- Dolby Encoding Engine 6.7
- truehdd (only for the Atmos formats:
ddp-atmos,thd-atmos,ac4-atmos) - dee_shim (only for
ddp-atmos,thd-atmos, TrueHD with DRCnone, the standard profile of 7.1 DDP and 7.0 DDP)ddp-atmosandthd-atmosuse it so DEE doesn't smooth the object positions of the TrueHD decode a second time, TrueHD with DRCnone(the default) uses it because the TrueHD encoder has nononeDRC preset
DDP profiles
--ddp-mode selects the profile of 7.1 DDP and --ddp-atmos-mode the profile of ddp-atmos, the defaults are in the config's [default_modes] section:
- 7.1 DDP (
--ddp-mode):- standard (default, needs dee_shim): E-AC-3 independent and dependent substreams, 384-1792 kbps,
.ec3output - bluray (native, no dee_shim needed): AC-3 core and E-AC-3 dependent substream, 768-1664 kbps,
.eb3output
- standard (default, needs dee_shim): E-AC-3 independent and dependent substreams, 384-1792 kbps,
- DDP Atmos (
--ddp-atmos-mode):- streaming (default): 5.1 with Atmos in one E-AC-3 substream, 384-1024 kbps,
.ec3output - standard: 7.1 with Atmos, E-AC-3 independent and dependent substreams, 768-2048 kbps,
.ec3output - bluray: 7.1 with Atmos, AC-3 core and E-AC-3 dependent substream, 1152-1664 kbps,
.eb3output
- streaming (default): 5.1 with Atmos in one E-AC-3 substream, 384-1024 kbps,
- in
-hand-lbthe values that use dee_shim are blue (blue: uses dee_shim)
Where deew looks for the programs
deew looks for the programs in this order, there is nothing to set in the config:
- next to the deew executable (the DEE tools in the
deefolder next to it) - your PATH
deew -v shows what it found and where.
deew -gt / deew --get-tools downloads everything except DEE next to deew: ffmpeg, ffprobe, truehdd and dee_shim (ffmpeg is the latest stable GPL build from BtbN on Windows/Linux and from martin-riedl.de on macOS). DEE can't be downloaded, install it by hand (see below).
deew(.exe)
ffmpeg(.exe), ffprobe(.exe), truehdd(.exe), dee_shim(.exe)
dee/ (dee_ddp_encoder, dee_dthd_encoder, ... license.lic)
Dolby Encoding Engine installation
- install VisualCppRedist AIO on Windows
- install DEE 6.7, use the version that matches your OS (Windows, Linux or macOS)
- DEE 5.2.1 and older versions are not supported anymore
- put the folder of the DEE tools (
dee_ddp_encoder,dee_ac4_encoder, ...) next to deew and name itdee, or put the tools in your PATH - the Linux version of DEE doesn't include a TrueHD encoder (
dee_dthd_encoder): dthd-mac2linux can build a Linuxdee_dthd_encoderfrom the macOS one, put it into the DEE folder - on Apple silicon the macOS tools need Rosetta 2
deew (CLI) installation
with standalone build (Windows 10-11/Linux/macOS):
- grab the latest build (
deew/deew.exe/deew-macos) from: https://github.com/pcrlnd/deew/releases - on Linux/macOS make it executable:
chmod +x deew(chmod +x deew-macoson macOS) - run with:
deew(deew.exeon Windows,deew-macoson macOS)
(run the binary from terminal, doubleclicking it won't work) - on the first run it will create a config file (the tools go next to deew or in your PATH, see above)
- run
deew -gtto download everything except DEE (ffmpeg, ffprobe, truehdd, dee_shim) next to deew - updating: grab the latest build from: https://github.com/pcrlnd/deew/releases
build from source (Windows/Linux/macOS):
- install Rust if you don't have it already: https://rustup.rs
- run:
cargo install deew - run with:
deew - on the first run it will create a config file
- updating: run the same command again:
cargo install deew - after updating from deew 3.x or older generate a new config with
deew -gc(the config format changed in 5.0.0)
Usage
deew -h
USAGE: deew [-h] [-v] [-i [INPUT ...]] [-ti INDEX] [-o DIRECTORY] [-oi]
[-f FORMAT] [--ddp-mode MODE] [--ddp-atmos-mode MODE] [-b BITRATE]
[-dm CHANNELS] [-dl] [-d DELAY] [-r DRC] [-dn DIALNORM] [-in NUMBER]
[-k] [-kl] [-mo] [-lb] [-la] [-np] [-pl] [-cl] [-c] [-gc] [-gt]
FLAGS:
-h, --help show this help message.
-v, --version show version and the versions of the tools.
-i, --input [INPUT ...] audio file(s) or folder(s)
-ti, --track-index INDEX default: 0
select audio track index of input(s)
-o, --output DIRECTORY default: output path of the config, else the current
directory
specifies output directory
-oi, --output-to-input save each output next to its input file
overrides -o and the output path of the config
-f, --format FORMAT options: dd / ddp / ddp-atmos / thd / thd-atmos /
ac4 / ac4-atmos / aac
default: ddp
ddp-atmos and thd-atmos use truehdd and dee_shim,
ac4-atmos uses truehdd
--ddp-mode MODE options: standard / bluray
default: run -c/--config
profile of 7.1 DDP, 5.1 and below are not affected
standard: E-AC-3 only, 384-1792 kbps
bluray: AC-3 core + E-AC-3, 768-1664 kbps
--ddp-atmos-mode MODE options: streaming / standard / bluray
default: run -c/--config
profile of ddp-atmos
streaming: 5.1 with Atmos, 384-1024 kbps
standard: 7.1 with Atmos, E-AC-3 only, 768-2048 kbps
bluray: 7.1 with Atmos, AC-3 core + E-AC-3,
1152-1664 kbps
-b, --bitrate BITRATE options: run -lb/--list-bitrates
default: run -c/--config
-dm, --downmix CHANNELS options: 1 / 2 / 6
specifies downmix, only works for DD/DDP/AC4/AAC and
TrueHD (2 / 6)
DD and AC4 will be automatically downmixed to 5.1 in
case of a 7.1 source
AAC output is always 2.0
-dl, --disable-lfe remove the LFE channel of 5.1 and 7.1 inputs
DD and DDP get a real 5.0 or 7.0, the others keep a
silent LFE
5.0 and 7.0 inputs are supported, they have no LFE
-d, --delay DELAY examples: -5.1ms, +1,52s, -24@pal, +10@24000/1001
default: 0ms or parsed from filename
specifies delay as ms, s or frame@FPS
FPS can be a number, division or ntsc / pal
you have to specify negative values as -d=-0ms
-r, --drc DRC options: none / film_light / film_standard /
music_light / music_standard / speech
default: none (music_light for AC4)
specifies drc profile
none uses dee_shim for TrueHD, not available for AC4
-dn, --dialnorm DIALNORM options: between -31 and 0 (in case of 0 DEE's
measurement will be used)
default: 0
applied dialnorm value, only works for DD/DDP/AC4
-in, --instances NUMBER examples: 1, 4, 50%
default: 50%
specifies how many encodes can run at the same time
50% means 4 on a cpu with 8 threads
one DEE can use 2 threads so 50% can utilize all
threads
(this option overrides the config's number)
-k, --keeptemp keep temp files
-kl, --keep-log keep TrueHD's log and write a .deew-log.html report
for each output
-mo, --measure-only only measures the loudness with DEE, no encoding
-lb, --list-bitrates list bitrates that DEE can do for each format
-la, --long-argument print ffmpeg, truehdd and DEE arguments for each
input
-np, --no-prompt skip confirmation questions, print them as notes and
continue
-pl, --print-logos show all logo variants you can set in the config
-cl, --changelog show changelog
-c, --config show config and config location
-gc, --generate-config generate a new config
-gt, --get-tools download ffmpeg, ffprobe, truehdd and dee_shim next
to deew
blue: uses dee_shim
GUI
- download
deew-gui/deew-gui.exe/deew-gui-macosfrom https://github.com/pcrlnd/deew/releases and put it in the same folder as the CLI binary (it looks fordeewnext to itself,deew.exeon Windows) - on Linux/macOS make the binaries executable:
chmod +x deew deew-gui(chmod +x deew-macos deew-gui-macoson macOS) - Linux needs the WebKitGTK runtime:
libwebkit2gtk-4.1-0(Debian/Ubuntu),webkit2gtk4.1(Fedora),webkit2gtk-4.1(Arch) - Windows 10/11 already include the needed
WebView2runtime - the GUI has its own version number, independent from the CLI
- build from source:
cd gui && npm install && npm run tauri build -- --no-bundle(the binary will be ingui/target/release/), for development usenpm run tauri dev - more details (development, web mode, security notes): GUI readme
Web UI
deew-webis the GUI in your browser, can be handy for a headless server (no WebKit needed)- download
deew-web/deew-web.exe/deew-web-macosfrom https://github.com/pcrlnd/deew/releases and put it next to the CLI binary, - on Linux/macOS run
chmod +x deew-web(chmod +x deew-web-macoson macOS) - run it and open http://127.0.0.1:8765, use
--host 0.0.0.0to make it reachable from other machines - login: run the
deew-web --hash-passwordcommand and paste the hash into yourconfig.tomlfile - build from source:
cd gui && npm install && npm run build && cargo build -p deew-web --release(the binary will be ingui/target/release/)
Examples
deew -i *thd
TrueHD -> DDP encoding
deew -b 768 -i *flac
DDP encoding at 768kbps
deew -f ddp-atmos -i *thd
TrueHD Atmos -> DDP Atmos encoding from the Atmos master (uses truehdd and dee_shim)
deew -f thd-atmos -i *thd
TrueHD Atmos -> TrueHD Atmos re-encode (16 elements, uses truehdd and dee_shim)
deew -f ac4-atmos -b 448 -i *thd
TrueHD Atmos -> AC4 Atmos encoding at 448kbps
deew -f dd -i *dts -k
deew -f ddp -i *dts
encode multiple formats/bitrates while creating the temp file only once
Discussion and Support
Donate
If you like deew, you can support the people behind it with Monero.
Donate Monero to pcroland:
42pcroLMNqQbs87sSuNNTk8E8XHD88NhnSAx3exA3s1mHWAAyKH1oBw7dScYVRx3VJhUZT96QZNeo9Uw2qL72kwoHxVBXmL
Donate Monero to rainbaby (developer of truehdd and dee_shim):
47BgNcwYCWhSHB3WMd7CPLX3Yb4Kz8TCsGJaUmX7KqG895UKvixks6yje3GSa489XR97FLQMcUaSacAHbMbF2xWz7dvyX9U
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...
利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io
3FUI 是 ffmpeg 在 Windows 上的轻度专业交互外壳,收录大量参数,界面美观,交互友好。此项目面向国内使用环境,让普通人也能够轻松压制视频和转换格式。
LibreELEC × CB1 — Dolby Vision (FEL, LLDV), HDR10+, SDR/HDR rendering and Blu-ray menus for Intel, AMD and NVIDIA.