Rockbox

Tasklist

FS#12965 - Music file does not playing because the character length limit in the path to the file

Attached to Project: Rockbox
Opened by Chuck Kerry (anon19546) - Saturday, 29 March 2014, 15:22 GMT
Task Type Bugs
Category Operating System/Drivers
Status Unconfirmed
Assigned To No-one
Operating System iPod 5G
Severity Medium
Priority Normal
Reported Version Release 3.13
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Hi, thanks for such awesome project!..

But I have probably found a bug. When I want to play such music file (that's the first in the directory):

E:\Music\Aleksandr Shherbina\# Aleksandr Shherbina i mul'ti-bjend PAYZY IM. STANISLAVSKOGO - live-programma Zhivye na Nashem Radio (27.3.2014) [ogg]\01. Mjortvaja ryba.ogg

it does not playing, and Rockbox skipping directly to the 3rd file in the directory:

E:\Music\Aleksandr Shherbina\# Aleksandr Shherbina i mul'ti-bjend PAYZY IM. STANISLAVSKOGO - live-programma Zhivye na Nashem Radio (27.3.2014) [ogg]\03. Arabika.ogg

I think there's a character lenght limit. Can we fix it?..
Thanks in advance,
This task depends upon

Comment by MichaelGiacomelli (saratoga) - Sunday, 30 March 2014, 03:47 GMT
There is a limit of 255 characters per file path/name in FAT32 (per Microsoft). Paths up to this length should work, but longer will not.
Comment by Thomas Martitz (kugel.) - Monday, 31 March 2014, 09:33 GMT
The longer path is just 172 chars so it should work.
Comment by Michael Sevakis (MikeS) - Thursday, 03 April 2014, 15:24 GMT
Maybe there's something wrong with the files or their compatibility. It would be good to rule that out, maybe by copying the files that won't play into the root directory and attempting to play them from that location.

edit: they're -> their
Comment by Alexander Levin (fml2) - Saturday, 02 August 2014, 16:38 GMT
Even if the file name is too long (acc. to the FAT spec) but some tool managed to copy it, Rockbox should use it short (aka "DOS") name (8 chars long) when reading the directory. I'm not sure though whether file reading functions work correctly with such names.

@anon19546: Do you try to play the files from the browser or from the DB?
Comment by Michael Sevakis (MikeS) - Saturday, 02 August 2014, 20:03 GMT
Atually, it won't use the short name to find anything. It really couldn't anyway if given only a long one since it would not be able to determine which short name was really the correct one. Anyway, that path should be no issue for lower-level stuff. The playlist code should strip the drive letter and then directories off the front until it matches something.

Loading...