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'
)
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
video_indexer-0.1.5.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for video_indexer-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61a2ff71c0ea9b62545c0e3f1212bd6a0acfacaedb96ef5f071f22a6c43596d7 |
|
MD5 | baf471a05496c9cc7f1922fa4b188e33 |
|
BLAKE2b-256 | 9b41ab9f4f0df96193aba584e6ad63602aab15a81e7b26f3461e130600840e2b |