video-indexer
This is a Node.js wrapper for the Microsoft Cognitive Services Video Indexer API, currently in preview. Per the Video Indexer API website, its features include:
- Convert audio to text based on acoustic language models
- Find when each face appears in the video
- Map and understand who spoke when
- Extract text that appears in videos as overlay, slides or background
- Understand who is the person that appears in the video
- Separate background noise and voice activity
- Detect when a scene changes based on visual analysis
- Understand the level of positive vs. negative spoken or written content
- Translate source audio into the language of your choice.
- Detect and prevent explicit visual content
- Find out the key words discussed in each segment
- Automatically detect key frames
This Node.js module is still under development; it has been tested but is not guaranteed for production use. Issues and PRs welcome! :)
Installation
npm install video-indexer
Usage
Grab a free API key by signing up here and clicking on your account name, then "Profile." Replace "your_api_key" below with the API key for local testing.
const vindexer = ;const Vindexer = "your_api_key"; // Upload video via a URL and generate intelligent insights. If no URL is specified, the file should be passed as a multipart/form body content.Vindexer ; // Get full insights from previously-processed videoVindexer ;;
More examples
Note that in the examples above and below, strings passed into functions are always required, while parameters that appear in the format of { this: 'that' }
are always optional.
// Get user id and name associated with API KeyVindexer ; // Get progress of video processingVindexer ; // Search for videos within your own account// If you want to test with a publicly-available dataset instead, // set searchInPublicAccount to trueVindexer ; // Get video player widget URLVindexer ; // Get insights widgetVindexer ; // Get insights by external IDVindexer ; // Get URL to VTT transcriptVindexer ; // Given a video ID and face ID, update the face with a nameVindexer ; // Reindex a previously-processed videoVindexer; // Reindex a previously processed video by external IDVindexer // Delete video and, optionally, insightsVindexer;