Fix incorrectly processed timestamps for fragmented MP4

This commit is contained in:
Vanilagy
2025-06-07 18:54:19 +02:00
parent 0359a7f2b1
commit f5a56e1f62
3 changed files with 53 additions and 13 deletions
+4 -4
View File
@@ -21,7 +21,7 @@
chunked: true,
chunkSize: 2**20
});
const outputFormat = new Metamuxer.Mp4OutputFormat();
const outputFormat = new Metamuxer.Mp4OutputFormat({ fastStart: 'fragmented' });
const button = document.createElement('button');
button.textContent = 'Cancel';
@@ -41,7 +41,7 @@
//numberOfChannels: 1,
//sampleRate: 4000
//discard: true
forceReencode: true,
//forceReencode: true,
},
/*
video: {
@@ -72,7 +72,7 @@
//width: 1280,
//discard: true,
//width: 640
forceReencode: true,
//forceReencode: true,
//rotate: 90
//width: 720 ?? 2160,
//height: 1280 ?? 3840,
@@ -85,7 +85,7 @@
},
trim: {
start: 0,
end: 40
end: 3
},
});
console.log(conversion);