mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Merge pull request #667 from AvinashReddy3108/patch-1
Higher bitrate audio conversion.
This commit is contained in:
@@ -117,7 +117,7 @@ class Converter:
|
|||||||
|
|
||||||
if self.input_ext == ".m4a":
|
if self.input_ext == ".m4a":
|
||||||
if self.output_ext == ".mp3":
|
if self.output_ext == ".mp3":
|
||||||
ffmpeg_params = "-codec:v copy -codec:a libmp3lame -ar 44100 "
|
ffmpeg_params = "-codec:v copy -codec:a libmp3lame -ar 48000 "
|
||||||
elif self.output_ext == ".webm":
|
elif self.output_ext == ".webm":
|
||||||
ffmpeg_params = "-codec:a libopus -vbr on "
|
ffmpeg_params = "-codec:a libopus -vbr on "
|
||||||
elif self.output_ext == ".m4a":
|
elif self.output_ext == ".m4a":
|
||||||
@@ -125,12 +125,12 @@ class Converter:
|
|||||||
|
|
||||||
elif self.input_ext == ".webm":
|
elif self.input_ext == ".webm":
|
||||||
if self.output_ext == ".mp3":
|
if self.output_ext == ".mp3":
|
||||||
ffmpeg_params = "-codec:a libmp3lame -ar 44100 "
|
ffmpeg_params = "-codec:a libmp3lame -ar 48000 "
|
||||||
elif self.output_ext == ".m4a":
|
elif self.output_ext == ".m4a":
|
||||||
ffmpeg_params = "-cutoff 20000 -codec:a aac -ar 44100 "
|
ffmpeg_params = "-cutoff 20000 -codec:a aac -ar 48000 "
|
||||||
|
|
||||||
if self.output_ext == ".flac":
|
if self.output_ext == ".flac":
|
||||||
ffmpeg_params = "-codec:a flac -ar 44100 "
|
ffmpeg_params = "-codec:a flac -ar 48000 "
|
||||||
|
|
||||||
# add common params for any of the above combination
|
# add common params for any of the above combination
|
||||||
ffmpeg_params += "-b:a 192k -vn "
|
ffmpeg_params += "-b:a 192k -vn "
|
||||||
|
|||||||
Reference in New Issue
Block a user