CFS includes a Lua script, scripts/VideoAnalysis.Lua
, to run analysis on all video files that Media Server can process. The script reads settings for the task from the [VideoServerSettings]
section of the CFS configuration file.
To run video analysis on all supported video files
[ImportTasks]
section of the configuration file, or create this section if it does not exist.In the [ImportTasks]
section, configure a Pre
or Post
import task to run the Lua script scripts/VideoAnalysis.Lua
.
For example:
[ImportTasks] Pre0=Lua:scripts/VideoAnalysis.lua
[VideoServerSettings]
.In the new section, set the following parameters:
VideoServerHost
|
The host name and ACI port of your Video Server. To distribute requests between several servers, specify a comma-separated list of servers. |
VideoAnalysisTransform
|
(Optional) To transform the metadata produced by Video Server, before CFS adds the data to your documents, set this parameter to the path of the XSL transformation to use. |
Specify the Video Server configuration file to use for running analysis:
ConfigDirectory
parameter, in the [Paths]
section of the Media Server configuration file, set VideoServerConfigurationName
to the name of the configuration.VideoServerConfigurationFileName
to the path of the configuration file. If you set a relative path, specify the path relative to CFS, not relative to Media Server.Specify how to send video to Media Server:
ReadFromOriginalLocation=TRUE
.VideoServerSharedPath
to the path of a shared folder that is accessible to both CFS and Media Server. CFS copies video files to the shared folder so that Media Server can read them.The following example configuration runs video analysis for all supported files ingested by CFS, using a configuration named broadcast
that exists on the Media Server machine:
[ImportTasks] Pre0=Lua:scripts/VideoAnalysis.lua [VideoServerSettings] VideoServerHost=localhost:14000 VideoServerConfigurationName=broadcast ReadFromOriginalLocation=TRUE
If your CFS and Media Server are running on separate machines, you can configure CFS to copy video files to a shared folder:
[ImportTasks] Pre0=Lua:scripts/VideoAnalysis.lua [VideoServerSettings] VideoServerHost=videoserver1:14000,videoserver2:14000 VideoServerConfigurationName=broadcast VideoServerSharedPath=\\server\videofiles
|