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
Copy file name to clipboardExpand all lines: articles/media-services/video-indexer/upload-index-videos.md
+46-14Lines changed: 46 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ manager: femila
9
9
ms.service: media-services
10
10
ms.subservice: video-indexer
11
11
ms.topic: article
12
-
ms.date: 01/14/2020
12
+
ms.date: 01/13/2020
13
13
ms.author: juliako
14
14
---
15
15
@@ -21,9 +21,12 @@ When uploading videos with Video Indexer API, you have the following upload opti
21
21
* send the video file as a byte array in the request body,
22
22
* Use existing Azure Media Services asset by providing the [asset ID](https://docs.microsoft.com/azure/media-services/latest/assets-concept) (supported in paid accounts only).
23
23
24
-
The article shows how to use the [Upload video](https://api-portal.videoindexer.ai/docs/services/operations/operations/Upload-video?) API to upload and index your videos based on a URL. The code sample in the article includes the commented out code that shows how to upload the byte array. <br/>The article also discusses some of the parameters that you can set on the API to change the process and output of the API.
24
+
Once your video has been uploaded, Video Indexer (optionally) encodes the video (discussed in the article). When creating a Video Indexer account, you can choose a free trial account (where you get a certain number of free indexing minutes) or a paid option (where you are not limited by the quota). With free trial, Video Indexer provides up to 600 minutes of free indexing to website users and up to 2400 minutes of free indexing to API users. With paid option, you create a Video Indexer account that is [connected to your Azure subscription and an Azure Media Services account](connect-to-azure.md). You pay for minutes indexed as well as the Media Account related charges.
25
25
26
-
Once your video has been uploaded, Video Indexer, optionally encodes the video (discussed in the article). When creating a Video Indexer account, you can choose a free trial account (where you get a certain number of free indexing minutes) or a paid option (where you are not limited by the quota). With free trial, Video Indexer provides up to 600 minutes of free indexing to website users and up to 2400 minutes of free indexing to API users. With paid option, you create a Video Indexer account that is [connected to your Azure subscription and an Azure Media Services account](connect-to-azure.md). You pay for minutes indexed as well as the Media Account related charges.
26
+
The article shows how to upload and index your videos with these options:
27
+
28
+
*[The Video Indexer website](#website)
29
+
*[The Video Indexer APIs](#apis)
27
30
28
31
## Uploading considerations and limitations
29
32
@@ -36,22 +39,50 @@ Once your video has been uploaded, Video Indexer, optionally encodes the video (
36
39
- The URL provided in the `videoURL` param needs to be encoded.
37
40
- Indexing Media Services assets has the same limitation as indexing from URL.
38
41
- Video Indexer has a max duration limit of 4 hours for a single file.
42
+
- The URL needs to be accessible (for example a public URL).
43
+
44
+
If it is a private URL, the access token need to be provided in the request.
45
+
- The URL has to point to a valid media file and not to a webpage, such as a link to `www.youtube.com` page.
39
46
- You can upload up to 60 movies per minute.
40
47
41
48
> [!Tip]
42
49
> It is recommended to use .NET framework version 4.6.2. or higher because older .NET frameworks do not default to TLS 1.2.
43
50
>
44
51
> If you must use older .NET frameworks, add one line into your code before making the REST API call: <br/> System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
45
52
46
-
## Configurations and params
53
+
## Supported file formats for Video Indexer
54
+
55
+
See the [input container/file formats](../latest/media-encoder-standard-formats.md#input-containerfile-formats) article for a list of file formats that you can use with Video Indexer.
56
+
57
+
## <aid="website"/>Upload and index a video using the Video Indexer website
58
+
59
+
> [!NOTE]
60
+
> A name of the video must be no greater than 80 characters.
61
+
62
+
1. Sign in on the [Video Indexer](https://www.videoindexer.ai/) website.
63
+
2. To upload a video, press the **Upload** button or link.
Once Video Indexer is done analyzing, you will get a notification with a link to your video and a short description of what was found in your video. For example: people, topics, OCRs.
72
+
73
+
## <aid="apis"/>Upload and index with API
74
+
75
+
Use the [Upload video](https://api-portal.videoindexer.ai/docs/services/operations/operations/Upload-video?) API to upload and index your videos based on a URL. The code sample that follows includes the commented out code that shows how to upload the byte array.
76
+
77
+
### Configurations and params
47
78
48
79
This section describes some of the optional parameters and when you would want to set them.
49
80
50
-
### externalID
81
+
####externalID
51
82
52
83
This parameter enables you to specify an ID that will be associated with the video. The ID can be applied to external "Video Content Management" (VCM) system integration. The videos that are located in the Video Indexer portal can be searched using the specified external ID.
53
84
54
-
### callbackUrl
85
+
####callbackUrl
55
86
56
87
A URL that is used to notify the customer (using a POST request) about the following events:
57
88
@@ -75,12 +106,12 @@ A URL that is used to notify the customer (using a POST request) about the follo
- Video Indexer returns any existing parameters provided in the original URL.
81
112
- The provided URL must be encoded.
82
113
83
-
### indexingPreset
114
+
####indexingPreset
84
115
85
116
Use this parameter if raw or external recordings contain background noise. This parameter is used to configure the indexing process. You can specify the following values:
86
117
@@ -91,13 +122,13 @@ Use this parameter if raw or external recordings contain background noise. This
91
122
92
123
Price depends on the selected indexing option.
93
124
94
-
### priority
125
+
####priority
95
126
96
127
Videos are indexed by Video Indexer according to their priority. Use the **priority** parameter to specify the index priority. The following values are valid: **Low**, **Normal** (default), and **High**.
97
128
98
129
**Priority** parameter is only supported for paid accounts.
99
130
100
-
### streamingPreset
131
+
####streamingPreset
101
132
102
133
Once your video has been uploaded, Video Indexer, optionally encodes the video. Then, proceeds to indexing, and analyzing the video. When Video Indexer is done analyzing, you will get a notification with the video ID.
103
134
@@ -107,17 +138,17 @@ In order to run the indexing and encoding jobs, the [Azure Media Services accoun
107
138
108
139
If you only want to index your video but not encode it, set `streamingPreset`to `NoStreaming`.
109
140
110
-
### videoUrl
141
+
####videoUrl
111
142
112
143
A URL of the video/audio file to be indexed. The URL must point at a media file (HTML pages are not supported). The file can be protected by an access token provided as part of the URI and the endpoint serving the file must be secured with TLS 1.2 or higher. The URL needs to be encoded.
113
144
114
145
If the `videoUrl` is not specified, the Video Indexer expects you to pass the file as a multipart/form body content.
115
146
116
-
## Code sample
147
+
###Code sample
117
148
118
149
The following C# code snippet demonstrates the usage of all the Video Indexer APIs together.
119
150
120
-
### Instructions for running this code sample
151
+
####Instructions for running this code sample
121
152
122
153
After copying this code into your development platform you will need to provide two parameters: API Management authentication key and video URL.
123
154
@@ -304,7 +335,8 @@ public class AccountContractSlim
304
335
publicstringAccessToken { get; set; }
305
336
}
306
337
```
307
-
## Common errors
338
+
339
+
### Common errors
308
340
309
341
The status codes listed in the following table may be returned by the Upload operation.
0 commit comments