Help - Search - Members - Calendar
Full Version: Average bitrate in folder name
Mp3tag Forums > Mp3tag - International > General Discussion
okram
Hi, I'm looking for the solution to make a mass change of my folder names to include also a bitrate information. Something like this:

if VBR \Dark Side of the Moon [VBR 234]\01 - Breathe
else \Dark Side of the Moon [320]\01 - Breathe

The following format string does not work
\%artist%\$if("%_vbr%","VBR","%_bitrate%")\$num(%track%,2) - %title%

What do I do wrong? Thanks!
drbeachboy
Hopefully, this expression should work:

%artist%\%album% '['$if2(%_vbr%,) %_bitrate%']'\$num(%track%,2) - %title%
drbeachboy
You can also use this one if you really don't want "CBR" in your folder names.

%artist%\%album% '['[$if2($replace(%_vbr%,CBR),) ]%bitrate%']'\$num(%track%,2) - %title%
okram
QUOTE (drbeachboy @ Apr 9 2009, 22:40) *
You can also use this one if you really don't want "CBR" in your folder names.

%artist%\%album% '['[$if2($replace(%_vbr%,CBR),) ]%bitrate%']'\$num(%track%,2) - %title%


Sorry but I can't figure it out. It returns something like this (for VBR and CBR):

"\ACDC\The Very Best\01 - Hard As Rock.mp3" ->
"\ACDC\The Very Best [ ]\01 - Hard As Rock .mp3"
drbeachboy
What version of LAME are you using? Older versions don't show codec profile information. Neither do some other mp3 encoders. Most of my mp3's are LAME 3.97 through 3.98.2 and the codec profile info is in there, and the tagz info that I gave you yesterday worked fine with those files encoded with the newer versions.
drbeachboy
Try this one:

\%artist%\%album% '['[$replace(%_vbr%,CBR,)] %_bitrate%']'\$num(%track%,2) - %title%
DetlevD
The Formatstring

%TITLE%[ '['$if($eql(%_vbr%,'VBR'),'VBR '%_bitrate%,%_bitrate%)']']

results to e. g.
for CBR: Palomino [128]
for VBR: Palomino [VBR 233]

... or just even better (based on drbeachboy's example from above)

[%TITLE%' ']['['[$replace(%_vbr%' ','CBR ',%DUMMY%)]%_bitrate%']']

DD.20090410.2120.CEST
Edit.DD.20120714.1618.CEST
okram
Hi, thanks! Both last two expressions work, but in case of VBR they create for each file with different bitrate a new folder, so several folders with one file. I thought %_bitrate% should actually show album average bitrate.

Sorry if I miss something. :-)
DetlevD
Mp3tag offers %_vbr% and %_bitrate% system variables on a per file basis.

So it makes no sense to use these values when renaming folders.

DD.20090410.2133.CEST
okram
QUOTE (DetlevD @ Apr 10 2009, 21:33) *
Mp3tag offers %_vbr% and %_bitrate% system variables on a per file basis.

So it makes no sense to use these values when renaming folders.

DD.20090410.2133.CEST


I read that %_bitrate% also returns the average bitrate of a VBR file in this old thread:

http://forums.mp3tag.de/index.php?showtopi...average+bitrate

Is this still true ?
okram
QUOTE (okram @ Apr 10 2009, 21:42) *
I read that %_bitrate% also returns the average bitrate of a VBR file in this old thread:

http://forums.mp3tag.de/index.php?showtopi...average+bitrate

Is this still true ?


Can you please confirm that the quoted post was wrong?
Florian
It returns the variable bitrate found in a VBRI header.
garbanzo
so... is average bitrate possible for VBR albums?

i managed to rename CBR fine. but for now, i just set all VBR albums to [VBR].

would love to add average bitrate, but nothing seems to work.

if you have any hints, please let me know!

thanks smile.gif
deafandblind
though this thread is a bit old, I just add one expression based on the ones posted above (thanks a lot to everyone here as I have no idea how to write this sort of thing!! laugh.gif )

if like me you don't want to have your folder name modified (cuz you have other info) and just want the bitrate added to it

e.g:
Artist - Album - year [Japanese Edition] (remastered 20XX)

becomes

Artist - Album - year [Japanese Edition] (remastered 20XX) [320]

choose: Format value

