Merge pull request #76 from nodiscc/master

Add opus audio codec option, fixes #59
master
MrS0m30n3 2016-02-14 15:56:30 +02:00
commit a254ed99ac
2 changed files with 3 additions and 3 deletions

View File

@ -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")

View File

@ -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')