I am attempting to export recorded videos from Milestone cameras using the MIPS SDK, however the export.Start() method shows an error: “Recording Server offline”
The export function works within the Milestone Export trial project so it is a problem within my application
I checked the forums and couldn’t find any solutions that worked.
Below is my export code:
CamNameList is an object that contains the names of all Milestone cameras on the network
AVIExporter aviExporter = new VideoOS.Platform.Data.AVIExporter()
{
Filename = "vid",
Codec = "Intel IYUV codec",
AudioSampleRate = 8000
};
VideoOS.Platform.Data.IExporter exporter = aviExporter;
exporter.Init();
exporter.Path = this.mDestination;
for (int i = 0; i < CamNameList.Count; i++)
{
if (CameraName == CamNameList[i])
{
List<Item> cams = FindAllCameras();
var audioSources = cams[i].GetRelated();
foreach (Item item in audioSources.ToList())
{
if (item.FQID.Kind != Kind.Microphone)
{
audioSources.Remove(item);
}
}
exporter.CameraList = new List<Item> { cams[i] };
exporter.AudioList = audioSources;
break;
}
}
var isStarted = exporter.StartExport(this.ExportStartTime.ToUniversalTime(), this.ExportEndTime.ToUniversalTime());
if (isStarted)
{
int lastError = exporter.LastError;
string lastErrorString = exporter.LastErrorString;
//labelError.Text = lastErrorString + " ( " + lastError + " )";
exporter.EndExport();
}
}