summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Brüns <stefan.bruens@rwth-aachen.de>2020-05-05 00:29:29 +0200
committerStefan Brüns <stefan.bruens@rwth-aachen.de>2020-05-05 18:24:53 +0200
commitc97f1c1eaad1204a5d27862db2c7c5433f808b7d (patch)
tree95546956fbf728555a64aa730629a27db9eb26a8
parent297ecd2c247a053e0ae5047686f75734e70cdc69 (diff)
downloadshared-mime-info-c97f1c1eaad1204a5d27862db2c7c5433f808b7d.tar.gz
Split Audible audio mime types
The old "Format 2/3/4" audible files are proprietary formats, while the newer "Enhanced" type is actually an ISO Base Media File Format compliant file (aka ISOBMFF/M4B/Quicktime). The audio stream is encrypted, but meta data (author, title, cover image) are unencrypted and can be used by standard tools. Fixes #134.
-rw-r--r--data/freedesktop.org.xml.in10
-rw-r--r--tests/mime-detection/list2
2 files changed, 8 insertions, 4 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 405b2590..ea904b12 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -4142,12 +4142,16 @@ command to generate the output files.
<magic priority="50">
<!-- https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/aadec.c#L33 -->
<match type="big32" value="1469084982" offset="4"/>
- <match type="string" value="aax " offset="8"/>
</magic>
<glob pattern="*.aa"/>
- <glob pattern="*.aax"/>
<alias type="audio/vnd.audible"/>
- <alias type="audio/vnd.audible.aax"/>
+ </mime-type>
+ <mime-type type="audio/vnd.audible.aax">
+ <comment>Audible Enhanced audio</comment>
+ <magic priority="50">
+ <match type="string" value="ftypaax " offset="4"/>
+ </magic>
+ <glob pattern="*.aax"/>
</mime-type>
<mime-type type="audio/x-it">
<comment>Impulse Tracker audio</comment>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 8751bc5c..bc72b0f1 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -510,7 +510,7 @@ simon.669 audio/x-mod
4jsno.669 audio/x-mod
# Copied from https://github.com/inAudible-NG/audible-samples
test.aa audio/x-pn-audibleaudio
-test.aax audio/x-pn-audibleaudio
+test.aax audio/vnd.audible.aax
# MPEG-4 files
mp4v1-video-header.mp4 video/mp4
mp4v2-video-header.mp4 video/mp4