Re: [LAU] Discovering file format

From: Bob van der Poel <bob@email-addr-hidden>
Date: Mon Sep 21 2015 - 19:54:28 EEST

On Mon, Sep 21, 2015 at 8:57 AM, Will Godfrey <willgodfrey@email-addr-hidden>
wrote:

> On Sun, 20 Sep 2015 14:03:41 +0200
> Lorenzo Sutton <lorenzofsutton@email-addr-hidden> wrote:
>
> > On 19/09/15 23:12, Will J Godfrey wrote:
> > > Once again, thanks everyone
> > >
> > > As it was only uncompressed files I was looking at 'file' turned out
> to be the
> > > simplest and fastest. I simply redirected the output to create a text
> file, then
> > > picked it up with kwrite.
> >
> > I think soxi (part of sox) should also have been mentioned... then you
> > could quickly hack something like this:
> >
> > for f in *.wav
> > do
> > SR=$(soxi -r "$f")
> > BITS=$(soxi -b "$f")
> > printf "%-20s %s bits, %s Hz\n" "$f" "$BITS" "$SR"
> > done
> >
> > Sample output:
> >
> > agogo_h.wav 16 bits, 44100 Hz
> > agogo_lo.wav 16 bits, 44100 Hz
> > bell_tree.wav 16 bits, 44100 Hz
> > ...
>
> While I very much appreciate these suggestion. It was a one-off situation
> which
> required (shamefully) little knowledge to complete. Were I to do something
> like
> this on a regular basis then I would indeed dive into these more refined
> solutions.
>
> --
>

​Isn't it amazing how many ways there are to do just about anything in
Linux!!!!​

-- 
**** Listen to my FREE CD at http://www.mellowood.ca/music/cedars ****
Bob van der Poel ** Wynndel, British Columbia, CANADA **
EMAIL: bob@email-addr-hidden
WWW:   http://www.mellowood.ca

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Mon Sep 21 20:15:01 2015

This archive was generated by hypermail 2.1.8 : Mon Sep 21 2015 - 20:15:01 EEST