Uploading MP3, Encoding and trimming them.

oracle

New Member
Messages
430
Reaction score
0
Points
0
Hello All,

Well these are the 3 things I want to do:

1. Upload an mp3 file (easy to do)
2. Encode mp3 to lower quality etc etc. (dont know how to do)
3. Trim mp3 etc etc (dont know how to do)

Can someone out there put some references or pointers for the same.

Thanks in advance,
Imoracle

PS: LAME is an option i guess, but I dont know how to implement the same on the x10 servers. Kindly elaborate on your suggestions plz
 

VPmase

New Member
Messages
914
Reaction score
1
Points
0
I found an install guide for LAME. That should work for x10hosting I assume. I guess it depends on you PHP level.
 

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
An admin will have to implement LAME onto the servers, you most likely won't be able to. Otherwise, if you are the only one uploading the MP3s, download an open source program called Audacity, along with the LAME.dll file and it'll do everything you've asked, except for uploading lol. The program's website is:

http://audacity.sourceforge.net/
 
Last edited:

oracle

New Member
Messages
430
Reaction score
0
Points
0
Thanks a lot for your help. I have a paid hosting so I guess I have the highest level of php for using exec() etc which I might need to execute LAME. I have already asked Corey for the same.

I haven't heard much about audicity, lemme check and I will comeback to this post in case I have a problem

Thanks again,
Imoracle
 

kkenny

Active Member
Messages
1,950
Reaction score
0
Points
36
Audacity is a pretty good free audio editor. It can do what you want easily. (specifically #2, I'm not sure what you mean by #3)
 

oracle

New Member
Messages
430
Reaction score
0
Points
0
but is audacity an editor or can i call audacity through php code and do the encoding and trimming thing ??
 

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
Audacity itself is an editor. All you have to do is open an MP3 with it, visually see what you can edit out, then export it as an MP3. It's quite easy, just select the parts you want deleted/moved, and press Delete/drag/etc.
 

oracle

New Member
Messages
430
Reaction score
0
Points
0
I guess I didnt made myself clear. I want to have a system which does the following:

1. Upload mp3 files from my users
2. As upload is complete do two things:
a) Decode the mp3 to a lower format to save disk space
b) Make a copy of mp3 which have only initial 30-45 seconds of the file (preview file)

Now I dont wanna use the editor to do this for each and every mp3 uploaded.

Hence I want to write a script which can handle this for me, everytime an mp3 is uploaded.

I guess this can be achieved using LAME and PHP exec() command. But I am just not getting any tutorial for the same.

If anyone can point a combination of PHP and LAME, i will be more than happy.

Thanks in advance,
Imoracle
 
Top