How to debug VCA Metadata

If there is a need to debug the VCA Metadata example to check what the system is detecting from the video stream, etc.

It is possible to edit the MetadataEnrichmentDriverUdp.xml file. Default this file is located in C:\Program Files\DVMS\DVR\MetadataEnrichment-folder.

Default MetadataEnrichmentDriverUdp.xml

XML
<Vca>
<version number="3.8.7"/>
<Log>
<!-- Channel numbers to log, -1 = no log (default), 0 = all channels, multiple channels with own channel element  --> <channels>
<channel ChannelNumber="-1">
<OriginalMetadataFilters>
<filter>some original metadata filter text here</filter>
</OriginalMetadataFilters>
<MetadataFilters>
<!-- Filter text for search match. Empty = no search. Text "all" = show all meta data -->
<filter>some metadata filter text here</filter>
</MetadataFilters>
</channel>
</channels>
</Log>
<PerformanceLog>
<!-- LogLevel values: info, warning, error (default) --> <LogLevel> error </LogLevel>
<!-- PerformanceMode values are minutes, zero = not in use (default) --> <PerformanceMode> 0 </PerformanceMode>
<!-- PerformanceLevels values are percents --> <PerformanceLevels error="150"  warning="100" />
</PerformanceLog>
</Vca>

In this file, you need to edit line 5, where you can put the wanted camera number. This can be checked via the System Manager Hardware section or the Cameras section.

After this, you need to change the metadata filter value “all” to all lines 7 and 11. This option shows all metadata that is coming originally and how that is formatted to the Mirasys Metadata format.

If you are only interested in seeing Mirasys Metadata, then you need to use line 11, and for line 7, you need to put nothing; see the examples.

If you already know what is needed to find, then you can use filters to give text for a search match.

When all needed changes are done, you need to restart the DVRServer service.

After this, the metadata is included in the DVRServer log file.

Examples

Showing the camera channel 1 metadata in the Mirasys Metadata format.

HTML
<Vca>
<version number="3.8.7"/>
<Log>
<!-- Channel numbers to log, -1 = no log (default), 0 = all channels, multiple channels with own channel element  --> <channels>
<channel ChannelNumber="1">
<OriginalMetadataFilters>
<filter></filter>
</OriginalMetadataFilters>
<MetadataFilters>
<!-- Filter text for search match. Empty = no search. Text "all" = show all meta data -->
<filter>all</filter>
</MetadataFilters>
</channel>
</channels>
</Log>
<PerformanceLog>
<!-- LogLevel values: info, warning, error (default) -->
<LogLevel>error</LogLevel>
<!-- PerformanceMode values are minutes, zero = not in use (default) -->
<PerformanceMode>0</PerformanceMode>
<!-- PerformanceLevels values are percents -->
<PerformanceLevels error="150"  warning="100" />
</PerformanceLog>
</Vca>

Showing the camera channel 1 metadata in the original metadata and the Mirasys Metadata format.

HTML
<Vca>
<version number="3.8.7"/>
<Log>
<!-- Channel numbers to log, -1 = no log (default), 0 = all channels, multiple channels with own channel element  --> <channels>
<channel ChannelNumber="1">
<OriginalMetadataFilters>
<filter>all</filter>
</OriginalMetadataFilters>
<MetadataFilters>
<!-- Filter text for search match. Empty = no search. Text "all" = show all meta data -->
<filter>all</filter>
</MetadataFilters>
</channel>
</channels>
</Log>
<PerformanceLog>
<!-- LogLevel values: info, warning, error (default) -->
<LogLevel>error</LogLevel>
<!-- PerformanceMode values are minutes, zero = not in use (default) -->
<PerformanceMode>0</PerformanceMode>
<!-- PerformanceLevels values are percents -->
<PerformanceLevels error="150"  warning="100" />
</PerformanceLog>
</Vca>