Remove media sinks, adapt conversion code and computePacketStats to use cursors, remove setTimestamp, setDuration and setDuration on samples, add sample clone override options, optimize async mutex

This commit is contained in:
Vanilagy
2025-12-28 17:50:01 +01:00
parent e56e754f9e
commit eed49ee1d0
18 changed files with 1313 additions and 2616 deletions
+8 -2
View File
@@ -56,6 +56,7 @@
}),
output,
audio: (_, n) => ({
codec: 'opus',
discard: n > 1,
//codec: 'opus',
//codec: 'opus',
@@ -100,7 +101,12 @@
},
*/
video: () => ({
//discard: true,
allowRotationMetadata: false,
forceTranscode: true,
width: 320,
frameRate: 3,
//frameRate: 30,
//width: 720,
//frameRate: 30,
//bitrate: Mediabunny.QUALITY_VERY_LOW,
@@ -180,8 +186,8 @@
}
},
trim: {
start: 0,
end: 4
start: 590,
//end: 590
},
});
console.log(conversion);