From 456b404e73fdf5f268f6acab912e38a7100169fb Mon Sep 17 00:00:00 2001 From: Avinash Reddy Date: Sun, 23 Feb 2020 11:52:45 +0530 Subject: [PATCH 1/2] Higher bitrate audio conversion. Changed FFMPEG args to convert to 48k quality audio instead of the current 44k audio. As @hal1200 says: https://github.com/ritiek/spotify-downloader/issues/620#issuecomment-548964142 Might solve the issue here: https://github.com/ritiek/spotify-downloader/issues/620 --- spotdl/convert.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spotdl/convert.py b/spotdl/convert.py index 70292ed..b069bed 100644 --- a/spotdl/convert.py +++ b/spotdl/convert.py @@ -117,7 +117,7 @@ class Converter: if self.input_ext == ".m4a": 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": ffmpeg_params = "-codec:a libopus -vbr on " elif self.output_ext == ".m4a": @@ -125,9 +125,9 @@ class Converter: elif self.input_ext == ".webm": if self.output_ext == ".mp3": - ffmpeg_params = "-codec:a libmp3lame -ar 44100 " + ffmpeg_params = "-codec:a libmp3lame -ar 48000 " 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": ffmpeg_params = "-codec:a flac -ar 44100 " From 75114bc26ec4c3c21599b0080100afba1c1108e8 Mon Sep 17 00:00:00 2001 From: Avinash Reddy Date: Sun, 1 Mar 2020 11:01:54 +0530 Subject: [PATCH 2/2] Update convert.py --- spotdl/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotdl/convert.py b/spotdl/convert.py index b069bed..4e5811f 100644 --- a/spotdl/convert.py +++ b/spotdl/convert.py @@ -130,7 +130,7 @@ class Converter: ffmpeg_params = "-cutoff 20000 -codec:a aac -ar 48000 " 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 ffmpeg_params += "-b:a 192k -vn "