使用PHP在服务器上组合/连接MP3 [英] Combine/Concatenate MP3s on Server Using PHP

查看:110
本文介绍了使用PHP在服务器上组合/连接MP3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个将托管小型MP3文件的网站.

I have a site that will be hosting small MP3 files.

我想创建一个实用程序,使我可以将mp3文件组合在一起以创建单个MP3文件.

I want to create a utility that will allow me to combine the mp3 files together to create a single MP3 file.

我是PHP的新手,但不是编程的新手.

I'm somewhat new to PHP but not new to programming.

理想情况下,我可以使用一个函数,让我指定一个起始文件,然后将第二个文件附加到现有文件中.

Ideally, I would have a function that let me specify the a starting file and then append the second file to the existing file.

function appendMP3(originalMP3, newChunk){
   originalMP3 = originalMP3 + newChunk;
   return newMP3
}

compilation = append(compilaton, "sound.mp3");

我从哪里开始?是否有现有资源?

Where do I start? Are there any existing resources?

推荐答案

如果您可以从您环境中的PHP中访问Shell,我将直接调用该Shell(使用

If you can access the shell from within PHP on your environment, I would just call out to the shell (with the backtick operator) and use SoX.

这篇关于使用PHP在服务器上组合/连接MP3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