Author Topic: updated aup.trid.xml for Audacity Project  (Read 710 times)

jenderek

  • Sr. Member
  • ****
  • Posts: 375
updated aup.trid.xml for Audacity Project
« on: April 21, 2023, 01:34:51 AM »
Hello trid users,

some days ago i updated definition for Audacity 3 Project. These have
the suffix AUP3. Older variants have 3 byte suffix AUP without digit
3. So for control reasons i look for such extensions.

So i run trid utility on such Audacity examples. My AUP samples are
described as correctly with low priority generic as "Generic XML
(ASCII)" with mime type text/xml by xml.trid.xml. With high priority
my samples are described as "Audacity Project" with suffix AUP and
mime type text/xml (See appended output/trid-v-old.txt).d

For comparison reason i also run file command (version 5.44) on such
samples. Here these AUP samples are described as "XML 1.0 document"
with additional information like "ASCII text" (see appended
output/file-5.44.txt) and mime type text/xml (see appended
output/file-i-5.44.txt) and no suffix (see appended
output/file-ext-5.44.txt).

For comparison reason i also run the file format identification
utility DROID ( See https://sourceforge.net/projects/droid/). Here the
examples are also recognized. These are described as "Audacity Project
File" with version "2.x" and with suffix AUP, but without mime type by
PUID fmt/1825 (See appended output/droid-aup.csv)

On my Raspberry pi Debian 11 based according to free desktop mime data
base for AUP samples instead of type text/xml an own user defined is
used. That information can also be found in mime data base
audacity.xml found for example in sub directory src inside audacity
sources. So that is now expressed inside TrID definition by line like:
   <Mime>application/x-audacity-project</Mime>

I also found hints or proposal that application/x-audacity-project+xml
mime type should be used here and for version 3 variant with AUP3
suffix the application/x-audacity-project+sqlite3 mime type. But i am
not sure about that items. So i do not apply this and just mention my
observations.

So i run tridscan on my AUP samples to update aup.trid.xml.

With the updated trid definition now my AUP examples are described
like before but now a specific mime type is shown (see appended
output/trid-v-new.txt). TrID definitions, few samples and output are
stored in archive aup_pi.zip. I hope that my definition can be used in
future version of triddefs.

With best wishes
Jörg Jenderek

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2743
    • Mark0's Home Page
Re: updated aup.trid.xml for Audacity Project
« Reply #1 on: April 23, 2023, 02:31:17 PM »
Thanks!