diff options
| author | jvoisin | 2021-04-24 17:26:38 +0200 |
|---|---|---|
| committer | jvoisin | 2021-04-24 17:26:38 +0200 |
| commit | 85c08c5b68301d655a88dd78f2a5e790009a5eb6 (patch) | |
| tree | 23d1c20fcecbadde3c7dc711ca4e0b5074c54649 /libmat2 | |
| parent | c5841a241dcf737599422e34a99d8001f974d13a (diff) | |
Add support for AIFF files
This should close #151
Diffstat (limited to 'libmat2')
| -rw-r--r-- | libmat2/audio.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libmat2/audio.py b/libmat2/audio.py index 0d54930..bd7add9 100644 --- a/libmat2/audio.py +++ b/libmat2/audio.py | |||
| @@ -90,3 +90,14 @@ class WAVParser(video.AbstractFFmpegParser): | |||
| 90 | 'FileSize', 'FileType', 'FileTypeExtension', | 90 | 'FileSize', 'FileType', 'FileTypeExtension', |
| 91 | 'MIMEType', 'NumChannels', 'SampleRate', 'SourceFile', | 91 | 'MIMEType', 'NumChannels', 'SampleRate', 'SourceFile', |
| 92 | } | 92 | } |
| 93 | |||
| 94 | class AIFFParser(video.AbstractFFmpegParser): | ||
| 95 | mimetypes = {'audio/aiff', 'audio/x-aiff'} | ||
| 96 | meta_allowlist = {'AvgBytesPerSec', 'BitsPerSample', 'Directory', | ||
| 97 | 'Duration', 'Encoding', 'ExifToolVersion', | ||
| 98 | 'FileAccessDate', 'FileInodeChangeDate', | ||
| 99 | 'FileModifyDate', 'FileName', 'FilePermissions', | ||
| 100 | 'FileSize', 'FileType', 'FileTypeExtension', | ||
| 101 | 'MIMEType', 'NumChannels', 'SampleRate', 'SourceFile', | ||
| 102 | 'NumSampleFrames', 'SampleSize', | ||
| 103 | } | ||
