Browse Source

add opus audio codec option, fixes #59

doc-issue-template
nodiscc 8 years ago
parent
commit
21b3373675
2 changed files with 3 additions and 3 deletions
  1. 2
      youtube_dl_gui/optionsframe.py
  2. 4
      youtube_dl_gui/optionsmanager.py

2
youtube_dl_gui/optionsframe.py

@ -765,7 +765,7 @@ class AudioTab(TabPanel):
"""
AUDIO_QUALITY = twodict([("0", _("high")), ("5", _("mid")), ("9", _("low"))])
AUDIO_FORMATS = ["mp3", "wav", "aac", "m4a", "vorbis"]
AUDIO_FORMATS = ["mp3", "wav", "aac", "m4a", "vorbis", "opus"]
TO_AUDIO_LABEL = _("Convert to Audio")
KEEP_VIDEO_LABEL = _("Keep Video")

4
youtube_dl_gui/optionsmanager.py

@ -76,7 +76,7 @@ class OptionsManager(object):
after post processing it.
audio_format (string): Audio format of the post processed file.
Available values are "mp3", "wav", "aac", "m4a", "vorbis".
Available values are "mp3", "wav", "aac", "m4a", "vorbis", "opus".
audio_quality (string): Audio quality of the post processed file.
Available values are "9", "5", "0". The lowest the value the
@ -285,7 +285,7 @@ class OptionsManager(object):
'264', '138', '242', '243', '244', '247', '248', '271', '272', '82',
'83', '84', '85', '100', '101', '102', '139', '140', '141', '171', '172')
VALID_AUDIO_FORMAT = ('mp3', 'wav', 'aac', 'm4a', 'vorbis')
VALID_AUDIO_FORMAT = ('mp3', 'wav', 'aac', 'm4a', 'vorbis', 'opus')
VALID_AUDIO_QUALITY = ('0', '5', '9')

Loading…
Cancel
Save