Common function to query Microsoft Video Indexer
Project description
video_indexer
This library provides some common function for operating with Microsoft Video Indexer API
Getting started
pip install video_indexer
Create a VideoIndexer instance
from video_indexer import VideoIndexer
CONFIG = {
'SUBSCRIPTION_KEY': '',
'LOCATION': '',
'ACCOUNT_ID': ''
}
vi = VideoIndexer(
vi_subscription_key=CONFIG['SUBSCRIPTION_KEY'],
vi_location=CONFIG['LOCATION'],
vi_account_id=CONFIG['ACCOUNT_ID']
)
where SUBSCRIPTION_KEY can be found at https://api-portal.videoindexer.ai/developer LOCATION & ACCOUNT_ID can be found at https://www.videoindexer.ai/settings/account
Upload a video for indexing
video_id = vi.upload_to_video_indexer(
input_filename='some-video.mp4',
video_name='some-video-name', # identifier for video in Video Indexer platform, must be unique during indexing time
video_language='English'
)
The library will retry with delay if it's being hit by throttling limit. Maximum 5 times of retrying.
Get information for a video
info = vi.get_video_info(
video_id,
video_language='English'
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file video_indexer-0.1.8.tar.gz.
File metadata
- Download URL: video_indexer-0.1.8.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2ac62dad28969d5637441e4ace77dba1df005579327428612f36409ff98bc52
|
|
| MD5 |
af5a787c056e6689f708ea3b49693d51
|
|
| BLAKE2b-256 |
12893798e522aebe155851abe161c281d8d53ecbeb22244c9f1908f7832d6d5c
|
File details
Details for the file video_indexer-0.1.8-py3-none-any.whl.
File metadata
- Download URL: video_indexer-0.1.8-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b32e1840b982bb8b44ea21198ba0acc2b666cc4579d9f96d78627750de0353e
|
|
| MD5 |
679ff99f06c51cc45ec4ac0ec5436221
|
|
| BLAKE2b-256 |
d3c95db298f0a946afaed85ee6585e4b9de92ce98617eeb7c0e9fc6d8c641149
|