Skip to content

Add bit_rate parameter to encoder #623

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

Merged
merged 2 commits into from
Apr 8, 2025
Merged

Conversation

NicolasHug
Copy link
Member

No description provided.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 7, 2025
// best-effort, matching to the closest supported bit_rate. I.e. passing 1 is
// like passing 0, which results in choosing the minimum supported bit rate.
// Passing 44_100 could result in output being 44000 if only 44000 is
// supported.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I don't think there is a way to list the supported bit rates of the encoder. It's possible for sample rates, but not for bit rates.

# TODO-ENCODING: tol should be stricter. We need to increase the encoded
# bitrate, and / or encode into a lossless format.
# TODO-ENCODING: tol should be stricter. We probably need to encode
# into a lossless format.
Copy link
Member Author

@NicolasHug NicolasHug Apr 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to pass bit_rate=40_000 and was able to decrease tolerance from 0.07 to 0.05, but that's clearly not strict enough still.

@NicolasHug NicolasHug marked this pull request as ready for review April 7, 2025 14:12
@NicolasHug NicolasHug merged commit b6dd961 into pytorch:main Apr 8, 2025
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants