Skip to content

Commit

Permalink
-Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jessielw committed Sep 23, 2020
1 parent 105d80e commit 65e2b02
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions FFMPEGAudioEncoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -3655,7 +3655,8 @@ def flac_cmd(*args):
acodec_flac_lpc_type_label = Label(audio_window, text="LPC Algorithm :", background="#434547",
foreground="white")
acodec_flac_lpc_type_label.grid(row=6, column=0, columnspan=1, padx=10, pady=3, sticky=N + S + E + W)
acodec_flac_lpc_type_menu = OptionMenu(audio_window, acodec_flac_lpc_type, *acodec_flac_lpc_type_choices.keys())
acodec_flac_lpc_type_menu = OptionMenu(audio_window, acodec_flac_lpc_type,
*acodec_flac_lpc_type_choices.keys())
acodec_flac_lpc_type_menu.config(background="#23272A", foreground="white", highlightthickness=1, width=15)
acodec_flac_lpc_type_menu.grid(row=7, column=0, columnspan=1, padx=10, pady=3, sticky=N + S + E + W)
acodec_flac_lpc_type_menu["menu"].configure(activebackground="dim grey")
Expand Down Expand Up @@ -4080,7 +4081,7 @@ def file_save():
title="Select a Save Location", initialfile=autosavefilename,
filetypes=(("FLAC", "*.flac"), ("All Files", "*.*")))

elif encoder.get() == "FLAC":
elif encoder.get() == "ALAC":
VideoOutput = filedialog.asksaveasfilename(defaultextension=".m4a", initialdir=autofilesave_dir_path,
title="Select a Save Location", initialfile=autosavefilename,
filetypes=(("ALAC", "*.m4a"), ("All Files", "*.*")))
Expand Down Expand Up @@ -4515,7 +4516,7 @@ def startaudiojob():
subprocess.Popen('cmd /k ' + finalcommand + '"')
# ------------------------------------------------------------------------------------------------------------ FLAC
# ALAC Start Job --------------------------------------------------------------------------------------------------
elif encoder.get() == "FLAC":
elif encoder.get() == "ALAC":
finalcommand = '"' + ffmpeg + " -analyzeduration 100M -probesize 50M -i " + VideoInputQuoted + \
acodec_stream_choices[acodec_stream.get()] \
+ encoder_dropdownmenu_choices[encoder.get()] + \
Expand Down

0 comments on commit 65e2b02

Please sign in to comment.