Welcome to WebmasterWorld Guest from 54.158.238.108

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP and MP3?

Chopping up a song

     
2:51 pm on Mar 22, 2003 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 30, 2002
posts:4879
votes: 15


I'm not even sure what to search for to get more info...

I have a 6 hour long MP3, a large clump of songs as a single file, and I want to chop up the song when the wavelength flattens out (hopefully that's where each song ends).

Has anyone heard or seen of PHP dealing with music files? I'm looking to save myself the trouble of listening to the song with soundforge and chopping it up myself :)

4:14 pm on Mar 22, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Jan 9, 2003
posts:330
votes: 0


Why do you want to do this with PHP? There are special programms, called MP3 Splitter, that split MP3 files into smaller pieces. I am not sure if you have to listen to the songs, but I don't think so.

--
globay

4:21 pm on Mar 22, 2003 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 30, 2002
posts:4879
votes: 15


>why PHP?

Just cos I don;t know where else to start ;)

split by section, split by time and split by size

From the MP3 thing you mentioned....Not sure if that's going to cut it, the songs will be variable length and sizes. Cheers for the pointer though, im downloading it now.

I had the idea that with PHP, it would read the MP3 file, pretty much the same way it interprets any other file. Usually they have some sort of function or hack......

I'm sure the MP3 prog is written in something like C, I guess I like control over what I'm cutting up, but don;t have the knowledge of C or MP3's to go in that deep.

4:43 pm on Mar 22, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Jan 9, 2003
posts:330
votes: 0


Tell me if it works! It should split up MP3 files, but I am not sure if it recognizes the different tracks. If not, there are some MP3 Programms, that show you the wavelengths. Just use them to find out where the tracks end.

I don't think that it is possible to have PHP cut these MP3 files, and it would certainly be easier to use an already written programm, than to create a new one, just to edit that one file.

--
globay

4:51 pm on Mar 22, 2003 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 30, 2002
posts:4879
votes: 15


I don't think that it is possible to have PHP cut these MP3 files, and it would certainly be easier to use an already written programm, than to create a new one, just to edit that one file.

for sure, no need for heroes ;) I checked it out....

you have to listen to the song and "click" when you want to split it. It seems to track the song by using frames.....maybe this is a clue to what I need to do? I don't know how MP3's work...all the same I'm sure someone has a prog...

If not I'll have to find out how to split hte song at the "quiet bits" in between songs. Would be much cooler if the comp done it for me :)

5:34 pm on Mar 22, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Jan 9, 2003
posts:330
votes: 0


I haven't found a programm yet, that supports MP3 Splitting by Silence, but what you could do is convert it to a WAV and then use Audioseparator (.com). I have downloaded it, and it you can choose how long the silence it will break, is. Just reconvert the files after splitting them to MP3,

--
globay

8:53 pm on Mar 22, 2003 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 30, 2002
posts:4879
votes: 15


cool, thanks for your help globay.

Judging by what the guy wrote on that site, it's a tool that's needed but not made! Making them WAV does the job, just means I have to put more space aside for them.

I'll post back if I ever find an MP3 one.

Cheers

//addd
think my chances are good here
dailymp3.com/splitter.html

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members