Fix behavior with files with invalid pasp box (with num & den === 0) (fixes #362)

This commit is contained in:
Vanilagy
2026-05-02 14:27:25 +02:00
parent 62dfc5dd1c
commit 9ed21bf9c6
6 changed files with 70 additions and 26 deletions
+4 -2
View File
@@ -25,7 +25,7 @@
chunked: true,
chunkSize: 2**20
});
const outputFormat = new Mediabunny.FlacOutputFormat();
const outputFormat = new Mediabunny.Mp4OutputFormat();
const p = document.createElement('p');
p.textContent = 'Capturing...';
@@ -96,6 +96,7 @@
input,
output,
audio: {
discard: true,
//forceTranscode: true,
//sampleFormat: 's16',
},
@@ -124,7 +125,7 @@
},
*/
video: {
discard: true,
//discard: true,
},
tags: {} ?? {
title: 'Bigggy',
@@ -144,6 +145,7 @@
}
},
trim: {
end: 10,
//start: startTime,
//end: startTime + 2,
},