refactor(transcode): offload video embedding chunk slicing to transcode queue (#539)

* refactor(transcode): offload video embedding chunk slicing to transcode queue

* fix(transcode): address video chunk offloading review findings
This commit is contained in:
Yiling-J
2026-11-22 11:52:58 +08:00
committed by GitHub
parent 3943407093
commit aabf59cbe7
23 changed files with 1226 additions and 434 deletions
+1
View File
@@ -154,6 +154,7 @@ export const WorkflowTaskType = {
transcode_image_annotation: 'transcode_image_annotation',
transcode_watermark: 'transcode_watermark',
transcode_3d: 'transcode_3d',
transcode_video_chunks: 'transcode_video_chunks',
ai_metadata_autofill: 'ai_metadata_autofill',
chat: 'chat',
ai_embedding: 'ai_embedding',
File diff suppressed because one or more lines are too long
+11
View File
@@ -360,6 +360,16 @@ declare global {
annotations?: AnnotationList | null
}
export interface VideoChunksSpec {
parentTaskId?: string
assetKey?: string
format?: 'video' | 'frames'
chunks: Array<{
startTime: number
endTime: number
}>
}
export interface WorkflowTaskPayload {
projectId: string
transcode?: TaskSpec
@@ -370,6 +380,7 @@ declare global {
screenshot?: ScreenshotSpec
imageAnnotation?: ImageAnnotationSpec
pdfPages?: PdfPagesSpec
videoChunks?: VideoChunksSpec
/** Render that produced this result, if any (set by the read_asset pipeline). */
assetRead?: AssetReadRequest
watermark?: WatermarkTaskPayload