Help - Search - Members - Calendar
Full Version: how to retrieve LAME presets in track_info_mod?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
sune
hi. I am trying to display in a track_info_mod panel all this info I found here in the forums (but prettier tongue.gif)

but the encoding preset (V0, V2, etc) doesn't show. Am I missing a component, maybe? I've searched the forums but I can't figure out why it doesn't display

CODE
// TECH INFO SEPARATOR
$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)T e c h I n f o $get(text1)']'$char(10)

$get(head)Length: $get(info)$if(%_isplaying%,%_time_elapsed%$get(anno)$if(%_length%, / %_length%,)$if(%_length%, / -%_time_remaining%),%_length%)$char(10)
$get(head)Type:$if(%__codec%, $get(info)%__codec%) $get(info)
$if2(%__bitrate_dynamic%,%__bitrate%) $get(anno)Kb/s $if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))
$char(10)
$if(%__lame_version%,$get(head)Preset: $get(info)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$char(10),)
$if(%__flac_vendor%,$get(head)Encoder: $get(info)$if($stricmp(%__flac_vendor%,reference libFLAC 1.1.2 20050205),FLAC 1.1.2 -8)$char(10),)
$if(%__mpc_profile%,$get(head)MPC Profile: $get(info)%__mpc_profile%$char(10),)
$get(head)Compression: $get(info)$div(1411,%__bitrate%).$substr($muldiv(1411,100,%__bitrate%),2,3):1 '('$get(info)$muldiv(%__bitrate%,100,1411)$get(anno)'%)'$char(10)
$get(head)Channels: $get(info)$if($stricmp($codec(),MP3),$get(space2)$caps(%__mp3_stereo_mode%),
$if(%__channels%,$ifgreater(%__channels%,1,Stereo,Mono),'?'))$char(10)
$if(%__bitspersample%,$get(head)Bitdepth: $get(info)%__bitspersample% bits/sample$char(10),)
$if(%__samplerate%,$get(head)Samplerate: $get(info)$div(%__samplerate%,1000).$substr(%__samplerate%,3,3) KHz $char(10))
$if(%_filesize%,$get(head)Filesize: $get(info)
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2) $get(anno)'MB'$char(10),)


anyone can help out?

thanks smile.gif
kanak
%codec_info%

?
sune
both %codec_info% and %__flags% return "?" when I play a V0 file :/

I'm thinking my foobar is probably outdated (v0.9.4)

could this be it? I don't want to update if it won't make any change, cause I'll probably brake something :P

thanks for the fast replies :)

edit: I hadn't read your reply shakey_snake

thanks for the link, I already went through it but nothing (tool,version, flags) seemed to work so I figured I'd ask you expert people :)
shakey_snake
QUOTE(sune @ Jul 1 2008, 04:08) *

I'm thinking my foobar is probably outdated (v0.9.4)

That certainly makes a difference. you might try %__codec_profile% or $info(codec_profile)


It might depend on the version of LAME used to encode the file, as well.
sune
none of those work sad.gif

I guess it's time for un upgrade.

speaking of which, I just have to put everything inside the new foobar folder (components, images, etc) and it should be just the same as it's now?

edit: version of lame is 3.97
shakey_snake
Well, for the record, %__codec_profile%, %codec_profile% and $info(codec_profile) all work with 0.9.5.4 beta 3.
sune
well, of course upgrading wasn't as easy as I thought. some components don't work, like track_info_mod (and I can't live without that one :P)

My foobar only says v0.9.4 (no beta, i think). and I'll stick with it for as long as I can because I am perfectly happy with it :)

If anyone knows of a way to do this LAME preset thing in this early version, please let me know

thanks for the help, everyone :)
2E7AH
try to find f2k 0.9.4.5 or similar 0.9.4.x.
i know that some sites keep outdated versions, i can't recall right now, and nothing will break with your conf.

i think that shakey_snake suggestion should work, but if you say not than try above
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.