MCPcopy Create free account
hub / github.com/CapSoftware/Cap / getCompletedMetadata

Function getCompletedMetadata

apps/web/workflows/process-video.ts:350–364  ·  view source on GitHub ↗
(
	videoId: string,
)

Source from the content-addressed store, hash-verified

348}
349
350async function getCompletedMetadata(
351 videoId: string,
352): Promise<MediaServerProcessResult["metadata"] | null> {
353 const [video] = await db()
354 .select({
355 duration: videos.duration,
356 width: videos.width,
357 height: videos.height,
358 fps: videos.fps,
359 })
360 .from(videos)
361 .where(eq(videos.id, videoId as Video.VideoId));
362
363 return getMetadataFromVideoRow(video);
364}
365
366async function waitForProcessingCompletion(
367 videoId: string,

Callers 1

Calls 2

dbFunction · 0.90
getMetadataFromVideoRowFunction · 0.70

Tested by

no test coverage detected