Reply
Highlighted
SanDisk User
Posts: 56
Registered: ‎07-01-2009

Re: YAPL - a new playlist creator for the FUZE

.pla files are created by WMP et al when in MTP mode, yes, but the Fuze doesn't care which mode it's in when reading files ;-)

 

You can use m3u, and they do have to be created in MSC mode, but they cannot reference both drives in one playlist - you have to use relative paths and put the playlist on one drive or the other, with only files on that drive being in the playlist.

 

.pla can reference files from either drive.

 

D.

 



Oh dear, I appear to have soiled myself. Oxfam won't be pleased.
Highlighted
SanDisk Fanatic
Posts: 213
Registered: ‎08-14-2009

Re: YAPL - a new playlist creator for the FUZE

I'm going to implement playlist creation/edition in video4fuze, and I have some questions:

Which one should I use, .m3u or .pla format, if I want it to be able to create playlists for both mtp and msc connected fuzes?

Could anyone send me (or even better: post) an example .pla file? Are they binary or plain text? I haven't found much information on the net about them... so any help would be apreciated Smiley Wink

Oh, and it would help also a lot if you posted YAPL's playlist-creation code (it shouldn't be a very long code snippet, am I right?)

Tired of Sansa Media Converter? You want to put videos on your fuze but you can't use SMC? Then, check video4fuze

4Gb black fuze v2.02.26 + 8 Gb class 6 µSD
Highlighted
SanDisk User
Posts: 56
Registered: ‎07-01-2009

Re: YAPL - a new playlist creator for the FUZE

[ Edited ]

No problem -

 

you should use .pla format. .m3u cannot contain files from both internal and uSD slot within the same playlist. When the Fuze is connected in MTP mode, the .pla format is the type used by the Fuze itself.

 

There are two files needed for the .pla format. First, is <filename>.pla which is an empty zero byte file. In the same directory, you should add a <filename>.pla.refs file, which contains the songs. One per line, with unix path formats. The internal drive is designated /mmc:0:/ and the uSD slot is /mmc:1:/. the filenames in unix format follow those headers.

 

for example, here's my war-of-the-worlds playlist:

 

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 01 - the eve of the war.mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 02 - horsell common and the heat ray.mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 03 - the artilleryman and the fighting machine.mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 04 - forever autumn.mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 05 - thunder child.mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 06 - the red weed (part 1).mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 07 - the spirit of man.mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 08 - the red weed (part 2).mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 09 - brave new world.mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 10 - dead london.mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 11 - epilogue (part 1).mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 12 - epilogue (part 2).mp3

 

As you can see, it's all stored on the uSD slot.

 

As you asked, here's my playlist creation code in Borland Delphi 5:

 

 

DriveLetter := FuzeStatus.Internal.DriveLetter;

SlotLetter := FuzeStatus.Slot.DriveLetter;

SaveList := TStringlist.Create;

For Idx := 0 To PlayList.Count -1 Do Begin

Str := PlayList[Idx];

Idx2 := 1;

While Idx2 < Length(Str) Do Begin

If Str[Idx2] = '\' Then

Str[Idx2] := '/';

Inc(Idx2);

End;

If Str[1] = DriveLetter Then

Str := '/mmc:0' + Copy(Str, 2, Length(Str))

Else

Str := '/mmc:1' + Copy(Str, 2, Length(Str));

SaveList.Add(Str);

End;

 

 For each playlist item, get the filename. Then convert to unix format paths. Then replace drive letters with the proper assignments. At the end, you have a playlist in the SaveList stringlist. You may or may not find that useful!

 

Any more questions, just ask - but there should be everything you need up there.

 

D. 

 

 

 

Message Edited by Dunny on 09-06-2009 12:14 AM


Oh dear, I appear to have soiled myself. Oxfam won't be pleased.
Highlighted
SanDisk Fanatic
Posts: 213
Registered: ‎08-14-2009

Re: YAPL - a new playlist creator for the FUZE

Oh, thank you very much!

One last question: the .pla.refs file has to have DOS line endings, I assume, right?

 

I'll start implementing this right now Smiley Happy


Tired of Sansa Media Converter? You want to put videos on your fuze but you can't use SMC? Then, check video4fuze

4Gb black fuze v2.02.26 + 8 Gb class 6 µSD
Highlighted
SanDisk User
Posts: 56
Registered: ‎07-01-2009

Re: YAPL - a new playlist creator for the FUZE

Yes, DOS CR+LF endings are a must. Glad to be of help!

 

Question - are you going to include ID3/Vorbis/WMA tag editing?

 

D.

 



Oh dear, I appear to have soiled myself. Oxfam won't be pleased.
Highlighted
SanDisk Fanatic
Posts: 213
Registered: ‎08-14-2009

Re: YAPL - a new playlist creator for the FUZE

Tag editing is not planned, as I think there are already very good programs for that (see easytag). But it wouldn't be hard to implement, if there's demand of it.

Tired of Sansa Media Converter? You want to put videos on your fuze but you can't use SMC? Then, check video4fuze

4Gb black fuze v2.02.26 + 8 Gb class 6 µSD
Highlighted
Newbie
Posts: 4
Registered: ‎10-31-2009

Re: YAPL - a new playlist creator for the FUZE

  I've downloaded and tried YAPL v.04 and v.03 and can't get them to work. I am running Vista, and have installed the lastest firmware on my 4 gb Fuze due to the horrible sound quality when I first purchased it. My Problem with YAPL started with V.03 not recognizing the tracks on my Fuze, it did however recognize that it was 81% full. So I tried v.04 and the same thing... Now when I start either version and then plug in my Fuze, it freezes....Oh and now its not even recognizing my 8gb miniSD card anymore. Any help with my issues with YAPL will be greatly appreciated.... Thank You.