IPB

Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

How to sort tracks / folders on SD-Cards, USB-Sticks?
Dirki
post Nov 19 2012, 19:11
Post #1





Group: Members
Posts: 85
Joined: 31-October 09
Member No.: 74494



Is there a tool / add on / an option to sort files / folders on SD-Cards, USB-Sticks etc. to play the tracks in the desired arrangement on a CD-Player, MP3-Player, car radio etc.?


--------------------
Win 7, Win Vista, newest stable foobar & EAC & Cue-Tools
Go to the top of the page
+Quote Post
 
Start new topic
Replies
Dynamic
post Nov 20 2012, 17:00
Post #2





Group: Members
Posts: 808
Joined: 17-September 06
Member No.: 35307



Do you have limitations such as file name length being 8 characters? If not, things are easier.

Do all your devices play strictly in alphabetical order or if you copy an extra file beginning with A after all the rest, will it play at the end (meaning that Windows happened to just copy the files over in alphabetical order and the devices play them in order of being written to the disk)?

What will go into folder 1, folder 2 etc if you use that numbering scheme (or better 0001 to 0002 to match alphabetical order to numeric order? It sounds like you have certain playlist you'd like in each folder, but it is not anything like the first 100 tracks, the second 100 tracks etc, or all tracks from the same album. Any examples to help us understand?

If you drag the files into the order you want in a foobar2000 playlist and sort or randomize and drag them into a suitable order it's possible to select those files you want in a single folder and run the File Operations/Copy... (or indeed the Convert option in similar fashion) and change the title formatting string manually to include a new folder name or number.

Or it's possible to come up with other folder names or numbers from parts or the whole of the metadata or the playlist position %list_index%. I think you can do things like integer division and derive folder names, so for example you can put n tracks into every playlist by dividing %list_index% by n to derive your folder number.

In my example, all going into one folder so it would play continuously, I had room for about 650 tracks so I used %list_index% and chose only the third character from the right (the 'hundreds' digit) so I had separate filenames written to my SD card even when the same track was repeated in my Christmas playlist over 100 songs after it was last played. I also used only 5 characters from the %title% and up to two initials from the %artist% to separate files that otherwise might have the same 8.3 format filenames. I also used the $replace function to remove illegal characters that aren't permitted in file names in the disk system I was using.

If you can use more than 8.3 characters (or 11 for folder names) you might be able to use some other tag field that separates the file you want in different folders and also get foobar to sort them into a suitable order so that they are written to the flash drive in the right order.

If there's no pattern or tagging to allow it to be automated in any way, you can simply sort your playlist using any mixture of automatic sort patterns and manual drag & drop moving and copy a selected group of tracks semi-manually to the folder in order and if it must be alphabetically sorted to append numbers to the front of the file name within that manually typed folder name but some automation on the track titling within that folder.

For example supposing 41 tracks were what you consider Cheesy Pop Songs and your Flash Drive is drive G: after selecting those 41 songs in your playlist you can manually enter a number (to put that folder first) and a suitable title.

For example something along the lines of:
Destination folder:
G:\01 Cheesy Pop Songs
File Name Pattern:
%list_index% - %title% - %artist%
and uncheck the "copy entire source folder" box.

Then as it's the first bunch of songs, they'll be numbered 01 to 41 which makes the alphabetical order work. Once copied, you could remove the selected songs from the playlist so that the next song will now be list_index 01, and select the next bunch of songs. Then edit the destination line along these lines:

G:\02 Alt Rock
%list_index% - %title% - %artist%
and run the copy function again. Rinse & repeat as required.

But, if you can automate things like the folder naming using Genre, Year, Artist tags etc depending how you want to divide into folders, then you could probably make the whole thing run once and filter the whole lot into the right folders automatically. It really depends if there's structure to it or most of it is on a whim.

E.g. you'd then use G:\ as the destination folder and use the \ within the naming format box to separate folders, subfolders and file name formats, e.g.

File Name Pattern:
%genre% '('%date%')'\%list_index% %title% - %artist%

to obtain things like:
G:\Rock (1979)\048 Another Brick In The Wall (part 2) - Pink Floyd

if that's the sort of way you wanted to organise things (unlikely in the specifics, but you get the idea of how you can build upon the syntax).

You can do similar things in the Convert dialogue if you have lossless files to start with and wish to convert them, though multi-threaded conversion may muck up the order of file-writing, it it's enabled.
Go to the top of the page
+Quote Post
Dirki
post Nov 21 2012, 03:25
Post #3





Group: Members
Posts: 85
Joined: 31-October 09
Member No.: 74494



QUOTE
Do you have limitations such as file name length being 8 characters? If not, things are easier.

I didn't notice any so far, long file names work.

QUOTE
Do all your devices play strictly in alphabetical order or if you copy an extra file beginning with A after all the rest, will it play at the end (meaning that Windows happened to just copy the files over in alphabetical order and the devices play them in order of being written to the disk)?

At the moment - I don't have any devices to test - I am not sure about the order of the tracks, but if I am right, the tracks are played in the right, desired order, starting e.g. with 0 (Zero) to 1, 2, 3 and so on or alphabetical. Ah yes, at the beginning these folders called 1, 2, 3 till e.g. 60 were played in the right order, but after having added a new folder named e.g. "5" I replaced with the old folder "5", "5" was played at the end, if I remember right. Yes, the devices play them in order of being written to the disk obviously.

QUOTE
What will go into folder 1, folder 2 etc if you use that numbering scheme (or better 0001 to 0002 to match alphabetical order to numeric order?

All the different kinds of renaming of the folders didn't take any effect, numerical, alphabetical, the order stayed the same. Renaming the tracks I will test the next time.

QUOTE
It sounds like you have certain playlist you'd like in each folder, but it is not anything like the first 100 tracks, the second 100 tracks etc, or all tracks from the same album. Any examples to help us understand?

Am I right, you do not mean the playlist files like m3u (I could not use them, they do not work, if I am right, on these devices) you mean just the order, albums, kind of tracks etc. There are some complete albums I must listen to in the same orders like they are on the albums and there are 2, 3, 4, 5 or 6 tracks or so in a folder without the need to have a special order. E.g. ABC, The Look Of Love or some albums of Dream Theater I would listen to in the same order the tracks are on these albums.
So, I would like to access a special folder, e.g. folder "15" actually containing e.g. the band ABC, but according to having replaced folder "2" with a new folder "2" containing other or more tracks the order of the folders has changed and now folder "2" is the last one which is played and folder "15" now is folder "14", if I see it right.

QUOTE
If you drag the files into the order you want in a foobar2000 playlist and sort or randomize and drag them into a suitable order it's possible to select those files you want in a single folder and run the File Operations/Copy... (or indeed the Convert option in similar fashion) and change the title formatting string manually to include a new folder name or number.

Or it's possible to come up with other folder names or numbers from parts or the whole of the metadata or the playlist position %list_index%. I think you can do things like integer division and derive folder names, so for example you can put n tracks into every playlist by dividing %list_index% by n to derive your folder number.

In my example, all going into one folder so it would play continuously, I had room for about 650 tracks so I used %list_index% and chose only the third character from the right (the 'hundreds' digit) so I had separate filenames written to my SD card even when the same track was repeated in my Christmas playlist over 100 songs after it was last played. I also used only 5 characters from the %title% and up to two initials from the %artist% to separate files that otherwise might have the same 8.3 format filenames. I also used the $replace function to remove illegal characters that aren't permitted in file names in the disk system I was using.

If you can use more than 8.3 characters (or 11 for folder names) you might be able to use some other tag field that separates the file you want in different folders and also get foobar to sort them into a suitable order so that they are written to the flash drive in the right order.

If there's no pattern or tagging to allow it to be automated in any way, you can simply sort your playlist using any mixture of automatic sort patterns and manual drag & drop moving and copy a selected group of tracks semi-manually to the folder in order and if it must be alphabetically sorted to append numbers to the front of the file name within that manually typed folder name but some automation on the track titling within that folder.

For example supposing 41 tracks were what you consider Cheesy Pop Songs and your Flash Drive is drive G: after selecting those 41 songs in your playlist you can manually enter a number (to put that folder first) and a suitable title.

For example something along the lines of:
Destination folder:
G:\01 Cheesy Pop Songs
File Name Pattern:
%list_index% - %title% - %artist%
and uncheck the "copy entire source folder" box.

Then as it's the first bunch of songs, they'll be numbered 01 to 41 which makes the alphabetical order work. Once copied, you could remove the selected songs from the playlist so that the next song will now be list_index 01, and select the next bunch of songs. Then edit the destination line along these lines:

G:\02 Alt Rock
%list_index% - %title% - %artist%
and run the copy function again. Rinse & repeat as required.

But, if you can automate things like the folder naming using Genre, Year, Artist tags etc depending how you want to divide into folders, then you could probably make the whole thing run once and filter the whole lot into the right folders automatically. It really depends if there's structure to it or most of it is on a whim.

E.g. you'd then use G:\ as the destination folder and use the \ within the naming format box to separate folders, subfolders and file name formats, e.g.

File Name Pattern:
%genre% '('%date%')'\%list_index% %title% - %artist%

to obtain things like:
G:\Rock (1979)\048 Another Brick In The Wall (part 2) - Pink Floyd

if that's the sort of way you wanted to organise things (unlikely in the specifics, but you get the idea of how you can build upon the syntax).

You can do similar things in the Convert dialogue if you have lossless files to start with and wish to convert them, though multi-threaded conversion may muck up the order of file-writing, it it's enabled.

OK, that sounds good, one of these methods must work on these devices, I will try this next time. Especially as foobar copies files in the right order to an USB-Stick, Card it should work. I am wondering whether copying with CopyHandler or TeraCopy or FastCopy could work, may be they copy the way foobar can do. I will try also next time.

Many thanks indeed for your ideas and explanations.



--------------------
Win 7, Win Vista, newest stable foobar & EAC & Cue-Tools
Go to the top of the page
+Quote Post

Posts in this topic
- Dirki   How to sort tracks / folders on SD-Cards, USB-Sticks?   Nov 19 2012, 19:11
- - Daeron   You can try using playlists or renaming your files...   Nov 19 2012, 20:23
- - Dirki   Thanks Daeron. Yes, of course, that was one of my...   Nov 19 2012, 20:43
- - Remedial Sound   Could you give a specific example of what you...   Nov 19 2012, 20:57
- - CiTay   There's this old freeware called FolderSort. L...   Nov 19 2012, 21:12
- - lvqcl   http://hem.passagen.se/chsw/fatsort/index.html htt...   Nov 19 2012, 21:12
- - Dirki   Thank you. QUOTE Could you give a specific exampl...   Nov 19 2012, 21:14
- - Dirki   Many thanks. QUOTE There's this old freeware ...   Nov 19 2012, 21:28
- - Dynamic   A good few SD or USB players with an MP3 decoder w...   Nov 20 2012, 01:46
|- - southisup   QUOTE (Dynamic @ Nov 20 2012, 11:46) A go...   Nov 28 2012, 02:48
|- - Dirki   All of that Dynamic suggested / explained works pe...   Dec 28 2012, 16:09
|- - southisup   QUOTE (Dirki @ Dec 29 2012, 02:09) Yes, t...   Jan 3 2013, 02:51
- - Dirki   Many thanks. Sorry, what does fb2k mean? Ah yes, ...   Nov 20 2012, 02:17
- - Dynamic   Foobar2000 = fb2k (the sub-forum you're postin...   Nov 20 2012, 03:21
- - Dirki   QUOTE Foobar2000 = fb2k (the sub-forum you're ...   Nov 20 2012, 10:13
- - Dynamic   Do you have limitations such as file name length b...   Nov 20 2012, 17:00
|- - Dirki   QUOTE Do you have limitations such as file name le...   Nov 21 2012, 03:25
- - Dynamic   It sounds like, within each folder, the contents a...   Nov 22 2012, 02:28
- - Dirki   QUOTE It sounds like, within each folder, the cont...   Nov 22 2012, 03:04
- - Dirki   Thanks, southisup, I couldn't test the ideas ...   Nov 28 2012, 03:13
- - Dirki   Yes, it is Win 7. Thanks again.   Jan 3 2013, 14:49
- - southisup   Quick footnote: I just had to put an audio book o...   Mar 29 2013, 02:52


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 30th August 2014 - 00:46