Skip to content

Library to upload files to Video Indexer from different sources.

License

Notifications You must be signed in to change notification settings

scarsellifi/ToVI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Library to upload files to Video Indexer from different sources.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages