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

Effective libopus support #114

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Spectranox
Copy link

@Spectranox Spectranox commented Apr 10, 2024

Changes to how bitrates and file formats are handled in the program to allow for an appropriate bitrate in the Opus codec, 192K is equal to MP3 320K so loads of space savings. An Opus file is about half the size of the default OGG.

It struck me after digging through the code for a bit that chances are it is in fact using the libopus codec, however with how bitrates are handled it's encoded at 320K. As I previously mentioned, 320K can be reduced to 192K with Opus without noticeable quality degradation. This bitrate reduction resolves into a final file size reduction of almost 50%.

I also included an extra printout just to inform the user as to the codec being used, it would've saved me some time when making this PR so I take that as meaning it's a useful feature to have.

Regarding the changes to zotify/utils.py, I'm not 100% sure if that's necessary but for the sake of one line...

Fixes Issue: #113

This is my first time contributing to a project, so forgive me if I've missed important details. I'm happy to have my first contribute to a tool I use!

@NicoWeio
Copy link

NicoWeio commented Jul 8, 2024

I can't really comment on the content of this PR, but I wanted to say that this is an excellent example of a first contribution! Keep it up!

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

Successfully merging this pull request may close these issues.

2 participants