mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 11:24:43 +00:00
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:
+1
@@ -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',
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user