From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-1.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 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 CCACC1F406 for ; Sun, 15 Oct 2023 21:08:13 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sourceforge.net header.i=@sourceforge.net header.a=rsa-sha256 header.s=x header.b=HKDjdm7M; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sf.net header.i=@sf.net header.a=rsa-sha256 header.s=x header.b=Mg63UYLE; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wingsandbeaks.org.uk header.i=@wingsandbeaks.org.uk header.a=rsa-sha256 header.s=aaisp1 header.b=iZ8Zt1xc; dkim-atps=neutral Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1qs8L9-0000VH-UH; Sun, 15 Oct 2023 21:07:58 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qs8L7-0000V7-Oa for sox-users@lists.sourceforge.net; Sun, 15 Oct 2023 21:07:56 +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:Message-ID: References:In-Reply-To:Subject:To:From:Date:MIME-Version:Sender:Reply-To: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=OflRKbMWclYbVeUtKbYG3NMnMDK7z+GLnQZEzDcIZuU=; b=HKDjdm7MyXDgoSgQ6j8tyTIdNB 3FD44/IJsL7/ANa3PcTOuwiNHT/SqY4nCCvqb/eDbqXC0pypqznmQMO5JYFE7bAgplocTM1aBuUhK caM7oongFxNiBuXdxT9rlNjZ+GhTNJKYA6OuXnNp4ETf4sNCS9rLtjbImVl6WyuCF6pA=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:Message-ID:References:In-Reply-To: Subject:To:From:Date:MIME-Version:Sender:Reply-To: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=OflRKbMWclYbVeUtKbYG3NMnMDK7z+GLnQZEzDcIZuU=; b=Mg63UYLEwcM9YLpWp34KJS6EGJ gutUfJeWv4x8x35hYdFQu1fiiNcriVD6vn+9D7Pv5tKy3dHe0FwX56ozGXc4dgVQkJ4ulKkfWbcy4 dVQ7FHdHB0WoSrUfWIEkB09lJsPLn707yxkcCGCaq0I2hodVyyArxMIUDvNWkeln8FSc=; Received: from authenticated.a-painless.mh.aa.net.uk ([90.155.4.48]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1qs8L2-00FtgI-0t for sox-users@lists.sourceforge.net; Sun, 15 Oct 2023 21:07:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=wingsandbeaks.org.uk; s=aaisp1; h=Content-Transfer-Encoding:Content-Type: Message-ID:References:In-Reply-To:Subject:To:From:Date:MIME-Version:Sender: Reply-To: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=OflRKbMWclYbVeUtKbYG3NMnMDK7z+GLnQZEzDcIZuU=; b=iZ8Zt1xcnzAtHcvVsB+I8GdyTr 1jhKEmwTehtYT27VrUEV17AX05kqCSKJZjWB+yeD6Egx4+69NWP9nS3NSI+9tadDLk7pjBHu/4YNy JKv3V8d//asQpQ5atEqAFqZaGkWTeZjyfOl6A8WsoWdJ7NH+/6LQq9ewWOp9oEI/OiXpNzIjU8Wt4 y+OEdPpIi1sIukdEFvKThiLORQPNef5/z8bWZSZOlxy6sJFVRY6v2KYHHECXpnDCCq7FR85N3lOEz w9AuqOCMhSW0chy0lrg041oF8RhkVejp8+1vpWwjD1fzT3chiCsMcYeGJlvmHUpXtccbqNaJ/Iyes /fhPtT/Q==; Received: from a-webmail.thn.aa.net.uk ([2001:8b0:0:62::22] helo=webmail.aa.net.uk) by painless-a.thn.aa.net.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qs7uE-009rgo-0H for sox-users@lists.sourceforge.net; Sun, 15 Oct 2023 21:40:10 +0100 Received: from cpc132308-sgyl43-2-0-cust392.know.cable.virginm.net ([92.237.237.137]) by webmail.aa.net.uk with HTTP (HTTP/1.1 POST); Sun, 15 Oct 2023 20:39:59 +0000 MIME-Version: 1.0 Date: Sun, 15 Oct 2023 21:39:59 +0100 From: Jeremy Nicoll - ml sox users To: sox-users@lists.sourceforge.net In-Reply-To: <510211ee-553e-9016-08af-b3e2b9f4bf7c@u-l-v.org> References: <510211ee-553e-9016-08af-b3e2b9f4bf7c@u-l-v.org> Message-ID: X-Sender: jn.ml.sxu.88@wingsandbeaks.org.uk X-Headers-End: 1qs8L2-00FtgI-0t Subject: Re: Help with --combine merge 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 2023-10-15 14:27, Ulf A. S. Holbrook via Sox-users wrote: > Hello! > > I'm trying to combine a large amount of files into one single file and > wondered if someone could lend a hand. I have individual folders of 90 > 1-minute files in .wav and want to merge them into one 90-channel file. > I'm running > > for file in /dir > > do > > sox --combine merge *.WAV >> merged.wav > > done I am guessing here ... and if that's a linux shell command I don't know if it evaluates *.WAV just once or more than once. It's also not clear to me if you delete merged.wav between experiments. I've never seen an example sox command that uses redirection to place output in a result file, so wonder if what's (not) being written there is progress or error messages rather than audio data? Perhaps sox --combine merge *.WAV merged.wav or sox --combine merge *.WAV \anotherdir\merged.wav would work better. It looks to me as if your code runs sox many times. Why not run it just once reading all the input files in one operation? If multiple runs ARE needed, does it work when the source directory only contains one file? Or two files? Can you make a copy of the generated file each time - NOT in the same directory, so there's no risk of it being matched by the "*.WAV" if that pattern is matched multiple times? - and examine each run's output to see what it actually contains (eg with the stats effect)? -- Jeremy Nicoll - my opinions are my own _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users