# New user: Constant Bit Rate

**URL:** <https://discourse.beets.io/t/new-user-constant-bit-rate/1184>\
**Category:** Help\
**Created:** [March 29, 2020, 2:30pm UTC](https://discourse.beets.io/t/new-user-constant-bit-rate/1184 "2020-03-29T14:30:34Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sabot\_Du](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@Sabot\_Du](https://discourse.beets.io/u/Sabot_Du)\
**Post date:** [March 29, 2020, 2:30pm UTC](https://discourse.beets.io/t/new-user-constant-bit-rate/1184/1 "2020-03-29T14:30:34Z")

</div>

How do I get constant bit rate instead of variable bit rate in my converted files.

Here is my config.yaml -

directory: /media/lacy/My Book/Music  
library: /media/lacy/My Book/MusicDB/MusicDB.blb

import:  
Copy: no  
Write: no

plugins: convert web

convert:  
auto: yes  
embed: yes  
max\_bitrate: 256

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [March 29, 2020, 3:02pm UTC](https://discourse.beets.io/t/new-user-constant-bit-rate/1184/2 "2020-03-29T15:02:59Z")

</div>

Hello! You will need to use the plugin’s command-line configuration to send the proper flags to the underlying transcoder program (i.e., ffmpeg). For that, you’ll want to try the ffmpeg docs.

---

<div class="post-metadata">

**Author:** ![Sabot\_Du](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@Sabot\_Du](https://discourse.beets.io/u/Sabot_Du)\
**Post date:** [March 29, 2020, 3:31pm UTC](https://discourse.beets.io/t/new-user-constant-bit-rate/1184/3 "2020-03-29T15:31:32Z")

</div>

I’ve tried that, but I keep getting “Failed” when converting. I’ll look over the ffmpeg docs again. Thank you.

---

<div class="post-metadata">

**Author:** ![Sabot\_Du](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@Sabot\_Du](https://discourse.beets.io/u/Sabot_Du)\
**Post date:** [March 29, 2020, 3:58pm UTC](https://discourse.beets.io/t/new-user-constant-bit-rate/1184/4 "2020-03-29T15:58:45Z")

</div>

Ok, I added this under convert:

command: ffmpeg -i $source -y -vn -b:a 256k

It is still failing. Is there a problem with my syntax?

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [March 29, 2020, 8:43pm UTC](https://discourse.beets.io/t/new-user-constant-bit-rate/1184/5 "2020-03-29T20:43:47Z")

</div>

Hi! It’s impossible to say without more details. Can you be specific about exactly what you tried (commands you ran) and what is going wrong (the output you saw)?

It might be helpful to read [this grading rubric for bug reports](https://www.cs.cornell.edu/~asampson/blog/bugrubric.html). The above comment currently scores 1/5.

---

<div class="post-metadata">

**Author:** ![Sabot\_Du](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@Sabot\_Du](https://discourse.beets.io/u/Sabot_Du)\
**Post date:** [March 29, 2020, 9:11pm UTC](https://discourse.beets.io/t/new-user-constant-bit-rate/1184/6 "2020-03-29T21:11:42Z")

</div>

This is my current config.yaml

directory: /media/lacy/My Book/Music  
library: /media/lacy/My Book/MusicDB/MusicDB.blb

import:  
Copy: no  
Write: no

plugins: convert

convert:  
command: ffmpeg -i $source -y -vn -b:a 256k  
auto: yes  
embed: yes  
max\_bitrate: 256

Here is an example of what is happening

Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/05-eurythmics-the\_walk\_(remastered\_version)-90b4b5f4.mp3  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/05-eurythmics-the\_walk\_(remastered\_version)-90b4b5f4.mp3 failed. Cleaning up…  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/15-eurythmics-love\_is\_a\_stranger\_(coldcut\_remix\_-_remastered\_version)-e88adec5.mp3  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/15-eurythmics-love\_is\_a\_stranger\_(coldcut\_remix\_-_remastered\_version)-e88adec5.mp3 failed. Cleaning up…  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/09-eurythmics-somebody\_told\_me\_(remastered\_version)-af870b54.mp3  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/09-eurythmics-somebody\_told\_me\_(remastered\_version)-af870b54.mp3 failed. Cleaning up…  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/14-eurythmics-sweet\_dreams\_(are\_made\_of\_this)_(hot\_remix_-_remastered\_version)-747af1da.mp3  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/14-eurythmics-sweet\_dreams\_(are\_made\_of\_this)_(hot\_remix_-_remastered\_version)-747af1da.mp3 failed. Cleaning up…  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/01-eurythmics-love\_is\_a\_stranger\_(remastered\_version)-f885398e.mp3  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/01-eurythmics-love\_is\_a\_stranger\_(remastered\_version)-f885398e.mp3 failed. Cleaning up…  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/10-eurythmics-this\_city\_never\_sleeps\_(remastered\_version)-033c61d1.mp3  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/10-eurythmics-this\_city\_never\_sleeps\_(remastered\_version)-033c61d1.mp3 failed. Cleaning up…  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/02-eurythmics-ive\_got\_an\_angel\_(remastered\_version)-342c894d.mp3  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/02-eurythmics-ive\_got\_an\_angel\_(remastered\_version)-342c894d.mp3 failed. Cleaning up…  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/03-eurythmics-wrap\_it\_up\_(remastered\_version)-1f4408d2.mp3  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/03-eurythmics-wrap\_it\_up\_(remastered\_version)-1f4408d2.mp3 failed. Cleaning up…  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/08-eurythmics-this\_is\_the\_house\_(remastered\_version)-ab04cb53.mp3  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/08-eurythmics-this\_is\_the\_house\_(remastered\_version)-ab04cb53.mp3 failed. Cleaning up…  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/06-eurythmics-sweet\_dreams\_(are\_made\_of\_this)_(remastered)-934eaa44.mp3  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/06-eurythmics-sweet\_dreams\_(are\_made\_of\_this)_(remastered)-934eaa44.mp3 failed. Cleaning up…  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/04-eurythmics-i\_could\_give\_you\_(a\_mirror)_(remastered\_version)-e6d3b28e.mp3  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/04-eurythmics-i\_could\_give\_you\_(a\_mirror)_(remastered\_version)-e6d3b28e.mp3 failed. Cleaning up…  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/07-eurythmics-jennifer\_(remastered\_version)-1b5a5dce.mp3  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/07-eurythmics-jennifer\_(remastered\_version)-1b5a5dce.mp3 failed. Cleaning up…  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/16-eurythmics-satellite\_of\_love\_(remastered\_version)-07de616c.mp3  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/16-eurythmics-satellite\_of\_love\_(remastered\_version)-07de616c.mp3 failed. Cleaning up…  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/13-eurythmics-babys\_gone\_blue\_(remastered\_version)-dbc4619f.mp3  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/13-eurythmics-babys\_gone\_blue\_(remastered\_version)-dbc4619f.mp3 failed. Cleaning up…  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/12-eurythmics-monkey\_monkey\_(remastered\_version)-c79b8885.mp3  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/12-eurythmics-monkey\_monkey\_(remastered\_version)-c79b8885.mp3 failed. Cleaning up…  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/11-eurythmics-home\_is\_where\_the\_heart\_is\_(remastered\_version)-4c657cb4.mp3  
Encoding /media/lacy/TOSHIBA EXT/M1/Eurythmics-Sweet\_Dreams\_(Are\_Made\_Of\_This)-REMASTERED-WEB-2005-ENTiTLED\_iNT.1/11-eurythmics-home\_is\_where\_the\_heart\_is\_(remastered\_version)-4c657cb4.mp3 failed. Cleaning up…

If I take the line out “command: ffmpeg -i $source -y -vn -b:a 256k” then my output music files are all in variable bit rate.

Am I honestly the only person who has ever asked how to get the converted files in constant bit rate?

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [March 29, 2020, 9:36pm UTC](https://discourse.beets.io/t/new-user-constant-bit-rate/1184/7 "2020-03-29T21:36:02Z")

</div>

Can you please do these two things to make the output more useful:

- Use verbose mode (-vv).
- When pasting, use Markdown code blocks (“preformatted text,” in the Discourse interface).

Also, please include the beets command that you ran.

---

<div class="post-metadata">

**Author:** ![jakabadambalazs](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/jakabadambalazs/32/360_2.png) [@jakabadambalazs](https://discourse.beets.io/u/jakabadambalazs)\
**Post date:** [March 29, 2020, 9:48pm UTC](https://discourse.beets.io/t/new-user-constant-bit-rate/1184/8 "2020-03-29T21:48:50Z")

</div>

Hi @Sabot_Du,

> [@Sabot\_Du](#):
>
> … who has ever asked how to get the converted files in constant bit rate?

well, it is really ffmpeg doing the conversion here and not Beets. What do you get when you do the conversion directly through ffmpeg?

```
ffmpeg -i sweet_dreams.mp3 -y -vn -b:a 256k

```

Does it successfully convert your song?

---

<div class="post-metadata">

**Author:** ![Sabot\_Du](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@Sabot\_Du](https://discourse.beets.io/u/Sabot_Du)\
**Post date:** [March 29, 2020, 9:55pm UTC](https://discourse.beets.io/t/new-user-constant-bit-rate/1184/9 "2020-03-29T21:55:07Z")

</div>

Adrian, if your only goal in life is to make things more difficult than they need to be, then perhaps you should find some other way to spend your time.

---

<div class="post-metadata">

**Author:** ![Sabot\_Du](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@Sabot\_Du](https://discourse.beets.io/u/Sabot_Du)\
**Post date:** [March 29, 2020, 9:58pm UTC](https://discourse.beets.io/t/new-user-constant-bit-rate/1184/10 "2020-03-29T21:58:25Z")

</div>

Thank you Adam, I will try this and see if I can get the syntax correct. Your help is appreciated.

---

<div class="post-metadata">

**Author:** ![jakabadambalazs](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/jakabadambalazs/32/360_2.png) [@jakabadambalazs](https://discourse.beets.io/u/jakabadambalazs)\
**Post date:** [March 30, 2020, 8:17am UTC](https://discourse.beets.io/t/new-user-constant-bit-rate/1184/11 "2020-03-30T08:17:22Z")

</div>

Dear @Sabot_Du,

I think you took @adrian’s reply the wrong way. He was the first one to offer you help (as he most of the time is) and he was just trying to urge you to supply more information so that he/we can give you proper help. Perhaps you were not prepared to get a grade on your current bug report (psst, he is an assistant prof at uni 🤠). Please don’t take it too seriously: it was just a fun way to make you reflect upon it. If it was me I would take it as an opportunity to become a better bug reporter so my issues will get resolved with more ease and in less time in the future. In fact, my suggestion about trying out `ffmpeg` directly was just a shot in the dark because I also feel that there is way too little information to give you any concrete help. I also think your reply to @adrian was impolite.

Let’s get your problem fixed: try to supply as much relevant information to your issue as possible (command you are executing like:`beet -vv convert ...`, the full output of the command, output of `beet config -d`, etc.).

---

<div class="post-metadata">

**Author:** ![Sabot\_Du](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@Sabot\_Du](https://discourse.beets.io/u/Sabot_Du)\
**Post date:** [March 30, 2020, 4:41pm UTC](https://discourse.beets.io/t/new-user-constant-bit-rate/1184/12 "2020-03-30T16:41:59Z")

</div>

You are correct, it was impolite, as it was intended to be.

By repeatedly telling me to reformat a simple question, he came off as both arrogant and rude.

If he can not handle a little criticism in this area, then I will say it again, he should find other ways to spend his time, like refining his code to be more user friendly thus reducing the need for help with such a simple request.

As for the solution, I finally figured it out on my own with much trial and error and with your help about the formating of the ffmpeg command.

After I corrected the formating of the command, it was still not working.

Then I rearranged the lines in config.yaml to the following and finally got it working -

convert:  
max\_bitrate: 256  
auto: yes  
command: ffmpeg -i $source -y -b:a 256k $dest  
extension: mp3

So somewhere in the way that beets is parsing that data, it is sending a corrupted command sequence, if the order of those lines is not correct.

If there is documentation pointing to how each pluggin’s line items should be arranged, I would appreciate the help in finding it.

But if I need to repeat this query seven times in seven different ways, then don’t bother.

Now I do apologize is the criticism has been received poorly, but I spent many years in technical support and as a technical trainer and I can tell you that telling folks you will not answer their question unless they repeatedly ask it in different ways will make people believe one of two things -

```
A. That you don’t know the answer to the question
B. That you are arrogant and condescending
```

---

<div class="post-metadata">

**Author:** ![janpeeters](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/janpeeters/32/182_2.png) [@janpeeters](https://discourse.beets.io/u/janpeeters)\
**Post date:** [April 1, 2020, 7:12pm UTC](https://discourse.beets.io/t/new-user-constant-bit-rate/1184/13 "2020-04-01T19:12:41Z")

</div>

Welcome @Sabot_Du.  
I just wanted to chime in…

I was wondering if you realize that you’re using a free tool in which @adrian and others have put a tremendous amount of time to make your life easier? He’s even willing to provide you with free support. How generous can someone be?

Can he then please (without being called rude, arrogant or condescending) ask you to format your support requests in a way that makes it easier for him to give support?  
If he would go and spend his time otherwise there would be virtually no support on this forum. @jakabadambalazs is a great addition in that respect.

I had to go through a similar adaptation process because I also posted plain text code in the beginning and didn’t post verbose output. I must say it was well worth it for all the support I’ve received over the last year.

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [April 1, 2020, 8:15pm UTC](https://discourse.beets.io/t/new-user-constant-bit-rate/1184/14 "2020-04-01T20:15:32Z")

</div>

Thank you for your help explaining, @jakabadambalazs and @janpeeters. FYI, I have temporarily suspended @Sabot_Du after sending them an “official warning” DM in response to their earlier post making it clear that personal attacks are not allowed on this forum.

---

<div class="post-metadata">

**Author:** ![janpeeters](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/janpeeters/32/182_2.png) [@janpeeters](https://discourse.beets.io/u/janpeeters)\
**Post date:** [April 1, 2020, 8:18pm UTC](https://discourse.beets.io/t/new-user-constant-bit-rate/1184/15 "2020-04-01T20:18:15Z")

</div>

I can understand your decision @adrian. I hope it leads to some self reflection.
