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

Setting lower sample rate producing slow motion #54

Open
Kif11 opened this issue Mar 26, 2018 · 0 comments
Open

Setting lower sample rate producing slow motion #54

Kif11 opened this issue Mar 26, 2018 · 0 comments

Comments

@Kif11
Copy link

Kif11 commented Mar 26, 2018

I need to encode an mp3 file with bitrate 8kbps and sample rate 8000 Hz.

Here is an ffmpeg command that produces the desirable quality:

ffmpeg -i in.mp3 -codec:a libmp3lame -b:a 8k -ar 8000 out.mp3

Modifying worker-realtime.js for mic.html example on line 22 produces the result that sounds like slow motion.

mp3Encoder = new lamejs.Mp3Encoder(1, 44100/2, config.bitRate || 123);

Update:
I found out that there was a related pull request from 2015 that was never merged
#11

@zhuker are you still maintaining this great library?

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

1 participant