From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6130 216.105.38.0/24 X-Spam-Status: No, score=-3.2 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 687F61F731 for ; Sat, 10 Aug 2019 12:06:50 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1hwQ8z-0003FV-Du; Sat, 10 Aug 2019 12:06:45 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1hwQ8y-0003FN-Ek for sox-users@lists.sourceforge.net; Sat, 10 Aug 2019 12:06:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:Reply-To:Sender:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zu7YSzPLN4haB8Wi9g/JsyQVOd9V3xLF/cpAKGePeW0=; b=lWuQpm54MT9yK61OiWyBq+J4JO ND6Ia3U7GlnGK8UdScFEftCQtK7gUWU0KEXIzF9b1qbcMo97HwEyEsRdPbL5SFT43uquKLYqd9Lc0 7mgZGyhVUi5brNZt/ZZnhIlsHPazx+BS8rRMRZkCGb3TdqqFnu6cITn6bKrWEdPvvkKQ=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Reply-To:Sender:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=zu7YSzPLN4haB8Wi9g/JsyQVOd9V3xLF/cpAKGePeW0=; b=HmYlHQZicfSIJUQCu2Fa+ajQQ1 UESzP+MTNgzPxcU09MlXT/iiev4JocNCOq+Zsd1zCns0t1tkxQmpAWNk4Wp3yX13im/CBsdoOG1cn fEfT41j+DNVcAnGmrzaVzNRHMyFAiej5YkphpXfanNxZRaJ/kc+PjAe5BHyNFXChK2H4=; Received: from mout.gmx.net ([212.227.17.22]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) id 1hwQ8w-000fvD-0H for sox-users@lists.sourceforge.net; Sat, 10 Aug 2019 12:06:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1565438795; bh=VebmBLKVMgDkpaLN9fQP0PJl4eIWu/CxuaqTY5so86E=; h=X-UI-Sender-Class:Reply-To:Subject:To:References:From:Date: In-Reply-To; b=ltHOYtQkT2NCrV1r4ze4wbYKYcbMle7ZjOX9c6Kd1MGWzBaGwsPCP9he8hPx8TFQk 57hA7K8tjFtbwG15gu5f1OZCNclVGTKndjjAvbq/r1nsLrhUB4b98FZeAVHPHYkj/p vbWHE79QG6fw9jSVhSucyddDFCj65SDeIcy/8O1I= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.13.23] ([178.27.180.88]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N3bX1-1iMRDc1Aup-010eR9 for ; Sat, 10 Aug 2019 14:06:35 +0200 To: sox-users References: <66ca46e2-92b8-a920-9b71-52e89ac5c033@gmx.de> From: "Dr. Thomas Tensi" Message-ID: <878d1509-1207-2ad4-e084-7a6f9a91b5fd@gmx.de> Date: Sat, 10 Aug 2019 14:06:33 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: X-Provags-ID: V03:K1:lascXzi9TN4dzJQdqCal/c/XKpj/xuACLXZ1DeFueGrs0p+VaCE sJzRmNq1p+KWQxCj9tPtbU33UWLEsNrCYTDDpsMMnhzF7WNwx1xC59URCv/vq6IzOBpUK40 fIzlnXWznltDCJZvajtm16YV0hnDsmUBNtuUoqJGHig8mQxFXhJevEuDuLHlR1O8Oyi6ExR 9yyIk2UumILNjlbpOUrQA== X-UI-Out-Filterresults: notjunk:1;V03:K0:niNjDGGrvRM=:HSHHiZUBe2NoGKO2G+Gbu8 i0eHejHLmy9N97lYFCo97VlT2Uc+MyXaDsnNWKNNiIS/l8HQ5APD7BfNP5tOgtQOar2j2sC5O Q0D3DiGvRkiPWT4jFo3Q4kZsnBFkjiXtTE0c1+Zm5RQOsA7yNeSMw93fExLB1gEp+b7EKyqME GKwa0myDrK9j44tcSzEiVSofdbx6F0tcgwfERVlCY+Nk+TVoJY6RWrlL7w6SjQvhGqENPXgtP +ZNSBY9hmlR05gNC0VNV8aykfMb+aB9oAsEbhCGo7JPqsj4jj5tevuhSt4x/sJvPxwaW26GS0 1QGAu81AVnCeWfmaVpMj92g0QmPa7A5OTNNfcbvLzqtuZXqoNVk3w/Df8JVma8sdwFH/aWL2b CO5ML48LJM2GDovKg2Stw0/Mvmv2kFQRzFMlxWA4sQblvCg3UrD7cN+Nth0ousvN8doCjdw9q oxLb1P5vNh5ZHmXfhwgUVRjg4g62W/yXCKI5QrRUhQtvwTWftB+vvEqN1elWWtAZtzNYLPcwR gZ+1fmiPrftPhMKpDRM2ZvHgMIVdqz0MuEaBIU6/lvfe6Jvn6wIxED708SvDOoUm6Z8AmMwdM +UmBTrfgR/ymlVXIPg/S0wBdGVgIGYNyHFjQx6yKtghKcviGJCbtV4yTTYed9z3KDstvTzH+V fP354vH3lGpOGZQuqIVFeQOv+TrJ+dhKw3zFW+mfIVBRqXbAut7Udn1J/n0tdh556cDXJ7X/i nbSFVNJZv8+J5F/UpwuEkTVhQ/hIfCdVVJvazhI/xcCsg6r7PtCT853aPxcpbIPqZ2pfK9wOw yYiuDdy8A0aWjrNP1VbIBAGn+/QntHfQD1Pr9ItteBxbPFT9vAs0yZdM7lnlN95QYXK+dscF5 jWVOCaZe/qrD230jEyNxjHnn9hRLgL4e/Xj6WOLAfpvY9GKdcAPBRLlm3ltYxsvNbRB3I0Z3/ Xj7vkYmCV1lTyap+vfeAJt4pRRuT4mY4O+MIvfWQyx38fsxS35lSu3spWcxmlnLCr0KoiADE2 yY0by5Ob9jW2zIogCnKTQlg4IjRliIoEfii3EYrg3QQjR00Lf9LU0iounQDtoLiM9sb4MpKhl S8xUqt/YS5zkA2eZ76Hs4nlGFsoawhxJkSeYIjM+0MlxmjQaJKeoW09oaR2C4g8lSOZmoKRPM OjXVc= X-Headers-End: 1hwQ8w-000fvD-0H Subject: Re: Reason for sox mix restriction to two or more input files? X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: thomas@tensi.eu, sox-users@lists.sourceforge.net Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: sox-users-bounces@lists.sourceforge.net Hello Jeremy, thanks for the explanation! You wrote: > > [sox requires at least two input files for mixing] > > I understand that at least one input file is necessary > > (for finding the target length, sample rate etc.), but > > why does sox fail when mixing a single input file? > Probably because it's simpler to write programmes that > assume the user means what they say. So if you ask sox to > mix several files, it is written assuming that you will > provide more than one. Hmm, I am not convinced yet. When I use my analog mixing desk, I can easily "mix" even one input to the master. So mixing should even be possible for one file. When using sox manually I am fine with changing my command line accordingly; for an automatic use of a command line tool boundary cases should just work if there is a reasonable interpretation. So sox -m -v 0.3 inputfile outputfile is just equivalent to sox -v 0.3 inputfile outputfile > You say you're using a script to drive this. That means > you are in control. Your script can - surely - determine > that there's only one input file and adjust the sox > command(s) you're using accordingly. It is a bit more complicated than that, because the script does not know at all about sox, but is configurable for arbitrary command-line audio processors. Unfortunately the configuration now has to take care of a special case for single file mixing in sox, where other audio processors (like e.g. ecasound) have no problem at all. Nevertheless I found a workaround: I always add a null file as an input partner for all mixing steps. This is ugly, but it works. Best regards, Thomas _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users