To run video analysis on specific documents, use the VideoServerAnalysis
task. This task only processes documents that have the document field AUTN_NEEDS_VIDEO_SERVER_ANALYSIS
, so you must add this field to any document that you want to process.
To run video analysis on selected documents
AUTN_NEEDS_VIDEO_SERVER_ANALYSIS
to the documents that you want to analyze. For an example script that adds a field to a document, see Add a Field to a Document.[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 your Lua script. For example:
[ImportTasks] Post0=Lua:scripts/TagVideoFiles.lua
Add another Pre
or Post
task to run the VideoServerAnalysis
task. Set the Pre
or Post
parameter to VideoServerAnalysis
, followed by a colon (:
), followed by the name of the section in the CFS configuration file that contains the task settings. For example:
Post1=VideoServerAnalysis:VideoServerSettings
In the new section, set the following parameters:
VideoServerHost
|
The host name and ACI port of your Media Server. To distribute requests between several servers, specify a comma-separated list of servers. |
VideoAnalysisTransform
|
(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 that you want 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 shows how to configure the VideoServerAnalysis
task. This example runs video analysis using a configuration named broadcast
that exists on the Media Server machine:
[ImportTasks] Post0=Lua:TagVideoFiles.lua Post1=VideoServerAnalysis:VideoServerSettings [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] Post0=Lua:TagVideoFiles.lua Post1=VideoServerAnalysis:VideoServerSettings [VideoServerSettings] VideoServerHost=videoserver1:14000,videoserver2:14000 VideoServerConfigurationName=broadcast VideoServerSharedPath=\\server\videofiles
You can also configure CFS to transform the metadata produced by Media Server, before adding it to your documents:
[ImportTasks] Post0=Lua:TagVideoFiles.lua Post1=VideoServerAnalysis:VideoServerSettings [VideoServerSettings] VideoServerHost=videoserver1:14000,videoserver2:14000 VideoAnalysisTransform=xslt/transform.xsl VideoServerConfigurationName=broadcast VideoServerSharedPath=\\server\videofiles
For more information about the parameters that you can use to configure this task, refer to the Connector Framework Server Reference.
|