mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	Don't set the '-aq' option with the opus format (fixes #1263)
This commit is contained in:
		@@ -178,7 +178,8 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):
 | 
				
			|||||||
            extension = self._preferredcodec
 | 
					            extension = self._preferredcodec
 | 
				
			||||||
            more_opts = []
 | 
					            more_opts = []
 | 
				
			||||||
            if self._preferredquality is not None:
 | 
					            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]
 | 
					                    more_opts += [self._exes['avconv'] and '-q:a' or '-aq', self._preferredquality]
 | 
				
			||||||
                else:
 | 
					                else:
 | 
				
			||||||
                    more_opts += [self._exes['avconv'] and '-b:a' or '-ab', self._preferredquality + 'k']
 | 
					                    more_opts += [self._exes['avconv'] and '-b:a' or '-ab', self._preferredquality + 'k']
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user