Mix multiple binary files in PHP

Asked

Viewed 81 times

0

Is there a PHP function for mixing multiple files (specifically audio files) into one? I don’t want to concatenate the files, but add the equal indexes in a destination file. For example: take an audio file with guitar and another with drums and mix the two in one, to then download.

  • Maybe these links will help you http://stackoverflow.com/questions/14393203/merge-mp3-files-into-one-and-then-save-in-a-folder-using-php http://stackoverflow.com/questions/9645438/mixing-2-audio-files-and-return-as-1-using-php

  • Valeu Dalton (Y)

  • Unfortunately not what I need. The class described in these links serves to concatenate the files. I need to mix them.

  • Could better describe what/how the mixing process would be?

  • I need to play a streaming sound, but the tracks are separate (an audio file for each instrument). I need to combine these tracks and then download.

  • take a look at this question here, logic is for any language, for MP3 you will need some Decode, do not know if there is anything native in PHP.

  • Thanks edervander. Yeah, the biggest problem is with the same decoding. I was mixing the buffers and uploading a file just for preview. The problem is that I can display a list of all the tracks already created for all sounds, with the removal option. So if I have a sound with guitar and drums, and delete the track with drums, the preview will not change, making the full sound become inconsistent (still playing the track removed).

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.