feat: add support for MXF format in media handling
* Updated supported formats documentation to include MXF. * Added MXF to valid video extensions in tests. * Registered MXF MIME type in mime-types utility.pull/24644/head
parent
f0b069adb9
commit
9765538255
|
|
@ -38,6 +38,7 @@ For the full list, refer to the [Immich source code](https://github.com/immich-a
|
|||
| `MP2T` | `.mts` `.m2ts` `.m2t` | :white_check_mark: | |
|
||||
| `MP4` | `.mp4` `.insv` | :white_check_mark: | |
|
||||
| `MPEG` | `.mpg` `.mpe` `.mpeg` | :white_check_mark: | |
|
||||
| `MXF` | `.mxf` | :white_check_mark: | |
|
||||
| `QUICKTIME` | `.mov` | :white_check_mark: | |
|
||||
| `WEBM` | `.webm` | :white_check_mark: | |
|
||||
| `WMV` | `.wmv` | :white_check_mark: | |
|
||||
|
|
|
|||
|
|
@ -107,6 +107,7 @@ const validVideos = [
|
|||
'.mp4',
|
||||
'.mpg',
|
||||
'.mts',
|
||||
'.mxf',
|
||||
'.vob',
|
||||
'.webm',
|
||||
'.wmv',
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ describe('mimeTypes', () => {
|
|||
{ mimetype: 'image/x-sony-sr2', extension: '.sr2' },
|
||||
{ mimetype: 'image/x-sony-srf', extension: '.srf' },
|
||||
{ mimetype: 'image/x3f', extension: '.x3f' },
|
||||
{ mimetype: 'application/mxf', extension: '.mxf' },
|
||||
{ mimetype: 'video/3gpp', extension: '.3gp' },
|
||||
{ mimetype: 'video/3gpp', extension: '.3gpp' },
|
||||
{ mimetype: 'video/avi', extension: '.avi' },
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@ const video: Record<string, string[]> = {
|
|||
'.mpeg': ['video/mpeg'],
|
||||
'.mpg': ['video/mpeg'],
|
||||
'.mts': ['video/mp2t'],
|
||||
'.mxf': ['application/mxf'],
|
||||
'.vob': ['video/mpeg'],
|
||||
'.webm': ['video/webm'],
|
||||
'.wmv': ['video/x-ms-wmv'],
|
||||
|
|
|
|||
Loading…
Reference in New Issue