More work

This commit is contained in:
Vanilagy
2026-02-12 12:47:52 +01:00
parent 18d64ffb33
commit b2d00f84d8
12 changed files with 490 additions and 2 deletions
+18
View File
@@ -6,6 +6,9 @@ import { Output } from '../../src/output.js';
import { MkvOutputFormat, MovOutputFormat } from '../../src/output-format.js';
import { BufferTarget } from '../../src/target.js';
import { Conversion } from '../../src/conversion.js';
import { VideoSampleSink } from '../../src/media-sink.js';
import { CustomVideoDecoder, registerDecoder } from '../../src/custom-coder.js';
import { ProResDecoder } from '../../packages/prores-decoder/src/index.js';
test.concurrent('ProRes MOV file reading', async () => {
using input = new Input({
@@ -99,3 +102,18 @@ test.concurrent('ProRes transmuxing into MKV', { timeout: 60_000 }, async () =>
expect(decoderConfig.codec).toBe('apch');
expect(decoderConfig.description).toBeUndefined();
});
test.concurrent.only('ProRes sample ahh', async () => {
registerDecoder(ProResDecoder);
using input = new Input({
source: new UrlSource('https://pub-cf9fcfcb5c0a44e9b1bb5ff890e041ae.r2.dev/IMG_0158-prores-log.MOV'),
formats: ALL_FORMATS,
});
const videoTrack = (await input.getPrimaryVideoTrack())!;
const sink = new VideoSampleSink(videoTrack);
const sample = await sink.getSample(0);
console.log(sample);
});