Re: MP3 Ripping

From: Date: Mon, 27 Oct 2003 12:43:13 +0000
Subject: Re: MP3 Ripping
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167707@lists.php.net to get a copy of this message
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

« previous php.general (#167707) next »