Merge mp3s with PHP?
July 18, 2005 3:06 PM
Subscribe
How can I merge multiple MP3s into a single MP3 using a web scripting language such as PHP, ASP.NET, etc.?
You'd think this would be the kind of thing you could just look up on Google, but I've had a heck of a time finding anything close to what I'm looking for.
Specifically, I've got a bunch of small MP3 snippets, and I want to merge them end-to-end into a single MP3 file.
There are Windows-based tools that will do this, but I need to automate it for a website.
All I'm finding on Google are scripts having to do with playlists or ID3 tags. Haven't been able to come up with anything about actually manipulating mp3 files.
Any suggestions?
posted by oissubke to computers & internet (9 comments total)
Warning: This can leave garbage like ID3 tags in the middle of the resulting file, making it technically invalid. Most programs can still play the file, but some might not.
For a more "correct" solution, you will need to call a library or executable that understands MPEG streams. What operating system are you using, and do you have a preferred programming language?
posted by mbrubeck at 3:28 PM on July 18, 2005