Hello, me a few friends of mine are developing a php-based music store for a client. The client specifically wanted a preview option where by users could listen to the first 30 seconds of a song. All the songs are .mp3's
Could any one tell me, if it is possible to trim down a mp3's duration to the first 30 seconds using php? or suggest any player that will limit the clip duration to 30 seconds? We are currently using a xml based flash player to play the songs on the site.
And please forgive me if i have posted the question in the wrong section.
Kindly help me out. Thanks in advance.
Need suggestions for trimming a .mp3
Moderator: General Moderators
-
BinaryBird
- Forum Newbie
- Posts: 9
- Joined: Tue Dec 22, 2009 1:26 pm
Re: Need suggestions for trimming a .mp3
Surely it's easier to just edit the song with any music player mixer studio software? Choose the 30 secs, than save as a new mp3? Then just upload it..
When I have more time I will look into it if you really need PHP.
When I have more time I will look into it if you really need PHP.
-
BinaryBird
- Forum Newbie
- Posts: 9
- Joined: Tue Dec 22, 2009 1:26 pm
Re: Need suggestions for trimming a .mp3
Something like that, but it says right at the beginning that the script is very slow and takes up lot of memory. So i was wondering if there were any other options or some one could guide me as to how to achieve this?
I could create 30 second clips, but the problem is that there are more than 100,000 songs, so creating preview clips will take up more storage space on the server.
So trying to avoid that option. But thanks for link to the script.
Re: Need suggestions for trimming a .mp3
The reason the script is slow is the fact that it doesn't do just that one thing..
Find the script you need from it and it shouldn't be slow..
- xplosion
Find the script you need from it and it shouldn't be slow..
- xplosion
-
BinaryBird
- Forum Newbie
- Posts: 9
- Joined: Tue Dec 22, 2009 1:26 pm
Re: Need suggestions for trimming a .mp3
I will try it out. Thanks.xplosion wrote:The reason the script is slow is the fact that it doesn't do just that one thing..
Find the script you need from it and it shouldn't be slow..
- xplosion