2016-04-15 5 views
0

例から始めましょう。 first.mp3、second.mp3、third.mp3という3つのオーディオファイルがあるとします。私は最初に2番目をマージし、3.mp3を結合してオーディオをマージしたいと思います。一つのコマンドで作ることは可能ですか?ソックスカップルのアクションを一度に

私は、このようなコマンドを実行しようとした:

sox --combine mix first.mp3 second.mp3 --combine concatenate third.mp3 output.mp3 

が、その後output.mp3はそれが

sox --combine concatenate first.mp3 second.mp3 third.mp3 output.mp3 

と同等であるので、私の一般質問があるかどうかで、3つのすべてのオーディオファイル連結の結果であります1つのsoxコマンドでいくつかのアクションを行うことは可能ですか?

答えて

0

回答が見つかりました。

最初のプロセスをstdoutに保存するには "-p"を使用し、2番目のプロセスではstdinから読み込むには " - "を使用する必要があります。

例:

sox --combine mix first.mp3 second.mp3 -p | sox - --combine concatenate third.mp3 -p | sox - --combine concatenate fourth.mp3 output.mp3 
:我々はまた、複数のネストを持つことができます

sox --combine mix first.mp3 second.mp3 -p | sox - --combine concatenate third.mp3 output.mp3 

関連する問題