Skip to content

Commit

Permalink
- Batch Encoder major bug fix
Browse files Browse the repository at this point in the history
Corrected batch extension output for alac files
  • Loading branch information
jessielw committed Sep 23, 2020
1 parent 65e2b02 commit 2fda4cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions FFMPEGAudioEncoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -8721,6 +8721,7 @@ def startbatchaudiojob():
automatic_batch_save_dir = batch_save_directory
except:
automatic_batch_save_dir = batch_input_directory + '/Encoded'
audio_filter_function()
# AC3 Start Job -----------------------------------------------------------------------------------------------
if encoder.get() == "AC3":
finalcommand = '"' + 'cd /d ' + batch_input_directory_quoted + ' & md ' + '"' \
Expand Down Expand Up @@ -8970,7 +8971,7 @@ def startbatchaudiojob():
acodec_samplerate_choices[acodec_samplerate.get()] + audio_filter_setting \
+ min_pre_order + max_pre_order + flac_custom_cmd_input \
+ "-sn -vn -map_chapters -1 -map_metadata -1 " + \
'"' + automatic_batch_save_dir + '/NEW_%~na.flac"' + " -hide_banner"
'"' + automatic_batch_save_dir + '/NEW_%~na.m4a"' + " -hide_banner"
if shell_options.get() == "Default":
subprocess.Popen('cmd /c ' + finalcommand + " " + '-v error -stats"')
elif shell_options.get() == "Debug":
Expand All @@ -8987,6 +8988,7 @@ def print_batch_command_line():
cmd_line_window = Toplevel()
cmd_line_window.title('Command Line')
cmd_line_window.configure(background="#434547")
audio_filter_function()
# AC3 View Command --------------------------------------------------------------------------------------------
if encoder.get() == "AC3":
example_cmd_output = '"' + 'cd /d ' + batch_input_directory_quoted + ' & md ' + '\n \n' + '"' \
Expand Down Expand Up @@ -9211,7 +9213,7 @@ def print_batch_command_line():
acodec_samplerate_choices[acodec_samplerate.get()] + audio_filter_setting \
+ min_pre_order + max_pre_order + flac_custom_cmd_input + '\n \n' \
+ "-sn -vn -map_chapters -1 -map_metadata -1 " + '\n \n' + \
'"' + automatic_batch_save_dir + '/NEW_%~na.flac"' + " -hide_banner"
'"' + automatic_batch_save_dir + '/NEW_%~na.m4a"' + " -hide_banner"
# ---------------------------------------------------------------------------------------------------- ALAC Job
cmd_label = Label(cmd_line_window, text=example_cmd_output, foreground="white", background="#434547")
cmd_label.config(font=("Helvetica", 16))
Expand Down

0 comments on commit 2fda4cb

Please sign in to comment.