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

Freaccmd: Unable to set a higher cbr bitrate than 160 #641

Open
Flameborn opened this issue Oct 18, 2024 · 2 comments
Open

Freaccmd: Unable to set a higher cbr bitrate than 160 #641

Flameborn opened this issue Oct 18, 2024 · 2 comments

Comments

@Flameborn
Copy link

Hello,

I am trying to split an m4b based on chapters and convert to CBR, 320 KBPS mp3. Despite what the help file says, the maximum bitrate seems to be 160 via the -b flag. Lower bitrates work as expected, e.g. 128.

I am using Intel MacOS 12.7.6.

Example command:

for f in *.m4b; do
  /applications/freac.app/Contents/MacOS/freaccmd -d "${f%.m4b}_out" --split-chapters -p "<track> <title>" -m cbr -b 320 "$f"
done

Any help is greatly appreciated.

@enzo1982
Copy link
Owner

Sorry for the late response!

The MP3 format supports bitrates above 160 kbps only for sample rates of 32 kHz or higher. For these sample rates, the format uses the MPEG 1 Audio Layer 3 profile which specifies bitrates up to 320 kbps.

When the sample rate is lower than 32 kHz, the MPEG 2 or MPEG 2.5 Audio Layer 3 profiles are used which support only up to 160 kbps.

As you seem to be dealing with .m4b audio book files and those often use lower sample rates, I think this might be what is causing the observed behavior here.

@Flameborn
Copy link
Author

Flameborn commented Feb 16, 2025 via email

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

2 participants