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: "Convert" function - keeping filename and directo (Read 6832 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

"Convert" function - keeping filename and directo

I am trying to use foobar2000 0.9.3 to convert freshly-ripped flac albums into ogg files. The tracks are all separate, that is, these are not album images I am talking about.

Each album has a folder, with each song inside. Something like this:

    E:\music (temp)\Wilco\2002 - Yankee Hotel Foxtrot\07 - Heavy metal drummer.flac

Now, I want to convert these songs to ogg and have the new ogg files stay in the same directory structure, but in a different root directory. Like this:

    E:\music (ogg)\Wilco\2002 - Yankee Hotel Foxtrot\07 - Heavy metal drummer.ogg

I used to be able to accomplish this in a previous version of foobar2000 with this naming script:

    $if2(%artist%,)\$if2(%date%,) - $if2(%album%,)\%_filename%

But this won't work now. It doesn't create the necessary directories.

Any help? Thanks very much!

"Convert" function - keeping filename and directo

Reply #1
I use this :
Code: [Select]
[%genre%/][%style%/][$if3(%album artist%,%va%,%performer%,%artist%,%composer%)/][%album%/][$num(%tracknumber%,2). ][%track artist% - ][%composer% - ]$replace(%title%,_,-)

"Convert" function - keeping filename and directo

Reply #2
Insert this into the Converter's "Single tracks" option:

Code: [Select]
$replace(%path%,'E:\music (temp)',,%filename_ext%,%filename%)

Right click - Convert to - select your destination folder (e.g. "E:\music (ogg)")

"Convert" function - keeping filename and directo

Reply #3
@Frank_Bicking: That worked flawlessly. Thank you very much!

@Shade[ST]: I didn't actually try yours, because Frank's was shorter and easier to understand. But thanks for helping!

"Convert" function - keeping filename and directo

Reply #4
I used to use (fbk 0.8) something similar... I'd select my destination folder and the converter would create folders for me based on the tags / data... I used this string : %artist% -- %date% -- %album% -- TC\%_filename%

I'm not a coder, but this no longer works... Frank's method is closer to what I want but not quiet there... Help would be appreciated... Cheers!

EDIT: It appears to work only when selecting a bunch of files... Not sure how many are necessary for this to work... Tried selecting single files at random, then two files, etc... But bascially you only get the choice to choose a folder destination when you select the whole album... Is that right? Seems a tad bizzare...

"Convert" function - keeping filename and directo

Reply #5
You just need to select two or more I believe.

Edit: Argh! Spelling mistake in ten words...
I'm on a horse.