mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
Support AVC in Annex B format, add AVCDecoderConfigurationRecord extraction logic, add Annex B to AVCC converter, add support for Matroska Clusters with undefined size, & a couple other improvements
This commit is contained in:
+3
-3
@@ -21,7 +21,7 @@
|
||||
chunked: true,
|
||||
chunkSize: 2**20
|
||||
});
|
||||
const outputFormat = new Metamuxer.WavOutputFormat();
|
||||
const outputFormat = new Metamuxer.Mp4OutputFormat();
|
||||
|
||||
const button = document.createElement('button');
|
||||
button.textContent = 'Cancel';
|
||||
@@ -103,12 +103,12 @@
|
||||
console.log("Done", target.buffer);
|
||||
|
||||
const video = document.createElement('video');
|
||||
video.src = URL.createObjectURL(new Blob([target.buffer]));
|
||||
video.src = URL.createObjectURL(new Blob([target.buffer], { type: outputFormat.mimeType }));
|
||||
video.controls = true;
|
||||
document.body.append(video);
|
||||
video.play();
|
||||
|
||||
download(new Blob([target.buffer]), 'converted' + outputFormat.fileExtension);
|
||||
//download(new Blob([target.buffer]), 'converted' + outputFormat.fileExtension);
|
||||
|
||||
function download(blob, filename) {
|
||||
const url = URL.createObjectURL(blob);
|
||||
|
||||
Reference in New Issue
Block a user