feat: M2TS (#2896)

Support the Blu-ray disc Audio-Video (BDAV) MPEG-2 Transport Stream (M2TS) format.

https://en.wikipedia.org/wiki/.m2ts

Fixes: #2350
This commit is contained in:
Thomas
2023-06-21 19:50:12 +01:00
committed by GitHub
parent c03d8e312a
commit 069c68bfe4
7 changed files with 79 additions and 44 deletions

View File

@@ -51,7 +51,6 @@ describe('assetUploadOption', () => {
for (const { mimetype, extension } of [
{ mimetype: 'image/avif', extension: 'avif' },
{ mimetype: 'image/dng', extension: 'dng' },
{ mimetype: 'image/gif', extension: 'gif' },
{ mimetype: 'image/heic', extension: 'heic' },
{ mimetype: 'image/heif', extension: 'heif' },
@@ -89,8 +88,8 @@ describe('assetUploadOption', () => {
{ mimetype: 'image/x-sony-sr2', extension: 'sr2' },
{ mimetype: 'image/x-sony-srf', extension: 'srf' },
{ mimetype: 'video/3gpp', extension: '3gp' },
{ mimetype: 'video/avi', extension: 'avi' },
{ mimetype: 'video/mov', extension: 'mov' },
{ mimetype: 'video/mp2t', extension: 'm2ts' },
{ mimetype: 'video/mp2t', extension: 'mts' },
{ mimetype: 'video/mp4', extension: 'mp4' },
{ mimetype: 'video/mpeg', extension: 'mpg' },
{ mimetype: 'video/quicktime', extension: 'mov' },

View File

@@ -51,7 +51,6 @@ const logger = new Logger('AssetUploadConfig');
const validMimeTypes = [
'image/avif',
'image/dng',
'image/gif',
'image/heic',
'image/heif',
@@ -88,8 +87,7 @@ const validMimeTypes = [
'image/x-sony-sr2',
'image/x-sony-srf',
'video/3gpp',
'video/avi',
'video/mov',
'video/mp2t',
'video/mp4',
'video/mpeg',
'video/quicktime',