Yapperino

This commit is contained in:
Vanilagy
2025-06-16 20:51:58 +02:00
parent f675966004
commit 28597ea93c
7 changed files with 129 additions and 30 deletions
+1 -1
View File
@@ -809,7 +809,7 @@ export class Conversion {
});
const sink = new AudioSampleSink(track);
const iterator = sink.samples(this._startTimestamp, this._endTimestamp); // Todo make sure timestamps work
const iterator = sink.samples(this._startTimestamp, this._endTimestamp);
for await (const sample of iterator) {
if (this._synchronizer.shouldWait(track.id, sample.timestamp)) {
+3 -3
View File
@@ -458,9 +458,9 @@ const TRACK_TYPE_TO_COMPONENT_SUBTYPE: Record<IsobmffTrackData['type'], string>
};
const TRACK_TYPE_TO_HANDLER_NAME: Record<IsobmffTrackData['type'], string> = {
video: 'VideoHandler',
audio: 'SoundHandler',
subtitle: 'TextHandler',
video: 'MediabunnyVideoHandler',
audio: 'MediabunnySoundHandler',
subtitle: 'MediabunnyTextHandler',
};
/** Handler Reference Box: Specifies the media handler component that is to be used to interpret the media's data. */
+1 -1
View File
@@ -53,7 +53,7 @@ import { parseOpusIdentificationHeader } from '../codec-data';
const MIN_CLUSTER_TIMESTAMP_MS = -(2 ** 15);
const MAX_CLUSTER_TIMESTAMP_MS = 2 ** 15 - 1;
const APP_NAME = 'https://github.com/Vanilagy/webm-muxer'; // TODO
const APP_NAME = 'https://github.com/Vanilagy/mediabunny';
const SEGMENT_SIZE_BYTES = 6;
const CLUSTER_SIZE_BYTES = 5;