Hello all: This question maybe OT but is related to linux: I've got an MP3 player that plays mp3 files in a strange order, not alphabetically. I've mounted the player and tried different listings by ls. I found that the player plays the songs in the order of the inode numbers:
ls -li|sort command gives the same order as the player plays the files.
Now I have two questions: 1. The player's filesystem (SD card) is vfat. Are there inode numbers in a vfat filesystem? 2. How could I change these numbers of the files so that their order would correspond to the alphabetical names of the files? Thanks, IG _______________________________________________________________________ FotoMarket - digitális fotókidolgozás már 25 Ft-tól. http://ad.adverticum.net/b/cl,1,6022,99786,162268/click.prm
On Tue, 2006-10-03 at 23:50 +0200, Istvan Gabor wrote:
Now I have two questions:
1. The player's filesystem (SD card) is vfat. Are there inode numbers in a vfat filesystem?
Sorry, don't know :)
2. How could I change these numbers of the files so that their order would correspond to the alphabetical names of the files?
I'm sure experts will leap in with the correct answer, but I'll bet a pint of beer that if you format the card and then copy the files to it in alphabetical order, they'll appear in alphabetic order in the playlist. Cheers, Dave
On Wednesday 04 October 2006 00:01, Dave Howorth wrote:
On Tue, 2006-10-03 at 23:50 +0200, Istvan Gabor wrote: ...
2. How could I change these numbers of the files so that their order would correspond to the alphabetical names of the files?
I'm sure experts will leap in with the correct answer, but I'll bet a pint of beer that if you format the card and then copy the files to it in alphabetical order, they'll appear in alphabetic order in the playlist.
And i'll add to that and bet that that's mostly right, but that the inode sorting is just a coincidence, and that it's actually sorting by timestamp. The files, if all copied one after the other, are likely (but not guaranteed) to get ascending inode numbers as well as the obvious ascending timestamps. Like Dave suggested, copying them in alphabetical order should do the trick (a reformat shouldn't be needed), but i'd bet another liter of beer (we don't have pints in Germany) that it's nothing to do with the inode numbers, but with the timestamps. You may be able to 'touch' each file to change the play order, instead of re-copying the files. -- ----- stephan@s11n.net http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2006-10-03 at 23:50 +0200, Istvan Gabor wrote:
I've mounted the player and tried different listings by ls. I found that the player plays the songs in the order of the inode numbers:
ls -li|sort command gives the same order as the player plays the files.
Now I have two questions:
1. The player's filesystem (SD card) is vfat. Are there inode numbers in a vfat filesystem?
Certainly not.
2. How could I change these numbers of the files so that their order would correspond to the alphabetical names of the files?
The equivalent to inode order in fat would be the fat order, or the directory order itself. If it is the former, it is playing them in the order in which they were saved in the disk, ie, the physical order of the files in the media. The order of the directory entries (shown by mdir) is more complex to predict if files have been erased and recorded at random, but there are utilities in Dos that can change that order: for instance, have a look at the old Norton or PC-Tools utilities (but you need a version that understand long names). There is another possibility: some players use a *.m3u file, which is a text file containing a line for each song with it's full path - in that case, it would play by that order. This is the proper thing to do. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFIu0JtTMYHG2NR9URAu08AJ9X4dPLN/Ven+rGBRMVu3gDSiYjcgCeN4Ap tBG5qf7Lf8FAyQcIeSuAY2g= =yypP -----END PGP SIGNATURE-----
Istvan Gabor wrote:
Hello all:
This question maybe OT but is related to linux:
I've got an MP3 player that plays mp3 files in a strange order, not alphabetically. I've mounted the player and tried different listings by ls. I found that the player plays the songs in the order of the inode numbers:
ls -li|sort
command gives the same order as the player plays the files.
Now I have two questions:
1. The player's filesystem (SD card) is vfat. Are there inode numbers in a vfat filesystem?
2. How could I change these numbers of the files so that their order would correspond to the alphabetical names of the files?
There is a small program in Suse that can help with this. I really don't remember the name of it, I'll check it tonight, but it is something like TAG... It lets you edit the file attributes of audio files, including song name, album, date, genre, and play order (by number). Easy to use, at least in KDE. Sorry I don't remember the name of it, but will send that later when I get to my Suse box. Jim F
Istvan Gabor wrote:
Hello all:
This question maybe OT but is related to linux:
I've got an MP3 player that plays mp3 files in a strange order, not alphabetically. I've mounted the player and tried different listings by ls. I found that the player plays the songs in the order of the inode numbers:
ls -li|sort
command gives the same order as the player plays the files.
Now I have two questions:
1. The player's filesystem (SD card) is vfat. Are there inode numbers in a vfat filesystem?
2. How could I change these numbers of the files so that their order would correspond to the alphabetical names of the files?
I deal with this problem on my mp3 player all the time, since I listen to audio books, and the order of the files is very important. :-) I create a fresh subdirectory [per book] and copy the files to it in the order I want them to play. If I have to change anything, I create a new subdirectory and start over. When you start deleting and adding files, the order gets all screwed up. Normally a "cp *mp3 /media/usbdisk/subdir/" from bash works fine. Graphical file managers may or may not work the same way. I wrote a small shell script that checks to double check the order in the directory is alphabetical: #!/bin/sh set -x cd "${1:-dirname}" || exit set +x ls -1 > /tmp/bsdir1 ls -1U > /tmp/bsdir2 echo echo Checking difference: echo diff -u /tmp/bsdir[12] rm -f /tmp/bsdir[12]
There is a small program in Suse that can help with this. I really don't remember the name of it, I'll check it tonight, but it is something like TAG...
It lets you edit the file attributes of audio files, including song name, album, date, genre, and play order (by number). Easy to use, at least in KDE. Sorry I don't remember the name of it, but will send that later when I get to my Suse box.
"id3v2" is a shell command that views/changes/adds ID3 tags in mp3 files. - BS
On Thursday 05 October 2006 19:54, Jim Flanagan wrote:
There is a small program in Suse that can help with this. I really don't remember the name of it, I'll check it tonight, but it is something like TAG...
Could that be EasyTAG you're after, an excellent program IMHO that I use all the time, it does all that Jim says & more.
It lets you edit the file attributes of audio files, including song name, album, date, genre, and play order (by number). Easy to use, at least in KDE. Sorry I don't remember the name of it, but will send that later when I get to my Suse box.
HTH David -- Windows Sucks! Linux Works! Windows Crashes! Linux Has A.B.S & Airbags!
On Thursday 05 October 2006 15:17, David Rozzell wrote:
There is a small program in Suse that can help with this. I really don't remember the name of it, I'll check it tonight, but it is something like TAG...
Could that be EasyTAG you're after, an excellent program IMHO that I use all the time, it does all that Jim says & more.
Thank you for this!!! About a year and a half ago, I remember using a slick program what would do cddb searches and allow you to rename files based on the search. I didn't use it for a long time and forgot the name... or where I got it. Been looking for it ever since. But I see I have a .easytag directory and that must have been the one..... Thanks!
David Rozzell wrote:
On Thursday 05 October 2006 19:54, Jim Flanagan wrote:
There is a small program in Suse that can help with this. I really don't remember the name of it, I'll check it tonight, but it is something like TAG...
Could that be EasyTAG you're after, an excellent program IMHO that I use all the time, it does all that Jim says & more.
Yup, thats it, EasyTAG. Works great. Jim F
participants (8)
-
Bruce Marshall
-
Bruce Smith
-
Carlos E. R.
-
Dave Howorth
-
David Rozzell
-
Istvan Gabor
-
Jim Flanagan
-
stephan beal