Add fullCodecString and rename other config field

This commit is contained in:
Vanilagy
2025-04-05 16:49:58 +02:00
parent c95058e659
commit 97e2a9c1ba
3 changed files with 121 additions and 19 deletions
+3 -2
View File
@@ -42,7 +42,7 @@
format = new Metamuxer.Mp4OutputFormat({ fastStart: 'fragmented' }); // new Metamuxer.MkvOutputFormat();// new Metamuxer.Mp4OutputFormat({ fastStart: false });
format = new Metamuxer.OggOutputFormat();
format = new Metamuxer.Mp4OutputFormat({ fastStart: 'fragmented', minimumFragmentDuration: 2 });
format = new Metamuxer.WebMOutputFormat({ minimumClusterDuration: 2 });
format = new Metamuxer.MkvOutputFormat({ minimumClusterDuration: 2 });
let target = new Metamuxer.BufferTarget();
/*
@@ -87,7 +87,8 @@
*/
let videoSource = new Metamuxer.CanvasSource(canvas, {
codec: 'av1',
codec: 'avc',
fullCodecString: 'avc1.42001f',
bitrate: 1e6
});
let audioSource = new Metamuxer.AudioBufferSource({