Add VP8, VP9 and AV1 support to MP4 demuxer

This commit is contained in:
David Payr
2024-12-29 22:31:40 +01:00
parent 53231e5a55
commit 6fbb57cf7c
5 changed files with 192 additions and 11 deletions
+2
View File
@@ -203,6 +203,8 @@ async function runAudioIterator() {
}
function formatSeconds(seconds) {
seconds = Math.round(seconds * 1000) / 1000; // Round to milliseconds
const minutes = Math.floor(seconds / 60);
const remainingSeconds = Math.floor(seconds % 60);
return `${minutes}:${remainingSeconds.toString().padStart(2, '0')}.${Math.floor(1000 * seconds % 1000).toString().padStart(3, '0')}`;