From a16173538e3dc038c3c3805faf35e22391098b18 Mon Sep 17 00:00:00 2001 From: Chris Griffith Date: Tue, 6 Aug 2024 22:47:18 -0500 Subject: [PATCH] * Adding #283 support for experimental DTS (dca) audio by adding -strict -2 (thanks to Sub7) --- CHANGES | 1 + fastflix/encoders/common/audio.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index e66a1fe0..12fb1a19 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,7 @@ * Adding #536 Improve Profiles - save advanced options (thanks to CelticTaonga and DCNerds) * Adding #568 center app on startup (thanks to Viet-Duc Le) * Adding #589 support for pydantic 2.x (thanks to dmo marillat) +* Adding #283 support for experimental DTS (dca) audio by adding -strict -2 (thanks to Sub7) * Fixing #185 audio channels not being set properly and resetting on encoder change (thanks to Tupsi) * Fixing #522 add file fails - fixed as of 5.7.0 (thanks to pcl5x2008) * Fixing #531 list limitation in readme that FFmpeg must support the software encoders listed (thanks to brunoais) diff --git a/fastflix/encoders/common/audio.py b/fastflix/encoders/common/audio.py index e78b52d6..2b48f7e5 100644 --- a/fastflix/encoders/common/audio.py +++ b/fastflix/encoders/common/audio.py @@ -105,6 +105,6 @@ def build_audio(audio_tracks, audio_file_index=0): command_list.append(f"-disposition:{track.outdex} 0") end_command = " ".join(command_list) - if " truehd " or " opus " in end_command: + if " truehd " in end_command or " opus " in end_command or " dca " in end_command: end_command += " -strict -2 " return end_command