We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c628e43 commit c7d1b03Copy full SHA for c7d1b03
1 file changed
apps/media-server/src/lib/ffmpeg-video.ts
@@ -201,7 +201,10 @@ export async function processVideo(
201
onProgress?: ProgressCallback,
202
abortSignal?: AbortSignal,
203
): Promise<TempFileHandle> {
204
- const opts = { ...DEFAULT_OPTIONS, ...options };
+ const definedOptions = Object.fromEntries(
205
+ Object.entries(options).filter(([, v]) => v !== undefined),
206
+ ) as VideoProcessingOptions;
207
+ const opts = { ...DEFAULT_OPTIONS, ...definedOptions };
208
const outputTempFile = await createTempFile(".mp4");
209
210
const videoTranscode = needsVideoTranscode(metadata, opts);
0 commit comments