I have an MP3 file uploader. I want to add an additional audio track to the file upon upload via PHP. Is that possible?
Asked
Active
Viewed 1,472 times
2
-
1When you say additional audio track, Do you mean you want a track to play alongside it, or do you want a little something added to the end? – Jesse Dorsey Jun 03 '10 at 19:02
-
I want something to play simultaneously. Moreover, I want this other track to be repeated periodically in the resulting file. – arik Jun 03 '10 at 19:48
2 Answers
7
I say "Yes, it's possible".
The following seems to make it seem almost trivial: "How to Merge / Concatenate MP3s with PHP"

Mark Bowytz
- 1,322
- 1
- 10
- 14
0
(based on comments)
It's not possible, well not directly possible. Not with just PHP.
With PHP you could break up a Mp3 and insert your own little snippet into pauses, but it probably won't sound very good, and if I am thinking correctly will result in lowered audio quality.
To really achieve what you want you would need something inbetween to process the Mp3 files. More than likely it would be a Unix shell script attached to some program or library that can do this, executed by PHP.

Jesse Dorsey
- 540
- 8
- 17