mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-02 21:33:52 +02:00
Add support for PCM codecs in MP4, add 64-bit float PCM support
This commit is contained in:
@@ -575,6 +575,7 @@ export const CODEC_STRING_MAP: Partial<Record<MediaCodec, string>> = {
|
||||
'pcm-s32': 'A_PCM/INT/LIT',
|
||||
'pcm-s32be': 'A_PCM/INT/BIG',
|
||||
'pcm-f32': 'A_PCM/FLOAT/IEEE',
|
||||
'pcm-f64': 'A_PCM/FLOAT/IEEE',
|
||||
|
||||
'webvtt': 'S_TEXT/WEBVTT',
|
||||
};
|
||||
|
||||
@@ -707,6 +707,8 @@ export class MatroskaDemuxer extends Demuxer {
|
||||
} else if (this.currentTrack.codecId === 'A_PCM/FLOAT/IEEE') {
|
||||
if (this.currentTrack.info.bitDepth === 32) {
|
||||
this.currentTrack.info.codec = 'pcm-f32';
|
||||
} else if (this.currentTrack.info.bitDepth === 64) {
|
||||
this.currentTrack.info.codec = 'pcm-f64';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user