Help - Search - Members - Calendar
Full Version: Plugin request: "Copy files to..."
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
upNorth
From time to time I make a CD with mp3s for my portable mp3 player. As I want to leave the originals alone I make a copy of each track in a new directory before I start to prepare them (retag, mp3gain, rename...). This can take quite a lot of time if a large amount of the files are from different albums as I have to find every single file (using "Open direcory" in the context menu most of the time).

A plugin that could make a copy of each file in a playlist or selection at a desired destination, would make this alot easier. This would be very similar to the diskwriter, except that it would not do anything to the files.

Any thoughts or possible workarounds would be appreciated. Keep in mind that I want to prepare them before I burn them...
smithore
Very good idea, i think it can be add directly in the diskwriter plug-in...
tigre
Masstagger can already do this.


[edit]Oops - Seems like it can't. The files I've used for trying this are removed from their original position, so it can't copy, just move. Anyway my question remains ...:[/edit]

I have a related question:

How can I add fb2k's playlist number (%_playlist_number%) in front of filenames using masstagger?

Explanation: I create mp3CDs for portable use. To apply replaygain etc. I need to copy all files to a seperate directory. Because my portable + car mp3 player sort by filename I need to rename the files as well to get the playback order I want, adding 001, 002, 003 etc in front of the filename.

I've tried Output file format = "$num(%_playlist_number%,3) %_filename%" but it doesn't work. Obviously %tracknumber% doesn't return what I want either.
Jan S.
Can you make an example of original filename and what you want?
tigre
Sure ...

Original filenames (fb2k playlist order = order I want them on CD):

"02 - Before You Accuse Me.mp3"
"07 - Layla.mp3"
"01 - La Ultima Noche.mp3"
"02 - Amazing Grace.mp3"
(obviously taken from different albums)


Burned like this the playback order would be:

"01 - La Ultima Noche.mp3"
"02 - Amazing Grace.mp3"
"02 - Before You Accuse Me.mp3"
"07 - Layla.mp3"


What I want:

"001 02 - Before You Accuse Me.mp3"
"002 07 - Layla.mp3"
"003 01 - La Ultima Noche.mp3"
"004 02 - Amazing Grace.mp3"
bbt-hh
@tigre

Load the files from your temp directory.
Sort them the way you want.
Run masstagger - auto track number.
Rename your files beginning with $num(%tracknumber%,3).

Voila.
Jan S.
Yeah.. that seems to be the only way since playlist number doesn't work outside the playlist.
tigre
QUOTE(bbt-hh @ Nov 2 2003, 03:55 AM)
@tigre

Load the files from your temp directory.
Sort them the way you want.
Run masstagger - auto track number.
Rename your files beginning with $num(%tracknumber%,3).

Voila.

Thanks. I didn't know "auto track number". Using this function even the original track numbers can be kept:

Load the files from your temp directory.
Sort them the way you want.
Run masstagger - copy value - TRACKNUMBER -> e.g. TEMP
Run masstagger - auto track number.
Rename your files beginning with $num(%tracknumber%,3).
Run masstagger - copy value - TEMP -> TRACKNUMBER
Run masstagger - remove field -> TEMP

Only thing that still misses: "Copy files to..." as Topic title says.
upNorth
QUOTE(tigre @ Nov 2 2003, 03:56 PM)
Load the files from your temp directory.
Sort them the way you want.
Run masstagger - copy value - TRACKNUMBER -> e.g. TEMP
Run masstagger - auto track number.
Rename your files beginning with $num(%tracknumber%,3).
Run masstagger - copy value - TEMP -> TRACKNUMBER
Run masstagger - remove field -> TEMP

There might be some problems I'm not aware of, but this sounds like a really simple Diskwriter plugin. Simply pass the files through with the appropriate "Output filenaming formatting". That would reduce six of the above steps to one.

I'm sure Case has enough to do already, but if he or someone else could make something like this some time in the future, it would be appreciated.
Florian
I don't know, if I understand you correctly but I always use the copy command with this formatting
CODE
copy "%_path%" "$char(37)TMP$char(37)\$num(%_playlist_number%,2) %_filename_ext%"
and paste this in a batch file.

This will copy all selected files to your temp folder and prefix the filename with the playlist index.

Regards,
~ Florian
kode54
Did everyone forget the default diskwriter output filename formatting?

QUOTE
$num(%_diskwriter_index%,3) %_filename%
tigre
QUOTE(kode54 @ Nov 2 2003, 03:10 PM)
Did everyone forget the default diskwriter output filename formatting?

QUOTE
$num(%_diskwriter_index%,3) %_filename%

Using diskwriter would decode to .wav (or convert to some compressed format), wouldn't it?

What's needed here is just copying mp3 all mp3 files from a playlist to a separate directory. Have I missed something?
tigre
QUOTE(ganymed @ Nov 2 2003, 08:02 AM)
I don't know, if I understand you correctly but I always use the copy command with this formatting
CODE
copy "%_path%" "$char(37)TMP$char(37)\$num(%_playlist_number%,2) %_filename_ext%"
and paste this in a batch file.

This will copy all selected files to your temp folder and prefix the filename with the playlist index.

Regards,
~ Florian

I'm sorry - I don't understand how this works. Could you expain in a more detailed way, please? What kind of batch file are you talking about? And how do you use it?
Florian
QUOTE(tigre @ Nov 3 2003, 01:31 AM)
QUOTE(ganymed @ Nov 2 2003, 08:02 AM)
I don't know, if I understand you correctly but I always use the copy command with this formatting
CODE
copy "%_path%" "$char(37)TMP$char(37)\$num(%_playlist_number%,2) %_filename_ext%"
and paste this in a batch file.

This will copy all selected files to your temp folder and prefix the filename with the playlist index.

Regards,
~ Florian

I'm sorry - I don't understand how this works. Could you expain in a more detailed way, please? What kind of batch file are you talking about? And how do you use it?

To copy all selected files in my playlist to a certain destination folder, I've changed the Copy command at Preferences, Display, Title formatting to the string above.

When pressing the Ctrl+C hotkey combination, fb2k will copy the file information of the selected files to the clipboard using the above formatting string.

After that, I'm pasting the text from the clipboard to a file called temp.bat using the Ctrl+V hotkey combination. This file is a so called batch-file (because it has the bat-extension and is executable by windows). When double-clicking this file, windows will run the commands in this file.

In my special case, there are only some copy commands with different source- and target-filenames. It will copy all selected files to your temp-directory while prefixing the source-filename with the playlist index.
But I can also think of a total new filename scheme (using the other meta-data placeholders) which can easily be used at Guess values from filename....

Regards,
~ Florian
tigre
QUOTE(ganymed @ Nov 3 2003, 12:48 AM)
To copy all selected files in my playlist to a certain destination folder, I've changed the Copy command at Preferences, Display, Title formatting to the string above.

Aaah ... this is the 'secret' wink.gif I didn't know. Thanks.
juglesh
cool, works great. i'm just using
CODE
copy "%_path%" "G:\temp\%_filename_ext%"
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.