Skip to content

Commit 5e130f8

Browse files
Add chapter notebook (#106)
1 parent bde2a8c commit 5e130f8

File tree

4 files changed

+599
-0
lines changed

4 files changed

+599
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"description": "Dynamic Chaptering",
3+
"scenario": "videoShot",
4+
"config": {
5+
"returnDetails": true,
6+
"enableSegmentation": true,
7+
"segmentationMode": "custom",
8+
"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.",
9+
"locales": [
10+
"en-US"
11+
]
12+
},
13+
"BaseAnalyzerId": "prebuilt-videoAnalyzer",
14+
"fieldSchema": {
15+
"name": "Content Understanding - Dynamic Chaptering",
16+
"fields": {
17+
"Segments": {
18+
"type": "array",
19+
"items": {
20+
"type": "object",
21+
"properties": {
22+
"SegmentId": {
23+
"type": "string"
24+
},
25+
"SegmentType": {
26+
"type": "string",
27+
"method": "generate",
28+
"description": "The short title or a short summary of the story or chapter."
29+
},
30+
"Scenes": {
31+
"type": "array",
32+
"items": {
33+
"type": "object",
34+
"properties": {
35+
"Description": {
36+
"type": "string",
37+
"method": "generate",
38+
"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."
39+
},
40+
"StartTimestamp": {
41+
"type": "string",
42+
"description": "the start timestamp of the scene"
43+
},
44+
"EndTimestamp": {
45+
"type": "string",
46+
"description": "the end timestamp of the scene"
47+
}
48+
}
49+
}
50+
}
51+
}
52+
}
53+
}
54+
}
55+
}
56+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"description": "Structured Chaptering",
3+
"scenario": "videoShot",
4+
"config": {
5+
"returnDetails": true,
6+
"enableSegmentation": true,
7+
"segmentationMode": "custom",
8+
"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.",
9+
"locales": [
10+
"en-US"
11+
]
12+
},
13+
"BaseAnalyzerId": "prebuilt-videoAnalyzer",
14+
"fieldSchema": {
15+
"name": "Content Understanding - Structured Chaptering",
16+
"fields": {
17+
"Segments": {
18+
"type": "array",
19+
"items": {
20+
"type": "object",
21+
"properties": {
22+
"SegmentId": {
23+
"type": "string"
24+
},
25+
"SegmentType": {
26+
"type": "string",
27+
"method": "generate",
28+
"description": "The chapter type for the segment"
29+
},
30+
"Scenes": {
31+
"type": "array",
32+
"items": {
33+
"type": "object",
34+
"properties": {
35+
"Description": {
36+
"type": "string",
37+
"method": "generate",
38+
"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."
39+
},
40+
"StartTimestamp": {
41+
"type": "string",
42+
"description": "the start timestamp of the scene"
43+
},
44+
"EndTimestamp": {
45+
"type": "string",
46+
"description": "the end timestamp of the scene"
47+
}
48+
}
49+
}
50+
}
51+
}
52+
}
53+
}
54+
}
55+
}
56+
}

0 commit comments

Comments
 (0)