diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-10-13 15:26:10 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-10-13 15:26:10 +0200 |
commit | 06723d47c4f934542a626569045e489a09796975 (patch) | |
tree | 87d1d61ec4cde23c053b6288947adaf7599a31cc | |
parent | 69a0c470b5cbcb789ef0358b7f13a18bf7564fc1 (diff) | |
parent | 0f6d12e43c0adbd362765aa6b6f54c67e034a247 (diff) |
Merge remote-tracking branch 'jaimeMF/opus-fix'
-rw-r--r-- | youtube_dl/PostProcessor.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/PostProcessor.py b/youtube_dl/PostProcessor.py index 0479591f0..039e01498 100644 --- a/youtube_dl/PostProcessor.py +++ b/youtube_dl/PostProcessor.py @@ -180,7 +180,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'] |