S
S
Serverprom2015-10-24 21:37:13
PHP
Serverprom, 2015-10-24 21:37:13

How to merge many MP3 files into one in PHP?

Hello! There are several MP3 files. The task is to "glue" them into one long MP3 file. How can this be done in PHP?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mark Doe, 2015-10-24
@Serverprom

Rough and ancient, but working version
pastebin.com/c27w6E2J
When you try - the main thing is to edit these lines do not forget

$mp3 = new mp3('1.mp3');
$mp3->striptags();
// Second file
$second = new mp3("2.mp3");
$mp3->mergeBehind($second);
$mp3->striptags();
$mp3->output('word.mp3');

S
Sergey Ivchenko, 2015-10-24
@Serg89

And opening an mp3 file as a binary one and slowly merging data from all files into one will not work?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question