Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions analyzer_templates/video_chapters_dynamic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"description": "Dynamic Chaptering",
"scenario": "videoShot",
"config": {
"returnDetails": true,
"enableSegmentation": true,
"segmentationMode": "custom",
"segmentationDefinition": "Segment the video into stories or chapters. A story (chapter) in a video is a self-contained portion of the program dedicated to a specific news story, topic, or theme. Each segment typically includes a distinct introduction, development, and (sometimes) a conclusion, and can feature a combination of elements such as reporter narration, interviews, sound bites, relevant footage (B-roll), and graphics.",
"locales": [
"en-US"
]
},
"BaseAnalyzerId": "prebuilt-videoAnalyzer",
"fieldSchema": {
"name": "Content Understanding - Dynamic Chaptering",
"fields": {
"Segments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"SegmentId": {
"type": "string"
},
"SegmentType": {
"type": "string",
"method": "generate",
"description": "The short title or a short summary of the story or chapter."
},
"Scenes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Description": {
"type": "string",
"method": "generate",
"description": "A five-word description of the scene. A scene is a smaller segment of the segment where a continous block for storytelling unfolds within a specific time, place, and set of characters. A scene can only belong to a single chapter, and cannot overlap with other scenes. Scenes are sequential across the video."
},
"StartTimestamp": {
"type": "string",
"description": "the start timestamp of the scene"
},
"EndTimestamp": {
"type": "string",
"description": "the end timestamp of the scene"
}
}
}
}
}
}
}
}
}
}
56 changes: 56 additions & 0 deletions analyzer_templates/video_chapters_structured.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"description": "Structured Chaptering",
"scenario": "videoShot",
"config": {
"returnDetails": true,
"enableSegmentation": true,
"segmentationMode": "custom",
"segmentationDefinition": "Segment the video into only three chapter types: 'Topic Introduction', 'Details About the Work Done', and 'Outcome, Conclusion and Results'. Reason about the content and determine the best time to segment the video according to these chapter types. Use the timestamp of each image to identify the start and end time of each chapter, and avoid chapter overlap. You must always define the three chapter types, and each chapter must have at least one scene.",
"locales": [
"en-US"
]
},
"BaseAnalyzerId": "prebuilt-videoAnalyzer",
"fieldSchema": {
"name": "Content Understanding - Structured Chaptering",
"fields": {
"Segments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"SegmentId": {
"type": "string"
},
"SegmentType": {
"type": "string",
"method": "generate",
"description": "The chapter type for the segment"
},
"Scenes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Description": {
"type": "string",
"method": "generate",
"description": "A five-word description of the scene. A scene is a smaller segment of the segment where a continous block for storytelling unfolds within a specific time, place, and set of characters. A scene can only belong to a single chapter, and cannot overlap with other scenes. Scenes are sequential across the video."
},
"StartTimestamp": {
"type": "string",
"description": "the start timestamp of the scene"
},
"EndTimestamp": {
"type": "string",
"description": "the end timestamp of the scene"
}
}
}
}
}
}
}
}
}
}
Loading