Linux 工具来覆盖 MP3 文件以便在 PHP 中使用

发布于 2024-12-19 03:55:29 字数 294 浏览 1 评论 0原文

我一直在互联网上搜索,但没有成功找到允许两个 mp3 文件相互叠加的工具。我有一个客户想要构建一项服务,允许某人从文件列表中选择音乐曲目和声乐曲目,然后让它们一起播放。她的公司生产可视化 CD,我相信这将是最好的途径,因为她有数百个可视化 mp3 脚本和大约 30 个背景音乐。这将允许动态合并这两个文件并缓存它们,而不是按需进行手动工作。

我研究了 ffmpeg 和其他工具,但这些工具倾向于处理剪切/分割/合并等,但我没有发现任何东西可以让我将两个音轨相互叠加以生成合并的音轨。

我想完美的就是类似于 audacity 命令行版本的东西。

I have been searching the internet with no success for a tool that will allow two mp3 files to be overlaid on top of each other. I have a client who wants to build a service that allows someone to select a music track and a vocal track from a list of files and then have them play together. Her business produces visualisation CD's and I believe this would be the best route as she has hundreds of visualisation mp3 scripts and about 30 backing music. This will allow the merging of these 2 files dynamically and for them to be cached as opposed to doing the manual work on demand.

I have investigated ffmpeg and other tools but these tend to handle cutting/splitting/merging etc, but I have found nothing that will allow me to overlay two audio tracks on top of each other to produce a merged track.

I guess what would be perfect is something along the lines of a command line version of audacity.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝咒 2024-12-26 03:55:29

安装 sox,使用 --combine 开关

sox --combine {mix|merge|mix-power} track1.mp3 track2.mp3 output.mp3

在输入文件名之前使用 --volume FACTOR 即可将背景音轨保留在后台:-); sox 有很多其他选项来混合、匹配、编辑音频文件;您可以在此处找到在线手册页,提前查看是否想尝试一下(你应该...)。

Install sox, use the --combine switch

sox --combine {mix|merge|mix-power} track1.mp3 track2.mp3 output.mp3

Use --volume FACTOR before an input file name to i.e. keep the background track in the background :-); sox has a lot of other options to mix, match, edit audio files; you can find the man page online here, to check in advance if you want to gove it a try (you should...).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文