mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-30 12:23:52 +02:00
Migrate all codec data parsing logic into new file
This commit is contained in:
@@ -14,7 +14,6 @@ import {
|
||||
import {
|
||||
AudioCodec,
|
||||
generateAv1CodecConfigurationFromCodecString,
|
||||
parseOpusIdentificationHeader,
|
||||
parsePcmCodec,
|
||||
PCM_AUDIO_CODECS,
|
||||
PcmAudioCodec,
|
||||
@@ -32,6 +31,7 @@ import {
|
||||
IsobmffVideoTrackData,
|
||||
Sample,
|
||||
} from './isobmff-muxer';
|
||||
import { parseOpusIdentificationHeader } from '../codec-data';
|
||||
|
||||
export class IsobmffBoxWriter {
|
||||
private helper = new Uint8Array(8);
|
||||
|
||||
@@ -1,18 +1,21 @@
|
||||
import { AvcDecoderConfigurationRecord, HevcDecoderConfigurationRecord } from '../avc';
|
||||
import {
|
||||
AacCodecInfo,
|
||||
AudioCodec,
|
||||
Av1CodecInfo,
|
||||
extractAudioCodecString,
|
||||
extractAv1CodecInfoFromFrame,
|
||||
extractVideoCodecString,
|
||||
extractVp9CodecInfoFromFrame,
|
||||
MediaCodec,
|
||||
parseAacAudioSpecificConfig,
|
||||
PCM_AUDIO_CODECS,
|
||||
VideoCodec,
|
||||
Vp9CodecInfo,
|
||||
} from '../codec';
|
||||
import {
|
||||
AvcDecoderConfigurationRecord,
|
||||
HevcDecoderConfigurationRecord,
|
||||
Vp9CodecInfo,
|
||||
Av1CodecInfo,
|
||||
extractVp9CodecInfoFromFrame,
|
||||
extractAv1CodecInfoFromFrame,
|
||||
} from '../codec-data';
|
||||
import { Demuxer } from '../demuxer';
|
||||
import { Input } from '../input';
|
||||
import {
|
||||
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
serializeAvcDecoderConfigurationRecord,
|
||||
serializeHevcDecoderConfigurationRecord,
|
||||
transformAnnexBToLengthPrefixed,
|
||||
} from '../avc';
|
||||
} from '../codec-data';
|
||||
|
||||
export const GLOBAL_TIMESCALE = 1000;
|
||||
const TIMESTAMP_OFFSET = 2_082_844_800; // Seconds between Jan 1 1904 and Jan 1 1970
|
||||
|
||||
Reference in New Issue
Block a user