简体   繁体   English

修改MP3文件

[英]Modify MP3 File

I have an MP3 file uploader. 我有一个MP3文件上传器。 I want to add an additional audio track to the file upon upload via PHP. 通过PHP上传后,我想在文件中添加其他音轨。 Is that possible? 那可能吗?

I say "Yes, it's possible". 我说“是的,有可能”。

The following seems to make it seem almost trivial: " How to Merge / Concatenate MP3s with PHP " 以下内容似乎使它显得微不足道:“ 如何使用PHP合并/连接MP3

(based on comments) (根据评论)

It's not possible, well not directly possible. 这是不可能的,完全不可能。 Not with just PHP. 不只是PHP。

With PHP you could break up a Mp3 and insert your own little snippet into pauses, but it probably won't sound very good, and if I am thinking correctly will result in lowered audio quality. 使用PHP,您可以分解Mp3,然后将自己的小片段插入到暂停中,但这听起来可能不太好,而且如果我考虑正确的话,会导致音频质量降低。

To really achieve what you want you would need something inbetween to process the Mp3 files. 要真正实现您想要的目标,您将需要一些中间的东西来处理Mp3文件。 More than likely it would be a Unix shell script attached to some program or library that can do this, executed by PHP. 很有可能是附加到可以执行此操作的某些程序或库的Unix shell脚本,由PHP执行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM