Skip to content

Commit

Permalink
Fix #995
Browse files Browse the repository at this point in the history
Pass the audio stream bitrate to ffmpeg.
  • Loading branch information
pithuene committed Dec 30, 2020
1 parent b7a517b commit ff40b1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spotdl/download/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ async def download_song(self, songObj: SongObj) -> None:
# ! as 47 seconds long in your music player, yeah that was an issue earlier.)

command = 'ffmpeg -v quiet -y -i "%s" -acodec libmp3lame -abr true ' \
f'-b:a {trackAudioStream.bitrate} ' \
'-af "apad=pad_dur=2, dynaudnorm, loudnorm=I=-17" "%s"'
formattedCommand = command % (downloadedFilePath, convertedFilePath)

Expand Down

0 comments on commit ff40b1f

Please sign in to comment.