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

output increases size significantly #76

Open
geddski opened this issue Feb 23, 2019 · 3 comments
Open

output increases size significantly #76

geddski opened this issue Feb 23, 2019 · 3 comments

Comments

@geddski
Copy link

geddski commented Feb 23, 2019

I'm testing this lib out by combining two mp3s. One is 22kb and the other is 37kb. The output mp3 is 113kb. I'm using 0 gap for testing purposes. What could be increasing the output file size so much?

@geddski
Copy link
Author

geddski commented Feb 23, 2019

testing on an entire directory of mp3's takes it from 1.3MB separate files to 2.8MB combined.

@ramilushev
Copy link

Check the bit-rate you are exporting at. Does it match the mp3s you're converting? Had the same issue with .ogg files, so I equalized the export settings and it worked.

@monteiz
Copy link

monteiz commented Jun 5, 2021

@geddski try these settings:

{
    channels: 2,
    samplerate: 48000,
    vbr: 4
}

The key is the vbr option. A value of 4 should slightly reduce the size of the file, while preserving the quality.

channels and samplerate are used to create the sample (a pre-conversion to a raw file). Using these values, you're sure that no quality is lost during the process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants