CFS includes Lua scripts that you can use to run analysis on all file formats supported by Media Server.
scripts/MediaAnalysis.Lua
runs analysis on all video files that Media Server can process. The script reads settings for the task from the [MediaServerSettings]
section of the CFS configuration file.scripts/ImageAnalysis.Lua
runs analysis on image files (and PDF files, which may contain embedded images). The script reads settings for the task from the [ImageAnalysisSettings
] 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 relevant script. For example:
[ImportTasks] Pre0=Lua:scripts/MediaAnalysis.lua
MediaAnalysis.Lua
this section must be named [MediaServerSettings]
. For the script ImageAnalysis.Lua
this section must be named [ImageAnalysisSettings]
. In the new section, set the following parameters:
MediaServerHost
|
The host name and ACI port of your Media Server. To distribute requests between several servers, specify a comma-separated list of servers. |
MediaAnalysisTransform
|
(Optional) To transform the metadata produced by Media Server, before CFS adds the data to your documents, set this parameter to the path of the XSL transformation to use. |
Specify the Media Server configuration file to use for running analysis:
ConfigDirectory
parameter, in the [Paths]
section of the Media Server configuration file, set MediaServerConfigurationName
to the name of the configuration.MediaServerConfigurationFileName
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
.MediaServerSharedPath
to the path of a shared folder that is accessible to both CFS and Media Server. CFS copies the files to the shared folder so that Media Server can read them.The following example configuration runs analysis for all supported video files ingested by CFS, using a configuration named RecognizeFacesInVideo
that exists on the Media Server machine:
[ImportTasks] Pre0=Lua:scripts/MediaAnalysis.lua [MediaServerSettings] MediaServerHost=localhost:14000 MediaServerConfigurationName=RecognizeFacesInVideo 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/MediaAnalysis.lua [MediaServerSettings] MediaServerHost=media1:14000,media2:14000 MediaServerConfigurationName=RecognizeFacesInVideo MediaServerSharedPath=\\server\videofiles
|