You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VideoDB Node.js SDK allows you to interact with the VideoDB serverless database. Manage videos as intelligent data, not files. It's scalable, cost efficient & optimized for AI applications and LLM integration.
40
40
41
+
<!-- TABLE OF CONTENTS -->
42
+
# Table of Contents
43
+
44
+
-[About The Project](#videoDB-nodejs-sdk)
45
+
-[Installation](#installation)
46
+
-[Quick Start](#quick-start)
47
+
*[Creating a Connection](#creating-a-connection)
48
+
*[Getting a Connection](#getting-a-collection)
49
+
-[Working with a single video](#working-with-a-single-video)
50
+
*[⬆️ Upload Video](#upload-video)
51
+
*[📺 View your Video](#view-your-video)
52
+
*[⛓️ Stream Sections of videos](#stream-sections-of-videos)
53
+
*[🗂️ Indexing a Video](#indexing-a-video)
54
+
*[🔍 Searching inside a video](#searching-inside-a-video)
*[Get the video's transcript](#get-the-videos-transcript)
70
+
*[Get the video's thumbnail](#get-the-videos-thumbnail)
71
+
*[Overlay Subtitle on video](#overlay-subtitle-on-video)
72
+
*[Delete the video](#delete-the-video)
73
+
-[More on `Collection` object](#more-on-collection-object)
74
+
*[Get all videos](#get-all-videos)
75
+
*[Get a video given videoId](#get-a-video-given-videoid)
76
+
*[Delete a video](#delete-a-video)
77
+
-[Roadmap](#roadmap)
78
+
-[Contributing](#contributing)
79
+
-[License](#license)
80
+
41
81
<!-- Installation -->
42
82
43
83
## Installation
@@ -86,7 +126,7 @@ Or using `async`/`await`
86
126
87
127
## Working with a single video
88
128
89
-
#### ⬆️ Upload Video
129
+
#### Upload Video
90
130
91
131
Now that you have established a connection to VideoDB, you can upload your videos using `coll.uploadURL()` or `coll.uploadFile()`.
92
132
You can directly upload files from `youtube`, `any public url`, `S3 bucket` or a `local file path`. A default collection is created when you create your first connection.
console.log('Clipped Video Preview : ', streamPreview);
143
183
```
144
184
145
-
#### 🗂️ Indexing a Video
185
+
#### Indexing a Video
146
186
147
187
To search bits inside a video, you have to first index the video. This can be done by a invoking the index function on the `Video`. VideoDB offers two type of indexes currently.
148
188
@@ -168,7 +208,7 @@ job2.start();
168
208
>
169
209
> ⏱️ Indexing may take some time for longer videos, structure it as a batch job in your application.
170
210
171
-
#### 🔍 Searching inside a video
211
+
#### Searching inside a video
172
212
173
213
Search the segments inside a video. While searching you have options to choose the type of search. VideoDB offers following type of search :
174
214
@@ -192,7 +232,7 @@ indexJob.start();
192
232
193
233
Similarly, you can index and search from scenes using `Video.indexScenes()`
194
234
195
-
#### Viewing Search Results :
235
+
#### Viewing Search Results
196
236
197
237
`video.search()` will return a `SearchResult` object, which contains the sections or as we call them, `shots` of videos which semantically match your search query.
198
238
@@ -203,7 +243,7 @@ Similarly, you can index and search from scenes using `Video.indexScenes()`
203
243
204
244
`VideoDB` can store and search inside multiple videos with ease. By default, videos are uploaded to your default collection.
205
245
206
-
#### 🔄 Using Collection to Upload Multiple Videos
246
+
#### Using Collection to Upload Multiple Videos
207
247
208
248
```ts
209
249
const uploadJobHandler =video=> {
@@ -237,7 +277,7 @@ job3.start();
237
277
-`Collection.getVideo(videoId)`: Returns Video, respective video object from given `videoId`
238
278
-`Collection.deleteVideo(videoId)`: Deletes the video from Collection
239
279
240
-
#### 📂 Search inside multiple videos in a collection
280
+
#### Search inside multiple videos in a collection
241
281
242
282
You can simply Index all the videos in a collection and use the search method to find relevant results. Here we are indexing the spoken content of a collection and performing semantic search.
243
283
@@ -269,7 +309,7 @@ The result here has all the matching bits in a single stream from your collectio
269
309
270
310
> As you can see VideoDB fundamentally removes the limitation of files and gives you power to access and stream videos in a very seamless way. Stay tuned for exciting features in our upcoming version and keep building awesome stuff with VideoDB 🤘
271
311
272
-
## 🎞 Timeline And Assets
312
+
## Timeline And Assets
273
313
274
314
**Timeline and Assets** lets you create programmatic compilation streams with audio, image and text overlays using your video data in VideoDB.
0 commit comments