mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
Modify audio encoder to fill gaps between timestamps with silence to ensure AV sync (fixes #176)
This commit is contained in:
+4
-1
@@ -57,6 +57,7 @@
|
||||
output,
|
||||
audio: (_, n) => ({
|
||||
discard: n > 1,
|
||||
codec: 'aac',
|
||||
//codec: 'opus',
|
||||
/*
|
||||
process: (sample) => {
|
||||
@@ -72,7 +73,7 @@
|
||||
//numberOfChannels: 1,
|
||||
//sampleRate: 4000
|
||||
//discard: true
|
||||
//forceTranscode: true,
|
||||
forceTranscode: true,
|
||||
}),
|
||||
/*
|
||||
video: {
|
||||
@@ -100,6 +101,7 @@
|
||||
*/
|
||||
video: () => ({
|
||||
//discard: true,
|
||||
/*
|
||||
process: (sample) => {
|
||||
if (!ctx) {
|
||||
// Create a canvas for image compositing
|
||||
@@ -118,6 +120,7 @@
|
||||
|
||||
return ctx.canvas;
|
||||
},
|
||||
*/
|
||||
//width: 300,
|
||||
//alpha: 'keep',
|
||||
//width: 320,
|
||||
|
||||
Reference in New Issue
Block a user