mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-12-23 04:30:10 +09:00
Merge e8bebe0b03
into c5098961b0
This commit is contained in:
commit
a9907a3714
@ -276,7 +276,10 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):
|
|||||||
acodec = 'copy'
|
acodec = 'copy'
|
||||||
extension = 'm4a'
|
extension = 'm4a'
|
||||||
more_opts = ['-bsf:a', 'aac_adtstoasc']
|
more_opts = ['-bsf:a', 'aac_adtstoasc']
|
||||||
elif filecodec in ['aac', 'flac', 'mp3', 'vorbis', 'opus']:
|
elif (
|
||||||
|
filecodec in ['aac', 'flac', 'vorbis', 'opus'] or
|
||||||
|
(filecodec == 'mp3' and self._preferredquality is None)
|
||||||
|
):
|
||||||
# Lossless if possible
|
# Lossless if possible
|
||||||
acodec = 'copy'
|
acodec = 'copy'
|
||||||
extension = filecodec
|
extension = filecodec
|
||||||
|
Loading…
Reference in New Issue
Block a user