What's the easiest way to merge the contents of several MP3 files into one using PHP 5.2 on Linux Debian system? I found some scripts that are supposed to do in PHP only, but they seem to be buggy. Perhaps there is a way to accomplish this task using command line programs, that I could install on my Linux Debian machine?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Code taken from this link
cat first_part.mp3 second_part.mp3 third_part.mp3 > newfile.mp3
They say that your file must have the same bit rate.
You can have bit rate using mpg321
mpg321 -t first_part.mp3
Hope it helps.
check this: http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2009-September/022171.html
first you have to install sox. sudo apt-get install sox.
you can execute all these commands from php with exec().