mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 02:43:48 +02:00
Add compileSampleStats
This commit is contained in:
+5
-1
@@ -49,6 +49,10 @@
|
||||
const videoTrack = await input.getPrimaryVideoTrack();
|
||||
const drain = new Metamuxer.EncodedVideoSampleDrain(videoTrack);
|
||||
|
||||
console.log(await videoTrack.computeSampleStats())
|
||||
document.body.textContent = performance.now() - start;
|
||||
return;
|
||||
|
||||
const decoderConfig = await videoTrack.getDecoderConfig();
|
||||
const sampleSource = new Metamuxer.EncodedVideoSampleSource(await videoTrack.getCodec());
|
||||
output.addVideoTrack(sampleSource);
|
||||
@@ -65,7 +69,7 @@
|
||||
}
|
||||
|
||||
await output.finalize();
|
||||
document.body.textContent = performance.now() - start;
|
||||
|
||||
|
||||
console.log(target)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user