Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(media-server): pass inputExtension through video processing route

Richie McIlroy7ad1d030cfd9
diff --git a/apps/media-server/src/routes/video.ts b/apps/media-server/src/routes/video.ts
index d751e0639..fc2d99d80 100644
--- a/apps/media-server/src/routes/video.ts
+++ b/apps/media-server/src/routes/video.ts
@@ -49,6 +49,7 @@ const processSchema = z.object({
outputPresignedUrl: z.string().url(),
thumbnailPresignedUrl: z.string().url().optional(),
webhookUrl: z.string().url().optional(),
+ inputExtension: z.string().optional(),
maxWidth: z.number().max(4096).optional(),
maxHeight: z.number().max(4096).optional(),
crf: z.number().min(0).max(51).optional(),
@@ -295,6 +296,7 @@ async function processVideoAsync(
const inputTempFile = await downloadVideoToTemp(
videoUrl,
+ options.inputExtension,
abortController.signal,
);
updateJob(jobId, { inputTempFile });