aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-10-12 13:29:02 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-10-12 13:30:30 +0200
commit0f6d12e43c0adbd362765aa6b6f54c67e034a247 (patch)
tree4eb53842da4a03d1c9a1f31a8f99bafc53141e1f
parentb4cdc245cf0af0672207a5090cb6eb6c29606cdb (diff)
downloadyoutube-dl-0f6d12e43c0adbd362765aa6b6f54c67e034a247.tar.xz
Don't set the '-aq' option with the opus format (fixes #1263)
-rw-r--r--youtube_dl/PostProcessor.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/PostProcessor.py b/youtube_dl/PostProcessor.py
index fbf8a7f98..07b6895c0 100644
--- a/youtube_dl/PostProcessor.py
+++ b/youtube_dl/PostProcessor.py
@@ -178,7 +178,8 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):
extension = self._preferredcodec
more_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']