How does one convert CSV to M3U?

Posted by: jamville

How does one convert CSV to M3U? - 28/04/2003 00:01

With Emplode 2.0 you can export to a csv. And/or you can import from a m3u.

If you want to use one play list on two or more Mk2a's, how do you go about it?

Thank you,
Posted by: simspos

Re: How does one convert CSV to M3U? - 28/04/2003 00:36

The m3u file is just a text file (I think!), so you could just grap the appropriate listing from the csv file and do a little "manual manipulation" (examine the structure of a working m3u file first and you shouldn't go far wrong)

Tedious but should work as long a you only want to do the odd playlist

Cheers, Sim
Posted by: Roger

Re: How does one convert CSV to M3U? - 28/04/2003 06:15

It ain't that easy -- the CSV file lists the contents of playlists by FID. If you wanted to convert this into an M3U (which is a list of files), you'd have to convert each of those FIDs back to the original filename. This isn't going to be easy -- we don't keep the original filenames around.

Frankly, you're better off either not bothering, or keeping the two empegs completely in sync. See this or this.
Posted by: simspos

Re: How does one convert CSV to M3U? - 28/04/2003 06:47


Sheesh, I knew my logic would be flawed somewhere, completely forgot the filenames are lost on import to the empeg.

Like Roger said, it ain't easy.

Cheers, Sim
Posted by: tfabris

Re: How does one convert CSV to M3U? - 28/04/2003 10:39

Yup, apples and oranges.

To restate what's been said: The CSV from Emplode doesn't contain the same data as an M3U file would need.

CSV: The internal track database of the car player, which knows nothing about your PC.
M3U: A list of file names on your PC's hard drive, which knows nothing about the tracks on your player.

However, you can download all the songs off your player onto the PC, then you can use a DOS batch file with a carefully formatted DIR command to create one big M3U of all the subdirectories.
Posted by: SumnerHayes

Re: How does one convert CSV to M3U? - 28/04/2003 14:17

However, you can download all the songs off your player onto the PC, then you can use a DOS batch file with a carefully formatted DIR command to create one big M3U of all the subdirectories.


Unix-style file utilities are a godsend for this sort of thing--you can get the Cygwin stuff (Unix utils for Windows) for free from http://www.cygwin.com/ .

Then it's just:
find . -name '*.mp3' -type f | sort > allfiles.m3u

and you'll have an m3u of all the mp3 files under the current directory. You can get a lot more sophisticated than this without needing to learn much more than the options to find and a bash for loop.

Sumner
Posted by: jamville

Re: How does one convert CSV to M3U? - 28/04/2003 23:26

Thanks for all your input guys.