HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: h8uthemost on 2010-04-08 06:00:27

Title: Columns UI: Format/Bitrate Column
Post by: h8uthemost on 2010-04-08 06:00:27
Hey guys,

I'm using columns ui. And I was wondering if there was any way to get a format/bitrate column to appear? This is how my columns look like:

(http://lookpic.com/i/516/1lKZ1rm0.png)

As you can see on the column that has artist, title, album, etc, there is not a column that will tell me the format and bitrate of each song. I know it tells you this in the status bar, but a column for it would be nice. And when I right-click on the columns themselves there's no option for a format or bitrate column.

I know under the Default User Interface you can get this to appear. But is there a way to get them to appear under ColumnsUI?

Thanks for any help.
Title: Columns UI: Format/Bitrate Column
Post by: herojoker on 2010-04-08 07:23:20
Right click the columns bar, choose "Edit this column".
Now you see a list of columns and you are free to add new ones (and move them).
Read the Title Formatting Reference (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference) to get the desired variables which you'll fill in the Scripts > Display field of your column(s) (to fully understand it study the entries which are already there).
Title: Columns UI: Format/Bitrate Column
Post by: h8uthemost on 2010-04-08 16:03:37
Thank you herojoker. I appreciate the response.

And yeah, I've tried this Edit This Column option before, but nothing would show up in the actual column. So I was obviously doing something wrong. Hopefully the Title Formatting Reference link that you gave me will help me out.

Thanks again.

EDIT: Ha! That certainly did it. I now have the bitrates being displayed by using the %bitrate% under Scripts, and samething with the format with the %codec%. How simple. I thought I was going to need a specific theme or something to get these to appear.

Thank you again for the help.
Title: Columns UI: Format/Bitrate Column
Post by: vali on 2010-04-09 23:51:01
I am using something like this:

Code: [Select]
%codec% 

$if($stricmp(%__encoding%,lossy),
// lossy codecs

$puts(BITRATE,%__bitrate%)
// change colors to show quality "visually"
$ifgreater($get(BITRATE),170,
$rgb(0,175,0),$ifgreater($get(BITRATE),130,$rgb(150,150,50),$rgb(175,75,50))) %__bitrate%kbit

// Add MP3 aditional info
$if(%__codec_profile%,$abbr(%__codec_profile%) /
$upper($abbr(%__MP3_STEREO_MODE%)))
,

//Lossless
$muldiv(%__bitrate%,1000,
$div($mul(%__samplerate%,%__bitspersample%,%__channels%),100))'%' compr.
)
Title: Re: Columns UI: Format/Bitrate Column
Post by: thejamie on 2016-08-24 09:58:26
I am using something like this:

Code: [Select]
%codec% 

$if($stricmp(%__encoding%,lossy),
// lossy codecs

$puts(BITRATE,%__bitrate%)
// change colors to show quality "visually"
$ifgreater($get(BITRATE),170,
$rgb(0,175,0),$ifgreater($get(BITRATE),130,$rgb(150,150,50),$rgb(175,75,50))) %__bitrate%kbit

// Add MP3 aditional info
$if(%__codec_profile%,$abbr(%__codec_profile%) /
$upper($abbr(%__MP3_STEREO_MODE%)))
,

//Lossless
$muldiv(%__bitrate%,1000,
$div($mul(%__samplerate%,%__bitspersample%,%__channels%),100))'%' compr.
)

I know this is really old but thanks for posting this, I really like this script!