Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Is there a program that does this? (Read 4085 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Is there a program that does this?

Like most music fan out there, I have over 10 gigs of music files(ogg, mp3, wma, etc.).  If I want to back them up to CDs, is a program that can find a best fit for you under the condition that all the same artist will be on one CD.  To clear up my question, for example I have:

artist A - 330 songs
artist B - 5 songs
artist C - 7 songs
artist D - 400 songs

So this program will go thru all the files in the folder, and find that artist A + artist C + artist D will fit it one CD or 700mbs exactly.

If such program doesn't exist, I think I can write something up in C using loops.  But unlike most of ya out here, my programming skill sucks! 

Is there a program that does this?

Reply #1
Quote
Originally posted by kxy
Like most music fan out there, I have over 10 gigs of music files(ogg, mp3, wma, etc.).  If I want to back them up to CDs, is a program that can find a best fit for you under the condition that all the same artist will be on one CD.  To clear up my question, for example I have:

artist A - 330 songs
artist B - 5 songs
artist C - 7 songs
artist D - 400 songs

So this program will go thru all the files in the folder, and find that artist A + artist C + artist D will fit it one CD or 700mbs exactly.

If such program doesn't exist, I think I can write something up in C using loops.  But unlike most of ya out here, my programming skill sucks! 


i would write an perl script who reorganize the files in an new folder. example:

<pre>
#!/usr/bin/perl -w

$path = '/windoose/d/music';
$new_path = '/home/dezibel/music';

$string = 'put_artist_name_here';

cd $path;                                # change to directory
@mp3s = glob("*.mp3");        # get an array with all *.mp3s's

foreach(@mp3s) {                  # loop
    if($_ =~ m/$string/i) {        # search for $string
        rename $_, $new_path; # move this song
  }
}
</pre>

Dezibel

Is there a program that does this?

Reply #2
I am missing a point here, what does reorganize the files in an new folder has to do with get them to a right "fit"?

Is there a program that does this?

Reply #3
Quote
Originally posted by kxy
I am missing a point here, what does reorganize the files in an new folder has to do with get them to a right "fit"?


i understand your problem as "how can i put all songs from one artist on one cd?"!

to check every folder of size [700Mb or not?] can't be an problem if you programming c/c++ i think.

Dezibel

Is there a program that does this?

Reply #4
Quote
Originally posted by kxy
Like most music fan out there, I have over 10 gigs of music files(ogg, mp3, wma, etc.).  If I want to back them up to CDs, is a program that can find a best fit for you under the condition that all the same artist will be on one CD.  To clear up my question, for example I have:


Check out Burn to the Brim at http://bttb.sourceforge.net/

It's designed to give you a "best fit" for using the minimum number of disks for backing stuff up (to whatever size media you have, be it Zip disk, CD, or whatever).

Is there a program that does this?

Reply #5
Yes, it does give you the best fit.  But it split up the artist.

This is what the program do, even if I define the groups:
artist A - 330 songs
artist B - 5 songs
artist C - 7 songs
artist D - 400 songs

then outpout is
artist A - 250 songs
artist B - 2 songs
artist C - 3 songs

And that is not what I want.

Is there a program that does this?

Reply #6
Quote
Originally posted by kxy
Yes, it does give you the best fit.  But it split up the artist. 

This is what the program do, even if I define the groups:
artist A - 330 songs 
artist B - 5 songs 
artist C - 7 songs 
artist D - 400 songs 

then outpout is
artist A - 250 songs 
artist B - 2 songs 
artist C - 3 songs 

And that is not what I want.


why not let the perl script put each files of one artist in an separate folder. then foreach new folder get the size of it. if the size smaller than 700Mb get the difference. if any other folder can "fill" the difference let put it in. if not try the next one.

this script should be ~30 lines and 30 minutes to implement it.
... you should change from c/c++ to perl i think

Dezibel

Is there a program that does this?

Reply #7
Quote
Originally posted by Dezibel


this script should be ~30 lines and 30 minutes to implement it.
... you should change from c/c++ to perl i think

Dezibel


Or maybe Python ? :coding:
http://www-106.ibm.com/developerworks/library/python101.html
Over thinking, over analyzing separates the body from the mind.


Is there a program that does this?

Reply #9
I am not good at perl and am a newbie at python.  If someone wants to write it, I will beta test it. 

Is there a program that does this?

Reply #10
It could be implemented pretty easily using Visual Basic too, of course that would limit it to the Windows platform  ...

If this was something I needed, I would consider writing it... but I don't really need something like this.  Maybe someone could whip up a nice GUI-based app in Java? (I don't know the language).

 

Is there a program that does this?

Reply #11
i don't realy use this proggi but if i have time the next days i will write it in perl maybe. i have written GUI proggies in perl/tk only. anyone interested in an perl/tk GUI?

Dezibel