Skip to content

Commit

Permalink
* Adding #283 support for experimental DTS (dca) audio by adding -str…
Browse files Browse the repository at this point in the history
…ict -2 (thanks to Sub7)
  • Loading branch information
cdgriffith committed Aug 7, 2024
1 parent 88f296b commit a161735
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion fastflix/encoders/common/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a161735

Please sign in to comment.