auto-merging 2 mp3 files?
hi, i need help with merging two mp3 files into one, so that it sounds like the two originals playing simultaneously. i'm wondering if there's any php solution, and if not then maybe some other solution? but it needs to be automated to work at the click of a button after uploading the two files to a website.
any ideas anyone?
[346 byte] By [
Buy] at [2007-11-20 10:58:59]

# 2 Re: auto-merging 2 mp3 files?
i think i've seen that site before and it only concatenates the 2 files (puts one on the end of the other). i need a merge which blends them as if they were being played simultaneously.
any ideas?
Buy at 2007-11-10 3:57:11 >

# 3 Re: auto-merging 2 mp3 files?
I don't believe that PHP can mix channels; which is what you need to do. ASP.NET might be your better option.
Stick around for other opinions. I definitely do NOT know everything!!!
# 4 Re: auto-merging 2 mp3 files?
If you can get some new software installed on server then that is the best solution (so that PHP does not take much of server CPU by interpretting large scripts).
If you can then use
mp3wrap : http://mp3wrap.sourceforge.net/ (merges more than 2 mp3 files)
or get MEncoder from http://www.mplayerhq.hu and isntall on server.
I hope it helps.
regards
# 5 Re: auto-merging 2 mp3 files?
i downloaded and unzipped the 0.5 file from here: http://sourceforge.net/project/showfiles.php?group_id=59983&package_id=61792
and read the install.txt which told me to copy the mp3wrap.exe into C:\WINDOWS which I did... but when I tried opening the file it just flashed a dos-style screen which appeared and disappeared in a fraction of a second. I've had this prob with other downloads from sourceforge.net ... anyone know how I can use this program? I'm on windows XP
Buy at 2007-11-10 4:00:20 >

# 6 Re: auto-merging 2 mp3 files?
use PHP's exec function to execute it transparently. Please read the manual about parameters.
e.g.
<?
exec("mp3wrap.exe <PARAMETERS GO HERE>", $ret);
?>
I am already using ffmpeg this way, and have used on unix servers too, it works just fine.
I hope it helps.
regards
# 7 Re: auto-merging 2 mp3 files?
Thanks Ali, you've been very helpful. I'll install Apache and PHP in the near future and see if this mp3wrap does the trick.
Thanks again.
Buy at 2007-11-10 4:02:20 >

# 8 Re: auto-merging 2 mp3 files?
You are welcomed, and it surely works flawlessly on all platforms, even on unix servers without any problem.
regards