[PHP] MP3 Ripping
(Windows 2k, Apache, PHP, MySQL, Large Computer with Raid Array and Big Drives!!!) (Appology if this is been asked before, but I couldnt see it) Hello, First of all I had better say I don't think I am doing anything illegal. I have over a thousand origional CD's, and would basically like not having to swap the CD's etc. It's amazing some of the tracks I love but never play. I end up playing the albums, and not the singles etc. What I basically would like is to have a form of automatic jukebox on my computer. So what I have done is made a MySQL database with all the Artist, Genre, CD's and Tracks (including mixes). I have typed in all the information into this, and checked it as much as possible. What I would like is to put the music track in a blob field, rather than a file. Is there someway that PHP can read the CD and rip the files??? Or would I need to rip the tracks in a program, and then basically upload them in a form? (The second option would take longer for me of course) Now I could write some sort of C++ or Java program that uses this data and plays the CDs with some fancy choosing of artists and genre etc. But can anyone think of a way to do it from PHP? Someone said WinAmp had a command line interface, perhaps send it tracks from a PHP file. Not sure if it returns informaiton to PHP. One thing I did think was learning the PHP-GTK, with this project as a goal. But I know I can do what I want to do in Java, just not sure if there are any good mp3 modules etc for PHP. Any help would be appreciated! Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] MP3 Ripping
Steve Vernon wrote: [ snipped ] So what I have done is made a MySQL database with all the Artist, Genre, CD's and Tracks (including mixes). I have typed in all the information into this, and checked it as much as possible. What I would like is to put the music track in a blob field, rather than a file. Is there someway that PHP can read the CD and rip the files??? Or would I need to rip the tracks in a program, and then basically upload them in a form? (The second option would take longer for me of course) The track itself? You mean the contents of the mp3 file?! *shake head* I don't know why you would want to do that -- other than probably giving mysql and your hard disks a good workout, this will not lead to any efficiency. Now I could write some sort of C++ or Java program that uses this data and plays the CDs with some fancy choosing of artists and genre etc. But can anyone think of a way to do it from PHP? Someone said WinAmp had a command line interface, perhaps send it tracks from a PHP file. Not sure if it returns informaiton to PHP. I'm going to entertain this idea just because I need a break from babysitting my X emerge... If you want to send the file -- I suppose you could stream it to Winamp -- or use the command line interface to winamp and just pass it a file through the browser. But again, why do you want to do this through a browser? There are a few thousand mp3 ripping and cataloging programs out there. Windows Media Player (with third party plugins) will also rip Mp3s and catalog them. Winamp also rips and encodes. LAME is a very good free ripper. One thing I did think was learning the PHP-GTK, with this project as a goal. But I know I can do what I want to do in Java, just not sure if there are any good mp3 modules etc for PHP. I know of a few that are for reading track information from mp3s, but not one that does what you want. I suppose you can customize one of those to your liking. Tell me why you want to do this via PHP + Web Server + MySQL + Web Browser again? -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] MP3 Ripping
dont need php - mysql to do this. there is a mp3 streaming sever built for winamp. look for shoutcast. it'll everything you need, with little leg work from you. Burhan Khalid [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Steve Vernon wrote: [ snipped ] So what I have done is made a MySQL database with all the Artist, Genre, CD's and Tracks (including mixes). I have typed in all the information into this, and checked it as much as possible. What I would like is to put the music track in a blob field, rather than a file. Is there someway that PHP can read the CD and rip the files??? Or would I need to rip the tracks in a program, and then basically upload them in a form? (The second option would take longer for me of course) The track itself? You mean the contents of the mp3 file?! *shake head* I don't know why you would want to do that -- other than probably giving mysql and your hard disks a good workout, this will not lead to any efficiency. Now I could write some sort of C++ or Java program that uses this data and plays the CDs with some fancy choosing of artists and genre etc. But can anyone think of a way to do it from PHP? Someone said WinAmp had a command line interface, perhaps send it tracks from a PHP file. Not sure if it returns informaiton to PHP. I'm going to entertain this idea just because I need a break from babysitting my X emerge... If you want to send the file -- I suppose you could stream it to Winamp -- or use the command line interface to winamp and just pass it a file through the browser. But again, why do you want to do this through a browser? There are a few thousand mp3 ripping and cataloging programs out there. Windows Media Player (with third party plugins) will also rip Mp3s and catalog them. Winamp also rips and encodes. LAME is a very good free ripper. One thing I did think was learning the PHP-GTK, with this project as a goal. But I know I can do what I want to do in Java, just not sure if there are any good mp3 modules etc for PHP. I know of a few that are for reading track information from mp3s, but not one that does what you want. I suppose you can customize one of those to your liking. Tell me why you want to do this via PHP + Web Server + MySQL + Web Browser again? -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] MP3 Ripping
erythros and Burhan, Thanks for the reply. Basically I started putting my music into a program , and the program I did it on didn't like the amount of tracks (kept crashing), and didn't give me as many options as I would like. I'm not worried about a fancy interface and graphical displays of the music. What I could do is make a folder inside a folder with the artist name and the CD, and then the MP3 files inside with the name (and possibly mix) as part of the name. But what if the CD has music from different artists? What if the program does not like a high number of files? What if the file name gets to be more than 255 characters? What if I want to do something bit more advanced with a catelouged set of data. The last sentence relates to a project I did at Uni, to do with automatic mixing between tracks. I realise the code I did then is copyright, but I have a few ideas I want to try out. I sometimes do a bit of DJing at a local bar/club, but for the first couple of hours we just play a couple of mix CD's, before I get up and DJ. What I was thinking was letting the computer DJ itself, and letting people using a simple interface select some songs. But I would want to limit the type of songs, because some songs don't work at certain times of the night. Just would be nice to have it all using MySQL, so people can see pics of the artists etc. There are some quiet nights where basically either mix cd's or the radio is used all night. A database is there to hold your data, and basically display it in a format when asked, that you asked for. (Ok not a dictionary definition). Basically a file system is a simple database, but just to hold files. I know the load on the server would be crazy, but I'm not worried about that. All I plan to do at the moment is to output to a tempoary file, and then feed it into a program such as WinAmp to play the file. I don't want to do any Streaming- well perhaps some screaming! Ideally there would be a software product out there to do all this, but I don't think so, not with some of the ideas I have which I haven't even listed!!! So is there ANY way from PHP to read a CD, rip the tracks and place them in BLOB fields in MySQL? Or do I have to write something in C++ or Java? Just would be nice if there was something in PHP. Thanks, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] MP3 Ripping
[snip] ...some stuff... [/snip] Have you looked at Ampache? http://www.ampache.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php