A feature-rich command-line audio/video downloader
Don't set the '-aq' option with the opus format (fixes #1263)
Jaime Marquínez Ferrándiz0f6d12e43c0a
diff --git a/youtube_dl/PostProcessor.py b/youtube_dl/PostProcessor.pyindex fbf8a7f98f..07b6895c0a 100644--- a/youtube_dl/PostProcessor.py+++ b/youtube_dl/PostProcessor.py@@ -178,7 +178,8 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):extension = self._preferredcodecmore_opts = []if self._preferredquality is not None:- if int(self._preferredquality) < 10:+ # The opus codec doesn't support the -aq option+ if int(self._preferredquality) < 10 and extension != 'opus':more_opts += [self._exes['avconv'] and '-q:a' or '-aq', self._preferredquality]else:more_opts += [self._exes['avconv'] and '-b:a' or '-ab', self._preferredquality + 'k']