Skip to content

Commit 7ba7171

Browse files
committed
updates
1 parent 35c1e4e commit 7ba7171

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed
471 KB
Loading
32 KB
Loading

articles/media-services/video-indexer/scenes-shots-keyframes.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,66 @@ Additional characteristics:
6060
* Two shots: shows two persons’ faces of medium size.
6161
* Multiple faces: more than two persons.
6262

63+
## Extracting Keyframes
64+
65+
To extract high-resolution keyframes for your video, you must first upload and index the video.
66+
67+
![Keyframes](./media/scenes-shots-keyframes/extracting-keyframes.png)
68+
69+
### With the Video Indexer website
70+
71+
To extract keyframes using the Video Indexer website, upload and index your video. Once the indexing job is complete, click on the **Download** button and select **Artifacts (ZIP)**. This will download the artifacts folder to your computer.
72+
73+
![Keyframes](./media/scenes-shots-keyframes/extracting-keyframes2.png)
74+
75+
Unzip and open the folder. In the *_KeyframeThumbnail* folder, and you will find all of the keyframes that were extracted from your video.
76+
77+
### With the Video Indexer API
78+
79+
To get keyframes using the Video Indexer API, upload and index your video using the [Upload Video](https://api-portal.videoindexer.ai/docs/services/Operations/operations/Upload-Video?) call. Once the indexing job is complete, call [Get Video Index](https://api-portal.videoindexer.ai/docs/services/Operations/operations/Get-Video-Index?). This will give you all of the insights that Video Indexer extracted from your content in a JSON file.
80+
81+
You will get a list of keyframe IDs as part of each shot's metadata. You will now need to run each of these keyframe IDs on the [Get Thumbnails](https://api-portal.videoindexer.ai/docs/services/Operations/operations/Get-Video-Thumbnail?) call. This will download each of the keyframe images to your computer.
82+
83+
```json
84+
"shots":[
85+
{
86+
"id":0,
87+
"keyFrames":[
88+
{
89+
"id":0,
90+
"instances":[
91+
{
92+
"thumbnailId":"00000000-0000-0000-0000-000000000000",
93+
"start":"0:00:00.209",
94+
"end":"0:00:00.251",
95+
"duration":"0:00:00.042"
96+
}
97+
]
98+
},
99+
{
100+
"id":1,
101+
"instances":[
102+
{
103+
"thumbnailId":"00000000-0000-0000-0000-000000000000",
104+
"start":"0:00:04.755",
105+
"end":"0:00:04.797",
106+
"duration":"0:00:00.042"
107+
}
108+
]
109+
}
110+
],
111+
"instances":[
112+
{
113+
"start":"0:00:00",
114+
"end":"0:00:06.34",
115+
"duration":"0:00:06.34"
116+
}
117+
]
118+
},
119+
120+
]
121+
```
122+
63123
## Next steps
64124

65125
[Examine the Video Indexer output produced by the API](video-indexer-output-json-v2.md#scenes)

0 commit comments

Comments
 (0)