From owner-freebsd-multimedia Sun Mar 2 14: 4:21 2003 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D61B37B401 for ; Sun, 2 Mar 2003 14:04:19 -0800 (PST) Received: from hermes.pressenter.com (hermes.pressenter.com [209.224.20.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD88143F3F for ; Sun, 2 Mar 2003 14:04:18 -0800 (PST) (envelope-from nospam@hiltonbsd.com) Received: from [209.224.33.230] (helo=daggar.sbgnet.net) by hermes.pressenter.com with smtp (Exim 3.16 #1) id 18pbZ4-00045T-00; Sun, 02 Mar 2003 16:04:11 -0600 Date: Sun, 2 Mar 2003 16:03:39 -0600 From: Stephen Hilton To: freebsd-multimedia@FreeBSD.ORG Cc: hampi@rootshell.be Subject: Re: concatenating audio files Message-Id: <20030302160339.28b7b37c.nospam@hiltonbsd.com> In-Reply-To: <20030302191026.GA552@gicco.homeip.net> References: <20030302191026.GA552@gicco.homeip.net> X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, 2 Mar 2003 20:10:26 +0100 Hanspeter Roth wrote: > Hello, > > is there a tool that can concatenate .wav files in batch mode > (without GUI)? > > -Hanspeter > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-multimedia" in the body of the message > Hanspeter, I think this can be done with sox (ports/auido/sox), Fragments from a script I have written, not a complete solution, just examples to work from: [snip] dagrab -v -s -d "${mydrive}" -m 0664 -a 2>/dev/null rm mtracks.raw > /dev/null 2>&1 for xloop in `ls -c1 *.wav` do sox "${xloop}" -t raw - | cat - >> mtracks.raw # sox strips off all header info from wav files so combining is possible rm "${xloop}" done sox -r 44100 -w -s -c 2 mtracks.raw "${mytitle}.wav" # sox now writes back from raw file to wav format with header rm mtracks.raw /usr/bin/clear echo "Done with sox, on to bladeenc wav to mp3 encoder" sleep 1 bladeenc -prio=NORMAL "${mytitle}.wav" -delete # bladeenc will delete the source wav file after creating the mp3 mv *.mp3 "${myartist}" > /dev/null 2>&1 [snip] HTH Stephen Hilton nospam@hiltonbsd.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message