From 2979fdfd6ba4d9f4314273d452861cb61b8900de Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Tue, 14 Jan 2025 19:48:16 -0500 Subject: [PATCH] Make video resolution match stage dimensions for now --- src/main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 745e9b1..b9fc100 100644 --- a/src/main.js +++ b/src/main.js @@ -4866,6 +4866,7 @@ async function setupVideoExport(ext, path, canvas, exportContext) { // Choose muxer and encoder configuration based on file extension if (ext === "mp4") { target = new Mp4Muxer.ArrayBufferTarget(); + // TODO: add video options dialog for width, height, bitrate muxer = new Mp4Muxer.Muxer({ target: target, video: { @@ -4880,8 +4881,8 @@ async function setupVideoExport(ext, path, canvas, exportContext) { videoConfig = { codec: 'avc1.42001f', - width: 1280, - height: 720, + width: config.fileWidth, + height: config.fileHeight, bitrate: bitrate, }; } else if (ext === "webm") {