0

I have found easy solution to merge two mp3 files :

file_put_contents('combined.mp3',
file_get_contents('file1.mp3') .
file_get_contents('file2.mp3'));

(Merge two mp3 php)

I have found a way to obtain real duration of created file :

(http://www.zedwood.com/article/php-calculate-duration-of-mp3)

But I can't arrive to update the new mp3 file with the real duration.

The generated file (combined.mp3) has the duration of the first file (file1.mp3) and not the duration of the sum of the 2 files.

Not a class or a function to update mp3 with his real duration ?

Merging mp3 in php is really impossible ?

I have found that :

What is the best way to merge mp3 files?

Merging MP3 files in Linux Debian using PHP

I use shared hosting and mp3wrap is not a solution for me I think.

Community
  • 1
  • 1

0 Answers0