[PD] get data from mp3 files
chakekatzil at gmail.com
Sat Apr 4 21:12:34 CEST 2015
On Sat, Apr 4, 2015 at 2:21 PM, João Pais <jmmmpais at gmail.com> wrote:
> I couldn't find an answer for this, so I doubt there is one: I have 100s
>>> of mp3 files, from which I needed to extract data - namely name, and
>> Would that be file name, or artist name?
> yes, file name. although as a general idea it's interesting to get any
> field of the metadata.
> As I can tell, there isn't any object that does this, e.g. like
>>> [ext13/wavinfo] (hopefully I'm wrong).
>>> Does anyone has an elegant solution for this?
>> On Linux I'd simply run the sox or soxi command from the command line:
>> soxi *.mp3
>> and save its output to a textfile.
>> Afaik sox is available for Windows as well, perhaps take a look at
> yes, I imagine there is no other choice with current pd objects. which is
> a pity, as mp3 support is far from ideal.
It seems there is no standard for the metadata in mp3 and several different
methods are in use. Some of them are at the end of the file and others at
the beginning, so it's not straightforward.
Most of the tags give the name but not all of them give the length, and
since mp3 is compressed in a non-linear way, there's no way to determine
the length except by playing it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pd-list