The Path and Filename I Set Are Not Used When Using MKVExporter in Smart Client

Hello,

I am reaching out regarding an issue I encountered when extracting the same video at the same time in both MKV and AVI formats. It appears that only the MKV format does not use the name I set, instead changing it to a specific format.

The original file name I set is “test”, original path is “[C:\Users\user\Desktop\test2](file:C:/Users/user/Desktop/test2)”. When I extract with the same name set for both MKV and AVI, the saved results are as follows:

// 오후 == PM , 오전 == AM
C:\Users\user\Desktop\test2\2025-05-30 오후 2-11-32\Media player format\Camera 1\2025-05-30 오전 (UTC+09_00) 10_51_38.mkv
 
C:\Users\user\Desktop\test2\2025-05-30 오후 2-11-39\Media player format\Camera 1\test.avi

​The code I used is briefly as follows:

string fileName = "test";
IExporter _expoter;
DateTime Start = myDate.StartTime;
DateTime End = myDate.EndTime;
 
 
if (selecType == "MKV")
 
{
    _expoter= new MKVExporter() { Filename = filename + ".mkv"};
    _expoter = myPath 
...
}
 
​else if (selecType == "AVI")
 
{
    _expoter= new AVIExporter() { Filename = filename + "avi"};
    _expoter = myPath 
...
}
 
_exporter.Init();
_exporter.CameraList = myList;
bool isStart = _exporter.StartExport(Start,End);
...
...
_export.EndExport();
_exporter.Close();

This is very different from the expected result, and it seems that my specified fileName is not being used at all.

I am using the 2023R3 client, and the SDK version is 22.3.0.

  1. Is it the original behavior of IExporter that a \{current time}\Media player format is created in the specified path?
  2. Could you please guide me on how to apply the name I set for the MKV file?
    1. The comment for the “Filename” member of VideoOS.Platform.Data.MKVExporter states ‘Name of the AVI file.’ Could this be related?

Thank you.

Yes, your observation is correct. The Smart Client will set a different path. The issue was also discussed here - https://developer.milestonesys.com/s/question/0D5bH00001EPWE2SAP/mkvexporter-in-xprotect-client-overwrites-filename-path