0

I have seen this question

Combine/Concatenate MP3s on Server Using PHP

Just wondering whether there's a way to extend the functionality so that you can not only concatenate but also overlay 2 mp3s? Is this possible?

By overlay I mean. MP3 A MP3 B creates MP3 C

Whose Audio is like

Mp3 A

Mp3 B

simultaneously

Community
  • 1
  • 1
cjds
  • 8,268
  • 10
  • 49
  • 84
  • 4
    PHP == wrong tool for the job. – SDC Jan 04 '13 at 16:10
  • @SDC what would be the right one? PS I'm using windows so.. – cjds Jan 04 '13 at 16:10
  • Check out this post: http://stackoverflow.com/questions/8359974/linux-tool-to-overlay-mp3-files-for-use-in-php – Zach Rattner Jan 04 '13 at 16:12
  • 1
    Look for an command-line tool to combine MP3-files. You can excecute those commands using PHP. – P1nGu1n Jan 04 '13 at 16:13
  • @P1nGu1n Can I use SoX to do this? – cjds Jan 04 '13 at 16:21
  • Carl, I'm late responding to your reply, but my answer would be the same as @P1nGu1n said; there will be some third party commandline tool that will be perfect for this job. You'll have to research that for yourself though, as I don't know the answer. Once you have your tool, yes you can use PHP to call it. – SDC Jan 04 '13 at 16:27
  • 1
    @CarlSaldanha I just took a quick look at SoX and that's indeed what you're looking for. Try this for example: `sox song1.mp3 song2.mp3 song3.mp3 output.mp3` – P1nGu1n Jan 04 '13 at 16:27

0 Answers0