Help - Search - Members - Calendar
Full Version: Formatting - Status bar
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
Arheos
Hello,
I hope this is the right thread for this kind of question.
Can someone tell me what is wrong with this?
CODE

$if($stricmp(%__codec%,mp3),$if(($stricmp($substr(%codec_profile%,1,3),vbr)),VBR,CBR))

It's supposed to return VBR or CBR according to %codec_profile% and I am trying this because usually the %extrainfo% isn't there.
BTW which encoder works correctly with %extrainfo%? lame 0.97 beta2 doesn't (with no other parameters), of am I doing something wrong?
Thanks
thuan
%extrainfo% is deprecated as of foobar 0.9.4. Don't know what's wrong with the tagz string you posted it works fine here. Maybe try this:
CODE
$if($strcmp(%codec%,MP3),$left(%codec_profile%,3) )
kockroach
QUOTE(Arheos @ Oct 3 2006, 11:26) *

CODE

$if($stricmp(%__codec%,mp3),$if(($stricmp($substr(%codec_profile%,1,3),vbr)),VBR,CBR))


I think you have too many parentheses. Try this:
CODE

$if($stricmp(%__codec%,mp3),$if($stricmp($substr(%codec_profile%,1,3),vbr),VBR,CBR))
Arheos
Thank you both.
@thuan: Cheers, I didn't now that about %extrainfo%
@kockroach: Right, now that's beyond me! It actually works the same with or without the extra parentheses.
I don't know why it didn't before.
I restarted it and without even checking first, I tried your "light" version, it worked and then reverted to mine just to check and it still worked, even though when I posted it didn't.
Sometimes on the "preview" it gets stuck (too many changes?) even after apllying any initial string that was originally there.
Or maybe I shouldn't mix beer with coffee.
Thanks very much.
Pilzfuss
Hi there,

please help me.
How can I get foobar2000 to show the average bitrate at the status bar?
I tried something stupid like this:
$div(%filesize%,%length_seconds%,128)kbps
128=1024/8 (byte -> Kbit) calculation
It shows 187 on 192 cbr mp3s so there's something wrong.

I'd like to have it shown only if the bitrate is variable.



TIA
Pilzfuss


edit
Paweł
You should use $info(bitrate)
Pilzfuss
It works.

Thanx heaps smile.gif
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-2008 Invision Power Services, Inc.