Mailinglist Archive: opensuse (3139 mails)
| < Previous | Next > |
Re: [SLE] MP3 player - playing order of files
- From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
- Date: Tue, 3 Oct 2006 23:07:02 +0000 (UTC)
- Message-id: <Pine.LNX.4.64.0610040052470.17556@xxxxxxxxxxxxxxxx>
-----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-----
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-----
| < Previous | Next > |