We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 150c7cf commit ba03bf1Copy full SHA for ba03bf1
packages/ffmpeg/server/FFmpegExporterServer.ts
@@ -50,11 +50,15 @@ export class FFmpegExporterServer {
50
}
51
52
// Output settings
53
+ const size = {
54
+ x: Math.round(settings.size.x * settings.resolutionScale),
55
+ y: Math.round(settings.size.y * settings.resolutionScale),
56
+ };
57
this.command
58
.output(path.join(this.config.output, `${settings.name}.mp4`))
59
.outputOptions(['-pix_fmt yuv420p', '-shortest'])
60
.outputFps(settings.fps)
- .size(`${settings.size.x}x${settings.size.y}`);
61
+ .size(`${size.x}x${size.y}`);
62
if (settings.fastStart) {
63
this.command.outputOptions(['-movflags +faststart']);
64
0 commit comments