将两个音频文件与命令行工具结合在一起 [英] combine two audio files with a command line tool

查看:92
本文介绍了将两个音频文件与命令行工具结合在一起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须将两个(或多个)音频文件(如吉他和架子鼓)合并到一个文件中.我正在Linux CentOS上运行,并且需要命令行工具来执行此操作,因为我必须将其作为后台进程的一部分来运行,这是通过自定义bash脚本的crontab触发的.我还需要能够更改声像,音量,修剪和开始时间(即,我希望吉他声在鼓声之后1.25ms之后开始,以便它们可以彼此同步).

我的第一选择是ffmpeg,但是我想知道是否有比ffmpeg更具体,更可靠和更模糊的东西.

一吨!-k-

解决方案

我不确定sox是否可以做到所有这些事情(特别是开始时间),但我认为是这样的:

I've to merge two (or more) audio files (like a guitar and a drum track) into a single file. I'm running over linux CentOS and I'd need a command line tool to do so, because I've got to run this as part of a background process, triggered via crontab of a custom bash script. I also need to be able to change the pan, volume, trim and start time (i.e I want the guitar track to start after 1.25ms after the drum track so that they can be both in sync with each other).

My first choice would be ffmpeg, but I was wondering if there could be something more specific, reliable and less fuzzy than ffmpeg.

thx a ton! -k-

解决方案

I don't know for sure if sox can do all that (esp start time), but I think so: http://sox.sourceforge.net/

Certainly it would be my "goto" tool for that, short of writing my own.

这篇关于将两个音频文件与命令行工具结合在一起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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