Help - Search - Members - Calendar
Full Version: Encoder String for Playlist?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
indybrett
I've looked through a lot of the samples, but I can't find a string that will display what encode was used? Is there one? Something that will show if it's MPC, Vorbis, etc.

Artist - Album - Title - Musepack

Better yet, is there a reference that lists all of the possible formatting tags? I have the one from Case's site.
Molgrew
...\yourfoobar2000directory\titleformat_help.html



%__codec% is what you're looking for
indybrett
Good grief. I feel stupid for not knowing that was there huh.gif

Thanks.

Edit: %__codec% isn't even listed in that document, but it certainly works. Guess there are some "undocumented" tags.
Molgrew
There is a line that says

"%__fieldname% | inserts tech info field named <fieldname> | %__bitrate%"

when you go on properties of a file you have that Technical info part on the right with stuff like

bitrate = 217
channels = 2
samplerate = 44100
bitrate_nominal = 244
codec = Vorbis
...

that's what it is referring to
Lyx
if you want codec-display even for formats which dont report the %__codec% string, you could take a look at my style at the fb2k formatting site:
http://pelit.koillismaa.fi/fb2k/strings.php?f=47

In the playlist string, you'll find a large part called "detection core".... and near the end of it, the filetype gets detected, in short version (i.e. MP3) and long version (i.e. MPEG Layer 3). If you want, you can use that part of the code for your own string. If you're later going to publish your string in the forums or the formatting site, please give credits to me smile.gif
foosion
If you want a simple solution even for files without a codec field in tech info, you can use $codec().
Lyx
QUOTE(foosion @ Mar 9 2004, 04:19 PM)
If you want a simple solution even for files without a codec field in tech info, you can use $codec().

hey, i didn't knew about that yet - thanks for the hint foosion :)
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.