On Sun, 12 Dec 2010, Scott Robbins wrote: > To: CentOS mailing list <centos@xxxxxxxxxx> > From: Scott Robbins <scottro@xxxxxxxxxx> > Subject: Re: Stripping silent periods from MP3s > > On Sun, Dec 12, 2010 at 05:48:36PM +0000, Keith Roberts wrote: >> I'm on Centos 5.5, and would like to use sox to strip out >> any periods of silence > 5 seconds from a batch mp3 audio >> files. > > ffmpeg can do this. > Assuming it's the first 5 seconds (as an example), syntax would be > > ffmpeg -i longerfile.mp3 -ss 5 -t 300 newfile.mp3 > > on a 300 second mp3. In other words, the -ss is the start time and the > -t is the duration of time you want to keep. So, that will give you all > but the first 5 seconds of the file. > > You would have to know the duration of each file. > > > You might also want to use the -sameq argument as well, which will keep > the new file at the same quality as the old one. > > ffmpeg -i longerfile.mp3 -ss 5 -t 300 -sameq newfile.mp3 Hi Scott. Thanks for the reply. I need to remove (or shorten to 5 seconds) any silent sections throughout the Mp3 file - not just the beginning or the end. So all I end up with in the output file is the original, with those silent periods truncated down to ~ 5 secs. Keith -- In theory, theory and practice are the same; in practice they are not. This email was sent from my laptop with Centos 5.5 _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos