HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: FrozenSpoon on 2006-05-15 16:41:37

Title: foo_binpack
Post by: FrozenSpoon on 2006-05-15 16:41:37
This is a very simple component I wrote but might be useful to others. Basically you select a list of songs and then create playlists from that list with a maximum length.

Why would you want to do this? Here is why I needed it: I've got a list of 200 songs and I want to record those on to CDs to put in a changer. Instead of figuring out what songs are needed to get as close to 80 minutes of audio as possible, I just select my list of songs, select the BinPack option, and then I have 11 playlists that all fit on 80 minute CDs. This allows me to populate the changer very easily, a lot easier than trying to create playlists manually for each CD!

Download here (http://www.maroonspoon.com/foo_binpack/foo_binpack.zip)

I might add more functionality later, but this is all I needed at the moment.
Title: foo_binpack
Post by: Digisurfer on 2006-05-15 17:06:18
I just select my list of songs, select the BinPack option, and then I have 11 playlists that all fit on 80 minute CDs.

Or 155 playlists if your not careful lol. Great idea and works great. Thanks for the plugin.
Title: foo_binpack
Post by: FrozenSpoon on 2006-05-16 06:57:24
Or 155 playlists if your not careful lol
hehehe, yeah watch out for that. I should probably add a "Are you sure you want to make __ playlists?" dialog in there since apparently there is no way to undo the creation of playlists.
Title: foo_binpack
Post by: foosion on 2006-05-16 09:56:06
foo_playlist_manager also has a feature to create large amounts of playlists in one step; to counter that, it can also delete a group of playlists in one step. That could come in handy, when you've accidentally spammed foobar2000 with several hundred playlists.
Title: foo_binpack
Post by: FrozenSpoon on 2006-05-16 17:35:00
Yep, I guess what I meant is that it's not possible to create a standard undo point for playlist creation or deletion. As in, after 100 playlists are created, there is no way a user could just Edit|Undo to get rid of those playlists. Unless I missed something in the SDK, but even the default UI can't undo playlist creation and deletion.
Title: foo_binpack
Post by: foosion on 2006-05-16 17:48:59
You are right, the undo functionality is limited to the playlist contents.
Title: foo_binpack
Post by: eido on 2006-05-18 05:18:34
Thanks for the plugin.  It works great.

I hope you don't mind if I throw out a feature request.  I'd like to be able to set the number of playlists to be created and then just omit any songs that go over the playlist limit.  For example, I'd like to randomize my entire music library and then make three cds from the first 240 minutes of songs in the playlist.
Title: foo_binpack
Post by: audiomars on 2006-05-18 09:01:56
Just wanted to thank you for an eminently usable plugin!! I used to have the same problem creating mix CDs for my car.
Title: foo_binpack
Post by: drbeachboy on 2006-05-19 19:56:03
Hi FrozenSpoon,

Upon placing the plugin in the "components" folder, foobar2000 v0.9.2beta3 will not start up. Does this plugin need .NET 2.0 installed or some other runtime dll?
Title: foo_binpack
Post by: FrozenSpoon on 2006-05-19 20:31:08
It shouldn't require anything else. I just downloaded 0.9.2 beta3 and it worked fine for me. How will it not start up?
Title: foo_binpack
Post by: drbeachboy on 2006-05-19 20:45:20
It shouldn't require anything else. I just downloaded 0.9.2 beta3 and it worked fine for me. How will it not start up?

When I click on the foobar2000 icon, the icon appears in the taskbar tray for a few seconds, and then disappears. In Task Manager, I see foobar2000.exe for few seconds and then foobar2000.exe closes. This is on Windows XP Pro SP2 machine.

Also, foobar will not open to full screen before it closes down. Just the icon in the tray.

Edit: I started removing plugins one at a time, and viola! foo_browser 1.1.7 was the culprit. Once removed, foobar works great with foo_binpack installed.
Title: foo_binpack
Post by: FrozenSpoon on 2008-10-25 21:57:36
Uploaded new 1.1.0:
Title: foo_binpack
Post by: Mar2zz on 2008-11-12 08:59:31
Nice component, but I really miss a feature. Could you update it to also create playlist based on size, not only time?

When burning mp3 to cd's, for players that read mp3, it would be handy if I could limit a playlist to 700MB/800MB or 4,5GB in case of a mp3 DVD.

If you could implement this feature, you would have a fantastic combo with foo_imgburn!