Page 1 of 1

m3u generator?

Posted: Thu Mar 01, 2007 3:10 pm
by moe flam
Does anyone have a neato trick for batch creation of m3u playlist files, where you can point it to a directory, and have it build playlists on a folder by folder/ album basis?

This seems simple and effective, but the m3u is always named the same. This looks powerful, but doesn't seem to support batch creation.

For the first link, I can't figure out the old dir + something verbiage to get it to name the playlist the name of the folder:

**********
echo %~f1
dir /on/b *.mp3 *.ogg > ~nx1.m3u
**********

Posted: Fri Mar 02, 2007 9:26 am
by damaged_one
Not quite what you're looking for but I use MusicIP Mixer. (http://musicip.com). It analyzes all your music (takes forever). Then you can select a song or group of songs and create a mix based on the "mood" of that song (or songs). You can save it as a playlist or send the mix to your favorite player. (you can also play the mix right in the application) The free version is fairly limited but it's only $20 to buy. It's great for work. I can create new playlists on the fly to suite whatever mood I'm in.

Posted: Fri Mar 02, 2007 9:30 am
by miftah
I don't have anything for this but it seems writing a script for it would be simple enough. We're talking about fixed documents and m3us are just text files. But no, I don't know of one.

Incidentally, if anyone knows of a program for forcing a series of multiple mp3s into a single file, I'd be much appreciated if you could send me in that direction.

Posted: Fri Mar 02, 2007 10:06 am
by bio
I just stumbled across this utility. It looks promising.

Posted: Fri Mar 02, 2007 1:37 pm
by moe flam
You're right, it seems simple enough because 'its just text' for playlist files. I'd like the ability to automate each folder/ album in to a playlist, rather than creating them manually. I'm still on the teat of fairuseforwm, so albums are churning in to the collection quickly.

Miftah, I've used Audiograbber for forcing all songs in to one. Only drawback is you have to put them on CD, then it rips them to one file. Outlined here..

Like the playlist thing, I'm sure there's a better answer out there, but that's one I know works.

Posted: Fri Mar 02, 2007 6:10 pm
by ironpants
Ok, I'll admit I don't have a clue what an m3u is, but I'm guessing it's a basic text file from what I've seen in the links. If you could point me at real one, I'm sure I could write up a utility in about an hour.

ROb

Posted: Fri Mar 02, 2007 6:26 pm
by ironpants
Heh, aperrently I'm completely behind the times when it comes to music. I just figured out the format etc. Guess this is what happens when you spend your day looking at sysfont :)

Are all your folders subfolders of the same folder?

ROb

Posted: Mon Mar 05, 2007 12:53 am
by miftah
moe flam wrote:Miftah, I've used Audiograbber for forcing all songs in to one. Only drawback is you have to put them on CD, then it rips them to one file. Outlined here..
Bio, do you think you could do this with the CS and CSII discs we were discussing last week? I'd like to get them in one file to listen to while running and the track breaks, you know....

Posted: Mon Mar 05, 2007 9:32 am
by bio
miftah wrote:Bio, do you think you could do this with the CS and CSII discs we were discussing last week? I'd like to get them in one file to listen to while running and the track breaks, you know....
Um... you're going to have to refresh my memory on that. I'm totally lost as to what you speak (but then again... I'm on drugs... so that's no surprise).

Posted: Mon Mar 05, 2007 9:54 am
by moe flam
ironpants wrote:Heh, aperrently I'm completely behind the times when it comes to music. I just figured out the format etc. Guess this is what happens when you spend your day looking at sysfont :)

Are all your folders subfolders of the same folder?

ROb
Yes, like I'll have a 'Music' folder, and all albums will be separate sub-folders under that. The m3u reference was a little vague, but seems to be the most common playlist file amongst players. Sounds like you've seen the contents, usually just text of the song names in the order you want. Some of mine have extra text, like this:

#EXTM3U
#EXTINF:0,01-goin__against_your_mind.mp3
01-goin__against_your_mind.mp3

#EXTINF:0,02-traces.mp3
02-traces.mp3

etc, etc.

Posted: Mon Mar 05, 2007 12:33 pm
by ironpants
I think I got it, PM me your email and I'll zip it up and send it to you.

Posted: Mon Mar 05, 2007 1:53 pm
by bio
Welcome to Damaged People dot com!

More geeky than a very geeky thing!

Re: m3u generator?

Posted: Thu Nov 01, 2007 5:54 am
by elliotgold
I found that same code on google answers for batch file M3U creation.. with right click functionality. very cool. I was bummed to find out about the naming bug... so I fixed it! Here's the repaired code:

The contents of makeplaylist.bat:
====================================================
@echo off

cd %1
echo %~f1
dir /on/b *.mp3 *.ogg > "%~n1".m3u
====================================================

The contents of playlistmaker.reg:
====================================================
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\play]
@="Make playlist(s)"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\play\command]
@="cmd /C C:\\makeplaylist.bat "%L""
====================================================

How to run:
1. Save makeplaylist.bat to C:\makeplaylist.bat
2. Save playlistmaker.reg anywhere you can find it again
3. Double-click playlistmaker.reg and say yes to merge it with your registry.

Now select any number of directories, right-click, and choose the
option "Make playlist(s)."

Enjoy!
Elliot

moe flam wrote:Does anyone have a neato trick for batch creation of m3u playlist files, where you can point it to a directory, and have it build playlists on a folder by folder/ album basis?

This seems simple and effective, but the m3u is always named the same. This looks powerful, but doesn't seem to support batch creation.

For the first link, I can't figure out the old dir + something verbiage to get it to name the playlist the name of the folder:

**********
echo %~f1
dir /on/b *.mp3 *.ogg > ~nx1.m3u
**********

Posted: Thu Nov 01, 2007 7:23 am
by miftah
Welcome to the forum, Elliot. I'm glad to see you're not a spambot. I was pretty sure you weren't as your email address (which I won't post here) is hilarious.