Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Use of %path% to add Album-Art to lame mp3s (Read 3843 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Use of %path% to add Album-Art to lame mp3s

Hi All,

First post! ;-)

I'm using foobar to generate mp3s via LAME, using my flac archive as the source.

My flac archive contains album art (folder.jpg) etc.

What I want to do is use lame to add the album art to the mp3 file via its --ti switch.

So the converter options I use in foobar to reference the source folder.jpg is something like:

-V 2 --ti "%path%\folder.jpg" --<other_lame_tag_switches>

However, I see from the command line that foobar generates that %path% is not expanded - and so lame doesn't get to see the folder.jpg file as intended. (Similarly, I can't get any of the directory related %% variables to expand).

Does anyone know how I can get the %path% variable to expand propoerly in the converter command line?

(And separately, is there a way I can view the command line that foobar generates - Currently I can only see it when lame generates an error)

Many thanks for any help!

mickg

Use of %path% to add Album-Art to lame mp3s

Reply #1
Does anyone know how I can get the %path% variable to expand propoerly in the converter command line?

That's not possible.

Quote
And separately, is there a way I can view the command line that foobar generates

It is printed to the console.

Use of %path% to add Album-Art to lame mp3s

Reply #2
Thanks Frank

I notice with interest that other %% variables expand ok in the converter command line, such as %artist% and so on.

Is the lack of %path% expansion a bug with the intention to fix at some point? Or is it a more fundamental limitation (in an otherwise outstanding application) that will never be addressed?

Cheers,
mickg

Use of %path% to add Album-Art to lame mp3s

Reply #3
a simple solution is with foo_run.

Use of %path% to add Album-Art to lame mp3s

Reply #4
a simple solution is with foo_run.

that's the only solution, i think so!?

@mickg: the others are $meta not everywhere accessible, but i also wonder about the %path%

and about the %path% it would be const. won't give you anything if it isn't parsed by some command script

edit: to be more precise %path%\folder.jpg will give you i suppose something like this [drive:\>artist\album\track.mp3\folder.jpg]

Use of %path% to add Album-Art to lame mp3s

Reply #5

a simple solution is with foo_run.

that's the only solution, i think so!?

@mickg: the others are $meta not everywhere accessible, but i also wonder about the %path%

and about the %path% it would be const. won't give you anything if it isn't parsed by some command script

edit: to be more precise %path%\folder.jpg will give you i suppose something like this [drive:\>artist\album\track.mp3\folder.jpg]



Thanks both for the replies

Paradog: I'll definately give foo_run a go - this certainly sounds promising - thanks

2E7AH: Yes, %path% may not have been perfect, but there were other directory related variabes that would have fitted nicely, producing the source path without the filename. (If I could have got them to expand, of course ;-)