While exporting a video in AVI/MKV format, the start time of the video is not exactly the same as requested start time. The actual start time is the time of first keyframe of the video.
Is there a construct/workaround available in the MIP SDK that can help us in getting this actual start time?
Happy to share more details, if required.
Thanks
You can use JPEGVideoSource to get frame timestamp. For example:
JPEGVideoSource jpegSource = new JPEGVideoSource(camera.Item);
jpegSource.Init(0, 0)
then:
// First Frame of Recording DB
JPEGData jpegData = jpegSource.GetBegin();
// Last ...
JPEGData jpegData = jpegSource.GetEnd();
// Or
jpegData = (JPEGData)jpegSource.GetNearest(yourDateTIme)
// Or
jpegData = (JPEGData)jpegSource.GetAtOrBefore(yourDateTIme)
// ...
Freddy