-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Option "bitrate=32k" fails silently when exporting to ogg. #80
Comments
After reading through a lot of different documentations, I have found the correct parameters for BTW, the corrected (and working as expected) line is: preview.export("tmp.ogg", "ogg", codec="libvorbis", parameters=["-aq", "0", "-ar", "32000"]) |
I've been trying different settings and I've noticed something, the bitrate parameter has always worked, but not the way I expected. Now the following happens: preview.export("tmp.ogg", "ogg", codec="libvorbis", bitrate="48k") After this odyssey, I conclude that pydub is a great project, but unfortunately requires more documentation. |
@BreadMaker thanks for the bug report! I've been working on docs (even wrote some today!) but there's a lot to cover, especially for the I will update the docs with your notes when I'm back at my computer :) Thanks again! |
@BreadMaker After further research, each codec has it's own rules about acceptable bitrates. The ffmpeg documentation is pretty light on details but does have some info on bitrate arguments. |
Cool, if you add an statement about that in the |
I have this script that I use to maintain a music database. So far I have no problems, the files are exported to ogg format and stored in the database, but I've noticed that the quality options (intended to reduce the final size of the DB) are ignored completely. I tried both the
bitrate
and theparameters
options.I've done some tests in mp3, and the quality options work as they should. My question is: Do I need some library (libav seems to be installed), or I found a bug?
In case you were wondering, I prefer to use ogg for its best quality/size ratio compared to mp3.
I'm using python 2.7.6 and pydub 0.9.5. Don't know if relevant, but I'm using a 64-bit GNU/Linux system.
The text was updated successfully, but these errors were encountered: