I am using the ILiveStreamRecord api to create segments of 30minutes for live streams. On publish I create a new LiveStreamRecorderMP4 for the stream and start the recorder using startRecordingSegmentByDuration method. I also implemented ILiveStreamRecordNotify to be notified about onSegmentStart and onSegmentEnd events. The flow is working fine and recordings are created approx every 30minutes(as per my configuration). On 'onSegmentEnd' I am calling recorder.getCurrentDuration to store the segment file name and the duration of the file in my database. But it has been observed that the duration reported by getCurrentDuration is not correct all the time and there is a difference between what it reports and those reported by ffmpeg or vlc player for the same segment.
Is this a known issue? Any idea what could be causing this and how to troubleshoot this further?
Thanks in advance.