From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3561 216.34.176.0/20 X-Spam-Status: No, score=-3.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,T_DKIM_INVALID shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) (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 879D9203F2 for ; Wed, 25 Oct 2017 18:39:55 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.89) (envelope-from ) id 1e7Qao-0005n7-2n; Wed, 25 Oct 2017 18:39:54 +0000 Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.89) (envelope-from ) id 1e7Qam-0005n1-2j for sox-users@lists.sourceforge.net; Wed, 25 Oct 2017 18:39:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Message-ID:References:In-Reply-To:Subject:To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version; bh=GVCr4PO1IkIWgdzga5/u864UlfXihCOUAvjT/8iwQZY=; b=BRVaBzzP91qU8V3ndEzhIJn1Ma9s32uvWZiFC7D4490McgW9RFf7bbJQ9bP2a1UQIoye6/eJ3ry0ofw+Zo+wG7AAR13BD0+KtEaEmym+tg4/wvM2bNtyxZuY7ASvc1pbhzgPDQtHrpSFbp9wEyuksAYC9DMyx54n3ljrUs/vGqQ=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x; h=Message-ID:References:In-Reply-To:Subject:To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version; bh=GVCr4PO1IkIWgdzga5/u864UlfXihCOUAvjT/8iwQZY=; b=egM9zgGpWvF+pgJ13RoybbuuSTo/kt5Xaw9G1hreUyvbI+194ufImpCCGYoAGUM6ocoT3j4kX1jHbUQV1fy1eKr7giEhlv1gQ597daO/AY3TRAdjCYxYJipn/vFqUMx70Qf+MYDe6shuNDVbCiZEtMN8yYP0+6oO5EgiwDV4kP4=; X-ACL-Warn: Received: from b-painless.mh.aa.net.uk ([81.187.30.52]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1e7Qak-0005PP-Ir for sox-users@lists.sourceforge.net; Wed, 25 Oct 2017 18:39:51 +0000 Received: from b-webmail.mh.aa.net.uk ([2001:8b0:0:30::77] helo=webmail.aa.net.uk) by b-painless.mh.aa.net.uk with esmtpsa (TLS1.0:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.89) (envelope-from ) id 1e7Qae-0003To-AH for sox-users@lists.sourceforge.net; Wed, 25 Oct 2017 19:39:44 +0100 Received: from cpc132346-sgyl43-2-0-cust166.know.cable.virginm.net ([82.42.23.167]) by webmail.aa.net.uk with HTTP (HTTP/1.1 POST); Wed, 25 Oct 2017 19:39:44 +0100 MIME-Version: 1.0 Date: Wed, 25 Oct 2017 19:39:44 +0100 From: Jeremy Nicoll - ml sox users To: sox-users@lists.sourceforge.net In-Reply-To: References: <82af7d1a9ad07b0bd46d7d9c99ddcf75@wingsandbeaks.org.uk> Message-ID: <3aadb4dd4f9e89308eac6927e7b2d7aa@wingsandbeaks.org.uk> X-Sender: jn.ml.sxu.88@wingsandbeaks.org.uk User-Agent: Roundcube Webmail/1.1.5 X-Headers-End: 1e7Qak-0005PP-Ir Subject: Re: multitasking 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: 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 On 2017-10-25 01:29, Glenn English wrote: > On Tue, Oct 24, 2017 at 7:44 PM, Jeremy Nicoll - ml sox users > wrote: > >> I can't answer the question, but I think whoever does will need to >> know >> more. Are these multiple capabilities needed on different pieces of >> audio, but all being processed at the same time? > > No, just one hugish (1G++) flac file, processed in several different > ways. > >> Or do you mean that for one audio source a whole sequence of things >> are to be done to it? > > Got it :-) > >> - which seems to me to be one sox command with various effects >> coded one afetr another > > That's another possibility, but it takes a very long time to cat a > billion little flacs into a single or mp3 it, so I assumed it'd take a > long time to eq or compress the huge flac, so I wanted to do several > things in parallel. That's not a deal killer because this program is > being designed to do the SoX part(s) of the job with no human > intervention. But I'd like to get its job done overnight. It's either one huge file, or it's not. I have no idea whether for the effects you wish to use it'd make any difference whether you apply them to all the small files first, then concatenate the results, or whether some/all will only work properly if applied to the huge file. On Windows, if a script issues start sox ... (though such a command tends to look rather more like start /b "atitle" "c:\x\y\z\sox.exe" arg1 arg2 arg3... ) then that started sox runs in a different process from the one that the script is running under, and therefore a script could issue a series of "start sox..." commands at a time. However if, say, it issued 7 of these (if one had a 4 cpu ie 8 core machine) there'd be no easy way to find out when each sox command stopped so it was a good time to start another one. On the other hand if you divided your umpteen files into, say, 7 lists of files you could have your master script start 7 subsidiary scripts with "start .. whatever's needed to start that script" and then each one could issue a sox command, then when that's complete issue the next one and so on. You might find that 7 sets of sox commands was too many on an 8 core machine; it depends what else has to run at the same time. If I were doing that I would have the subsidiary script create when it starts a flag file unique to it, then check that file exists each time it's about to issue another sox command. If not, stop. That way you can easily stop one set of commands by deleting its flag file. Scripts I have that do that also delete the unique flagfile when they stop naturally. -- Jeremy Nicoll - my opinions are my own ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users