deew
deew copied to clipboard
[BUG] Add proper error message for mono TrueHD encoding
Description of the the bug deew tries to encode mono TrueHD
Version Latest
OS Every
And 44.1k too. Even though ffmpeg can encode that, no problem. Mono too. Encoding is kinda garbage bitrate but at least it is losseless and gapless (gapless thanks to shorten_by) compared to Dolby Media Encoder or DEE.
ffmpeg -h encoder=truehd
General capabilities: delay small exp
Threading capabilities: none
Supported sample rates: 44100 48000 88200 96000 176400 192000
Supported sample formats: s16 s32
Supported channel layouts: stereo 5.0 5.1
BTW, 44.1 is supported by HW bitstream players like LG C9 internal speackers, no problem. There are some crazy artefacts, not present with official encoders... But it is what it is.
from the readme:
- automatic sample rate conversion using ffmpeg's soxr resampler in case of an unsupported sample rate
- for DD/DDP 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
DEE doesn't support anything else other than 48kHz for DD and DDP and only 48 and 96kHz for TrueHD