Title: Batch VIP
1Batch VIP
- A backend system of video processing
VIEW Technologies The Chinese University of Hong
Kong
2Outline
- Ideas of BatchVIP
- Design Goals
- Concepts
- Rules
- Structure
- Processing modules
3Design goals
- Integrate and update different kinds of video
processing function efficiently - Coordinate processes
- High stability
- Real-time monitor the progressing status
- Record events in log
4Module
- A Module is a component which implements a
certain video processing task. - Module is independent of Batch VIP by using a
standalone executable file with a XML
specification - Advantages
- Easy to integrate new modules or update existing
modules without modifying the Batch VIP - Guarantee the reliability.
- Standard interface
5Sample of XML Specification
ltModulegt ltInfo NAME"SpeechRecognition"
SRC"speechrecognition.exe" DESCRIPTION"Speech
Recognition" MULTIPLEINSTANCE"0"
USEENGINE"1" /gt ltRequirementgt ltEngine
NAMEengine.exe/gt ltFile SRC"DMAPI.dll" /gt
ltFile SRC"regexp.dll" /gt ltFile
SRC"smapi.dll" /gt lt/Requirementgt
ltInputgtADRemovelt/Inputgt ltOutputgtSpeech
Scriptlt/Outputgt lt/Modulegt
6Rules of the task arrangement
- If one module needs the results of other modules,
it can not run until all those modules finish. - Each file only can be processed by one module at
any time - Only the module which has the multiple-instance
feature can process several files at the same
time - Each module must apply for the thread quota
before creating process and must release it after
finishing.
7Reliability
- Module mechanism
- Multi-Thread Management
- Critical Section Management
- Monitor Process status
- CPU utilization
- Socket communication
8Communication
- Socket based
- Duplex
- TCP/IP
- Message
- Control message
- Progress message
- Error message
9Structure
Module
Ad Detection
Batch Control Center
Module Manager
Scene Detection
Video
Task Manager
Xml interface
Process Manager
Publish
Log
10Working flow
tasks
Check preprocess
return quota
Add to Task Queue
Destroy Socket
Task Queue
Create Process
Create Socket
Task Manager
Server
Termination message
Update task status
Update task progress
Terminate
11Processing Layer
12Scene Detection
Histogram-based difference
Eliminate duplicated results
D(X,Y)
13VOCD
14Speech Recognition
- Audio Extraction
- ViaVoice
15Story Segmentation
16Publish
17Thank you for you attention!