Make video resolution match stage dimensions for now
This commit is contained in:
parent
2a0a1f6a92
commit
2979fdfd6b
|
|
@ -4866,6 +4866,7 @@ async function setupVideoExport(ext, path, canvas, exportContext) {
|
||||||
// Choose muxer and encoder configuration based on file extension
|
// Choose muxer and encoder configuration based on file extension
|
||||||
if (ext === "mp4") {
|
if (ext === "mp4") {
|
||||||
target = new Mp4Muxer.ArrayBufferTarget();
|
target = new Mp4Muxer.ArrayBufferTarget();
|
||||||
|
// TODO: add video options dialog for width, height, bitrate
|
||||||
muxer = new Mp4Muxer.Muxer({
|
muxer = new Mp4Muxer.Muxer({
|
||||||
target: target,
|
target: target,
|
||||||
video: {
|
video: {
|
||||||
|
|
@ -4880,8 +4881,8 @@ async function setupVideoExport(ext, path, canvas, exportContext) {
|
||||||
|
|
||||||
videoConfig = {
|
videoConfig = {
|
||||||
codec: 'avc1.42001f',
|
codec: 'avc1.42001f',
|
||||||
width: 1280,
|
width: config.fileWidth,
|
||||||
height: 720,
|
height: config.fileHeight,
|
||||||
bitrate: bitrate,
|
bitrate: bitrate,
|
||||||
};
|
};
|
||||||
} else if (ext === "webm") {
|
} else if (ext === "webm") {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue