Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Mar 2003 16:03:39 -0600
From:      Stephen Hilton <nospam@hiltonbsd.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2 Mar 2003 20:10:26 +0100
Hanspeter Roth <hampi@rootshell.be> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030302160339.28b7b37c.nospam>