Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Audio Quality is not as Specified in the cmd For Mac #2260

Open
CoderDJJD opened this issue Dec 12, 2024 · 3 comments
Open

The Audio Quality is not as Specified in the cmd For Mac #2260

CoderDJJD opened this issue Dec 12, 2024 · 3 comments
Labels
Bug Unexpected problem or unintended behavior that needs to be fixed

Comments

@CoderDJJD
Copy link

System OS

MacOS

Python Version

3.13 (CPython)

Install Source

pip / PyPi

Install version / commit hash

4.2.10

Expected Behavior vs Actual Behavior

When using the command spotdl --bitrate 256k --format wav --output "/output/folder" Link to playlist, the tool indicates that it will output audio at a bitrate of 256 kbps. However, upon downloading, the audio files are showing a sample rate of 48000 Hz. It is important to note that bitrate and sample rate are different aspects of audio quality. While the command specifies a bitrate of 256 kbps, the sample rate of 48000 Hz refers to the number of samples of audio carried per second. The discrepancy arises because the command controls bitrate, but the sample rate is determined by the source audio files.

Steps to reproduce - Ensure to include actual links!

  1. Use the following command to specify the desired bitrate and format, and to set the output folder for the downloaded files:

    spotdl --bitrate 256k --format wav --output "/Your/output/folder" https://open.spotify.com/playlist/37i9dQZF1E37HyjDArhdL2
    
  2. Execute the command in your terminal or command prompt, ensuring that the specified output folder is where you want the files to be saved.

  3. Once the command has run successfully, the output folder will contain the downloaded music files in .wav format. Note that although the files are set to a bitrate of 256k, the Finder may display the audio quality as 48000 Hz.

Traceback

spotdl --bitrate 256k --format wav --output "/Volumes/DJJD/Dj_Music/Hip_Hop" https://open.spotify.com/playlist/37i9dQZF1E37HyjDArhdL2

Other details

No response

@CoderDJJD CoderDJJD added the Bug Unexpected problem or unintended behavior that needs to be fixed label Dec 12, 2024
@SamClayton
Copy link

What is the bit rate of the resulting files? Typically the bitrate argument is used for compressed formats such as m4a.

Because YouTube is the download source, I've noticed spotdl's output tends to be 48kHz (typically used for video) rather than 44.1kHZ (typical for audio, derived from CD standard).

@CoderDJJD
Copy link
Author

the bit rate of the resulting files are 48000hz but it doesn't convert them to 256000hz of audio quality using the cmd:
spotdl --bitrate 256k --format wav --output "/Volumes/DJJD/Dj_Music/Hip_Hop"
https://open.spotify.com/playlist/37i9dQZF1E37HyjDArhdL2

@CoderDJJD
Copy link
Author

What is the bit rate of the resulting files? Typically the bitrate argument is used for compressed formats such as m4a.

Because YouTube is the download source, I've noticed spotdl's output tends to be 48kHz (typically used for video) rather than 44.1kHZ (typical for audio, derived from CD standard).

The resulting files are outputted at 48000hz not converted to 256000hz of audio quality using the cmd:
spotdl --bitrate 256k --format wav --output "/Volumes/DJJD/Dj_Music/Hip_Hop" https://open.spotify.com/playlist/37i9dQZF1E37HyjDArhdL2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Unexpected problem or unintended behavior that needs to be fixed
Projects
None yet
Development

No branches or pull requests

2 participants