On Wed, Aug 30, 2023 at 12:50 PM Karl Vogel <voge...@pobox.com> wrote: > > Out of morbid curiosity (and boredom), I started wondering what types of > audio files I had on my systems. I ran "file --mime-type" on 6.8 million > files, looked for "audio/whatever" and got the file extensions. > > Extension MIME-type > --------------------------- > .8svx audio/x-aiff > .aif audio/x-aiff > .aifc audio/x-aiff > .aiff audio/x-aiff > .ape audio/x-ape > .arm audio/amr > .au audio/basic > .flac audio/flac > .m4a audio/x-m4a > .mp3 audio/mpeg > .mpc audio/x-musepack > .oga audio/ogg > .ogg audio/ogg > .opus audio/ogg > .ra audio/x-pn-realaudio > .voc audio/x-unknown > .wav audio/x-wav > > If nothing else, it's faster to run "locate" and look for file extensions; > running "file" on that much crap took nearly 9 hours.
I got curious so I performed the same exercise on 2737754 files (18 TB) taking over 2.5 hours: real 159m40.601s user 38m47.758s sys 16m34.408s I realized that it did it twice because of a snapshot so it's only half the files, but here's the result: 1 ft audio/x-mod 1 mid audio/midi 2 ac3 audio/vnd.dolby.dd-raw 2 data audio/mpeg 2 opus audio/ogg 4 3gp audio/x-m4a 4 ape audio/x-ape 4 it audio/x-mod 5 m4a audio/x-m4a 16 snd audio/x-aiff 20 t audio/x-aiff 25 mp3 audio/x-wav 84 wav audio/x-wav 104 s audio/x-aiff 115 ogg audio/ogg 248 xm audio/x-mod 768 b audio/x-aiff 916 a audio/x-aiff 11805 flac audio/flac 26521 mp3 audio/mpeg 74874 mod audio/x-mod Notably it's missing 52884 .sid files which 'file' did not recognize, and a number of NES and SNES audio files.