opus icon indicating copy to clipboard operation
opus copied to clipboard

can encode support CBR set?

Open michaeldain opened this issue 7 months ago • 4 comments

michaeldain avatar Apr 28 '25 10:04 michaeldain

I don't know. How far did you get?

hraban avatar Apr 29 '25 05:04 hraban

I found that the encoding interface does not have a function to set VBR (Variable Bitrate); as a result, when I want to encode PCM audio to opus format, I cannot turn off VBR familiarity and enable CBR (Constant Bitrate) to ensure that each frame of opus data encoded is of fixed length. Thanks for your reply

michaeldain avatar Apr 29 '25 11:04 michaeldain

Sounds about right. I haven't needed it but if you feel like adding support for it + tests please feel free to fork and/or send a PR 👍 happy to review.

hraban avatar Apr 30 '25 06:04 hraban

Sounds about right. I haven't needed it but if you feel like adding support for it + tests please feel free to fork and/or send a PR 👍 happy to review.

Hi, I’ve added support for Constant Bitrate (CBR) and submitted PR #62. Looking forward to your feedback. Thanks!

wys1024 avatar Jun 17 '25 08:06 wys1024