Linux 工具来覆盖 MP3 文件以便在 PHP 中使用
我一直在互联网上搜索,但没有成功找到允许两个 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
安装 sox,使用
--combine
开关在输入文件名之前使用
--volume FACTOR
即可将背景音轨保留在后台:-); sox 有很多其他选项来混合、匹配、编辑音频文件;您可以在此处找到在线手册页,提前查看是否想尝试一下(你应该...)。Install sox, use the
--combine
switchUse
--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...).