Media Server 25.3
Media Server Help

# Train Video Matching

You must train Media Server by providing the video clips that you want to recognize. Each clip you provide is added to a database.

## Create a Database to Contain Video Clips

To create a database to contain known video clips, use the following procedure.

To create a database to contain video clips

- Use the action CreateVideoMatchDatabase. For example, to create a database named "movies":

  `curl http://localhost:14000/action=CreateVideoMatchDatabase -F database=movies`

## Add a Clip to the Database

After creating a database, train Media Server to recognize each video clip by running the action `TrainVideoMatchClip`.

To add a video clip to the database

- Add a clip using the action TrainVideoMatchClip. For example:

  `curl http://localhost:14000/action=TrainVideoMatchClip -F database=movies -F videodata=@clip.mp4 -F trainingoptions=maximumduration:45s`

  Alternatively, the following example provides the path of the clip rather than sending the data:

  `curl http://localhost:14000/action=TrainVideoMatchClip -F database=movies -F videopath=clip.mp4 -F trainingoptions=maximumduration:45s`

  Media Server adds the clip to the database.

## List the Clips in a Database

To list the video clips that you have added to a database, use the following procedure.

To list the clips in a database

1. (Optional) First list the databases that have been created for video matching.

       http://localhost:14000/action=ListVideoMatchDatabases

   Media Server returns a list of databases.

2. List the clips that exist in one of the databases.

       http://localhost:14000/action=ListVideoMatchClips&database=movies

   Media Server returns a list of clips in the specified database.

## Manage Video Clips and Databases

To remove a video clip from a database, use the action RemoveVideoMatchClip.

To rename a video match database, use the action RenameVideoMatchDatabase.

To delete a video match database and all of the information that it contains, use the action RemoveVideoMatchDatabase.

Copyright 2025 Open Text
Version 25.3 | Last updated July 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Media Server 25.3

Topic Title: Train Video Matching