homepage Welcome to WebmasterWorld Guest from 54.197.19.35
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
PHP and MP3?
Chopping up a song
brotherhood of LAN




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

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 :)

 

globay




msg:1260866
 4:14 pm on Mar 22, 2003 (gmt 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

brotherhood of LAN




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

>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.

globay




msg:1260868
 4:43 pm on Mar 22, 2003 (gmt 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

brotherhood of LAN




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

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 :)

globay




msg:1260870
 5:34 pm on Mar 22, 2003 (gmt 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

brotherhood of LAN




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved