m3u generator?

A place for anything and everything.
Post Reply
User avatar
moe flam
born with a banjo
Posts: 125
Joined: Tue Sep 05, 2006 3:25 pm
Location: Mts of Idaho

m3u generator?

Post by moe flam » Thu Mar 01, 2007 3:10 pm

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
**********
Work is the curse of the drinking class
User avatar
damaged_one
Young Pup
Posts: 74
Joined: Wed Oct 26, 2005 1:48 pm

Post by damaged_one » Fri Mar 02, 2007 9:26 am

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.
User avatar
miftah
le moth
Posts: 2703
Joined: Fri Jan 03, 2003 5:15 pm
Location: Assland, OH
Has thanked: 22 times
Been thanked: 15 times
Contact:

Post by miftah » Fri Mar 02, 2007 9:30 am

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.
"Fear of the bee means the honey is for me" - Jhonn Balance
User avatar
bio
Resident Junky
Posts: 6644
Joined: Tue Dec 31, 2002 12:24 pm
Location: Spokane, WA
Has thanked: 26 times
Been thanked: 43 times
Contact:

Post by bio » Fri Mar 02, 2007 10:06 am

I just stumbled across this utility. It looks promising.
"That's What"
- She
User avatar
moe flam
born with a banjo
Posts: 125
Joined: Tue Sep 05, 2006 3:25 pm
Location: Mts of Idaho

Post by moe flam » Fri Mar 02, 2007 1:37 pm

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.
Work is the curse of the drinking class
User avatar
ironpants
metal butt
Posts: 459
Joined: Sat Jul 24, 2004 12:09 am
Location: Spokane, WA

Post by ironpants » Fri Mar 02, 2007 6:10 pm

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
"The age demanded that we sing, and cut away our tongue. The age demanded that we flow, and hammered in the bung. The age demanded that we dance, and jammed us into iron pants. And in the end the age was handed the sort of shit that it demanded."
User avatar
ironpants
metal butt
Posts: 459
Joined: Sat Jul 24, 2004 12:09 am
Location: Spokane, WA

Post by ironpants » Fri Mar 02, 2007 6:26 pm

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
"The age demanded that we sing, and cut away our tongue. The age demanded that we flow, and hammered in the bung. The age demanded that we dance, and jammed us into iron pants. And in the end the age was handed the sort of shit that it demanded."
User avatar
miftah
le moth
Posts: 2703
Joined: Fri Jan 03, 2003 5:15 pm
Location: Assland, OH
Has thanked: 22 times
Been thanked: 15 times
Contact:

Post by miftah » Mon Mar 05, 2007 12:53 am

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....
"Fear of the bee means the honey is for me" - Jhonn Balance
User avatar
bio
Resident Junky
Posts: 6644
Joined: Tue Dec 31, 2002 12:24 pm
Location: Spokane, WA
Has thanked: 26 times
Been thanked: 43 times
Contact:

Post by bio » Mon Mar 05, 2007 9:32 am

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).
"That's What"
- She
User avatar
moe flam
born with a banjo
Posts: 125
Joined: Tue Sep 05, 2006 3:25 pm
Location: Mts of Idaho

Post by moe flam » Mon Mar 05, 2007 9:54 am

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.
Work is the curse of the drinking class
User avatar
ironpants
metal butt
Posts: 459
Joined: Sat Jul 24, 2004 12:09 am
Location: Spokane, WA

Post by ironpants » Mon Mar 05, 2007 12:33 pm

I think I got it, PM me your email and I'll zip it up and send it to you.
"The age demanded that we sing, and cut away our tongue. The age demanded that we flow, and hammered in the bung. The age demanded that we dance, and jammed us into iron pants. And in the end the age was handed the sort of shit that it demanded."
User avatar
bio
Resident Junky
Posts: 6644
Joined: Tue Dec 31, 2002 12:24 pm
Location: Spokane, WA
Has thanked: 26 times
Been thanked: 43 times
Contact:

Post by bio » Mon Mar 05, 2007 1:53 pm

Welcome to Damaged People dot com!

More geeky than a very geeky thing!
"That's What"
- She
elliotgold

Re: m3u generator?

Post by elliotgold » Thu Nov 01, 2007 5:54 am

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
**********
User avatar
miftah
le moth
Posts: 2703
Joined: Fri Jan 03, 2003 5:15 pm
Location: Assland, OH
Has thanked: 22 times
Been thanked: 15 times
Contact:

Post by miftah » Thu Nov 01, 2007 7:23 am

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.
"Fear of the bee means the honey is for me" - Jhonn Balance
Post Reply