we are testing exporting video clips using the sample code SampleExport provided in SDK samples package. The issue is when trying to export relatively long clips (2+ hours) the exported mkv file turns out to be a bit shorter than the expected length. For instance, if we try to export a 2-hour clip using SampleExport, the length of the exported mkv file would be about 8 minutes shorter than the expected 2 hours.
any ideas why the exported mkv files are ended up being shorter than expected?
we managed to get wireshark capture of one situation where we saw that the app sends a FIN to the Milestone storage server, but the server keeps trying to send data, so the app finally sends RST to inform the server that the socket was closed and the resulting .mkv file ended up with 2:51:11 out of 3:00:00 of video.
any ideas why the app is closing the socket before the storage server is done sending data?