mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-01 04:43:51 +02:00
Add support for PCM codecs in MP4, add 64-bit float PCM support
This commit is contained in:
+12
-1
@@ -237,6 +237,17 @@ export class Mp4OutputFormat extends IsobmffOutputFormat {
|
||||
return [
|
||||
...VIDEO_CODECS,
|
||||
...NON_PCM_AUDIO_CODECS,
|
||||
// These are supported via ISO/IEC 23003-5
|
||||
'pcm-s16',
|
||||
'pcm-s16be',
|
||||
'pcm-s24',
|
||||
'pcm-s24be',
|
||||
'pcm-s32',
|
||||
'pcm-s32be',
|
||||
'pcm-f32',
|
||||
'pcm-f32be',
|
||||
'pcm-f64',
|
||||
'pcm-f64be',
|
||||
...SUBTITLE_CODECS,
|
||||
];
|
||||
}
|
||||
@@ -398,7 +409,7 @@ export class MkvOutputFormat extends OutputFormat {
|
||||
return [
|
||||
...VIDEO_CODECS,
|
||||
...NON_PCM_AUDIO_CODECS,
|
||||
...PCM_AUDIO_CODECS.filter(codec => !['pcm-s8', 'pcm-f32be', 'ulaw', 'alaw'].includes(codec)),
|
||||
...PCM_AUDIO_CODECS.filter(codec => !['pcm-s8', 'pcm-f32be', 'pcm-f64be', 'ulaw', 'alaw'].includes(codec)),
|
||||
...SUBTITLE_CODECS,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user