field: _directory
format string: %_directory% '['$if($eql(%_vbr%,'VBR'),VBR %_bitrate%,%_bitrate%)']'

it worked for me book.gif

DetlevD
QUOTE (deafandblind @ Jul 14 2012, 11:56) *
though this thread is a bit old ...
field: _directory
format string: %_directory% '['$if($eql(%_vbr%,'VBR'),VBR %_bitrate%,%_bitrate%)']'
... it worked for me book.gif

Hm, ... it worked for you, but how?

I want to repeat that ...
http://forums.mp3tag.de/index.php?showtopi...ost&p=36927

DD.20120714.1546.CEST
deafandblind
QUOTE (DetlevD @ Jul 14 2012, 21:47) *
Hm, ... it worked for you, but how?

I want to repeat that ...
http://forums.mp3tag.de/index.php?showtopi...ost&p=36927

DD.20120714.1546.CEST

laugh.gif well this ...i dont know! as I said I just changed one of the xpression here a wee bit... but it still works well, I've used it for a while now and use it almost everyday.
all the other expression I used from here were always modifying the name of my folder, which as I explained is something i dont want.

why do you think it shouldnt work (if it's not too technical explain)? or what's the problem...I'm not too sure what your link was intended at...
DetlevD
QUOTE (deafandblind @ Jul 24 2012, 06:44) *
... I just changed one of the xpression here a wee bit... but it still works well, I've used it for a while now and use it almost everyday. ...
all the other expression I used from here were always modifying the name of my folder, which as I explained is something i dont want.
why do you think it shouldnt work (if it's not too technical explain)? or what's the problem...I'm not too sure what your link was intended at...

I understand that you got no problems when renaming a folder in the path to the media file with an appended number of CBR or VBR by formatting the pseudo tag-field _DIRECTORY.

Other user reported problems.
Read there ...
http://forums.mp3tag.de/index.php?showtopi...post&p=9353

DD.20120724.0722.CEST
deafandblind
QUOTE (DetlevD @ Jul 24 2012, 13:28) *
I understand that you got no problems when renaming a folder in the path to the media file with an appended number of CBR or VBR by formatting the pseudo tag-field _DIRECTORY.

Other user reported problems.
Read there ...
http://forums.mp3tag.de/index.php?showtopi...post&p=9353

DD.20120724.0722.CEST



what's explained in this link of yours is rather different from what I do... I just want the bitrate added and my folder unchanged as I said, ...they want to use tag info to create some sort of a foldername template... whatsoever, I have no problem no matter whether the files are CBR or VBR and that's all that matters to me, so if like me people want to add the bitrate and leave all other things unchanged, this expression is great! walkman.gif

DetlevD
QUOTE (deafandblind @ Jul 29 2012, 12:31) *
... I just want the bitrate added and my folder unchanged as I said, ... I have no problem no matter whether the files are CBR or VBR ...

Maybe I have misunderstood your words in post#14 within this thread ...
http://forums.mp3tag.de/index.php?showtopi...ost&p=65223

I want to mention that using a dynamic value like VBR in the name of a folder within a folderpath, when writing to the pseudo tag-field _DIRECTORY, this will result in several new folders, one per each VBR value.
Previously it was certainly always the case ... but maybe I am wrong.
Well, you can check it out for yourself.

DD.20120729.1833.CEST
dano
QUOTE (DetlevD @ Jul 29 2012, 18:36) *
I want to mention that using a dynamic value like VBR in the name of a folder within a folderpath, when writing to the pseudo tag-field _DIRECTORY, this will result in several new folders, one per each VBR value.

No, _DIRECTORY renames the current folder, it does not create new folders. So it works fine for this purpose.

Although it renames the folder with the bitrate of the first file, not the average bitrate of the whole folder. That's not possible without some extra steps with the export tool.
DetlevD
QUOTE (dano @ Jul 30 2012, 08:54) *
No, _DIRECTORY renames the current folder, it does not create new folders. So it works fine for this purpose. ...

huh.gif Well ... obviously I misunderstood the situation.
Ok, I have learned ... when renaming the last/lowest folder object in the folderpath, by formatting the pseudo tag-field _DIRECTORY, this results only into renaming of this folder not moving.
Thank you Dano, to bring this to my attention again!

DD.20120730.1043.CEST
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.