Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Ensure video dimensions are even after scaling
Richie McIlroy1636ce4fc9c8
diff --git a/apps/media-server/src/lib/ffmpeg-video.ts b/apps/media-server/src/lib/ffmpeg-video.tsindex ae0762cb3..e93244538 100644--- a/apps/media-server/src/lib/ffmpeg-video.ts+++ b/apps/media-server/src/lib/ffmpeg-video.ts@@ -221,7 +221,7 @@ export async function processVideo("-crf",opts.crf.toString(),"-vf",- `scale='min(${opts.maxWidth},iw)':'min(${opts.maxHeight},ih)':force_original_aspect_ratio=decrease`,+ `scale='min(${opts.maxWidth},iw)':'min(${opts.maxHeight},ih)':force_original_aspect_ratio=decrease,scale=trunc(iw/2)*2:trunc(ih/2)*2`,);} else {ffmpegArgs.push("-c:v", "copy");