[LAU] Discovering file format

Ralf Mardorf ralf.mardorf at alice-dsl.net
Sat Sep 19 20:23:37 UTC 2015


On Sat, 19 Sep 2015 21:13:41 +0100, Will Godfrey wrote:
>I have about 150 uncompressed audio files that I want to properly
>categorise, relatively quickly.
>
>The very oldest were recorded as 16bit 44.1k, more recent ones were
>16bit, 48k and the latest ones 24bit 48k.
>
>I've moved them all into the same directory, so is there a simple
>script I can run that will scan this and list the name and details of
>each file?
>
>I can find plenty of programs that can change the format, but can't
>find any that will just tell me what it is :(

[rocketmouse at archlinux ~]$ exiftool /home/music/musicstudio_robo´s_harp/
======== /home/music/musicstudio_robo´s_harp/robo´s_harp_raw_f#_at.wav
ExifTool Version Number         : 10.00
File Name                       : robo´s_harp_raw_f#_at.wav
Directory                       : /home/music/musicstudio_robo´s_harp
File Size                       : 133 kB
File Modification Date/Time     : 2015:04:20 12:44:37+02:00
File Access Date/Time           : 2015:04:20 13:54:01+02:00
File Inode Change Date/Time     : 2015:04:20 18:12:11+02:00
File Permissions                : rw-r--r--
File Type                       : WAV
File Type Extension             : wav
MIME Type                       : audio/x-wav
Encoding                        : Microsoft PCM
Num Channels                    : 1
Sample Rate                     : 44100
Avg Bytes Per Sec               : 88200
Bits Per Sample                 : 16
Duration                        : 1.54 s
======== /home/music/musicstudio_robo´s_harp/robo´s_harp_syn_f#.wav
ExifTool Version Number         : 10.00
File Name                       : robo´s_harp_syn_f#.wav
Directory                       : /home/music/musicstudio_robo´s_harp
File Size                       : 349 kB
File Modification Date/Time     : 2015:04:19 20:32:57+02:00
File Access Date/Time           : 2015:04:19 21:52:11+02:00
File Inode Change Date/Time     : 2015:04:20 06:23:30+02:00
File Permissions                : rw-r--r--
File Type                       : WAV
File Type Extension             : wav
MIME Type                       : audio/x-wav
Encoding                        : Microsoft PCM
Num Channels                    : 2
Sample Rate                     : 44100
Avg Bytes Per Sec               : 176400
Bits Per Sample                 : 16
Duration                        : 2.02 s


More information about the Linux-audio-user mailing list