-
Notifications
You must be signed in to change notification settings - Fork 303
Description
I have a requirement wherein I am only supposed to capture the video and skip the audio output. I'm able to do this by disabling the audio io and also bypassing the writer for audio.
The recording works well. But when I try to pause/resume, static frames get added to the recording for the paused duration which in turn causes the final video file to have static frames causing the next frame starts after a while. At times it also skips the recorded part after the resume session.
I believe that the offset needs to be adjusted in the sample buffer which gets written to the writer. I tried doing that by performing the calculations done in if (self.isDiscontinue ) loop. But this gives me an error "The operation cannot be completed, writer status failed". I think that the sample buffer must have got corrupted.
Could you please provide me input on this, so that I can proceed ahead and achieve the use-case. Also, please correct me if I'm going wrong anywhere.
Thanks...