tovi

upload video from different source in easy way


License
MIT
Install
pip install tovi==0.1.1

Documentation

ToVi

Library to upload files to Video Indexer(VI) from different sources.

Get free account of video indexer on Microsoft and obtain:

  • ACCOUNT_ID and ACCOUNT_ID
  • SUBSCRIPTION_KEY SUBSCRIPTION_KEY

Installation

pip install tovi 

or

pip3 install tovi

Use

from tovi import ToVI

CONFIG = {
    'SUBSCRIPTION_KEY': {your subscription key}, 
    'LOCATION':   {location: set "trial" if you are using a new trial account},
    'ACCOUNT_ID': {your ACCOUNT_ID}
}

## instantiate the object 
vi = ToVI(
    vi_subscription_key=CONFIG['SUBSCRIPTION_KEY'],
    vi_location=CONFIG['LOCATION'],
    vi_account_id=CONFIG['ACCOUNT_ID']
)
 
## select source (for now you-tube only, the name of the video and the language used)
vi.YouTubeToVI(youtube_link = "https://www.youtube.com/watch?v=a8fHgx9mE5U",
                  video_name = "lego",
                  video_language = "English")
                  
result = vi.get_video_info(vi.video_id)

Output

example of output

Credits

Thanks to bklim for his great python_video_indexer_lib.