Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed invalid CBR option and channel layouts + added VBR option. #2

Merged
merged 2 commits into from
Jul 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 11 additions & 14 deletions FFMPEG Audio Encoder v1.86.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ def gotosavefile():
# MP3 Window -----------------------
elif encoder.get() == "MP3":
audio_window = Toplevel()
audio_window.title('AAC Settings')
audio_window.title('MP3 Settings')
audio_window.configure(background="#434547")
window_height = 150
window_width = 385
Expand Down Expand Up @@ -907,14 +907,14 @@ def gotosavefile():
'CBR: 192k': '-b:a 192k ',
'CBR: 256k': '-b:a 256k ',
'CBR: 320k': '-b:a 320k ',
'CBR: 448k': '-b:a 448k ',
'VBR: 1': '-q:a 1 ',
'VBR: 2': '-q:a 2 ',
'VBR: 3': '-q:a 3 ',
'VBR: 4': '-q:a 4 ',
'VBR: 5': '-q:a 5 ',
'VBR: 6': '-q:a 6 ',
'VBR: 7': '-q:a 7 '}
'VBR: -V 0': '-q:a 0 ',
'VBR: -V 1': '-q:a 1 ',
'VBR: -V 2': '-q:a 2 ',
'VBR: -V 3': '-q:a 3 ',
'VBR: -V 4': '-q:a 4 ',
'VBR: -V 5': '-q:a 5 ',
'VBR: -V 6': '-q:a 6 ',
'VBR: -V 7': '-q:a 7 '}
acodec_bitrate.set('CBR: 192k') # set the default option
acodec_bitrate_menu_label = Label(audio_window, text="Quality :", background="#434547", foreground="white")
acodec_bitrate_menu_label.grid(row=0, column=2, columnspan=1, padx=10, pady=3, sticky=W+E)
Expand All @@ -929,10 +929,7 @@ def gotosavefile():
acodec_channel = StringVar(audio_window)
acodec_channel_choices = { 'Original': "",
'1 (Mono)': "-ac 1 ",
'2 (Stereo)': "-ac 2 ",
'5.1 (Surround)': "-ac 6 ",
'6.1 (Surround)': "-ac 7 ",
'7.1 (Surround)': "-ac 8 "}
'2 (Stereo)': "-ac 2 "}
acodec_channel.set('Original') # set the default option
achannel_menu_label = Label(audio_window, text="Channels :", background="#434547", foreground="white")
achannel_menu_label.grid(row=0, column=1, columnspan=1, padx=10, pady=3, sticky=W+E)
Expand Down Expand Up @@ -2235,4 +2232,4 @@ def update_file_input(*args):
start_audio_button.bind("<Leave>", start_audio_button_hover_leave)

# End Loop -----------------------------------------------------------------------
root.mainloop()
root.mainloop()