end video recording at last appended pixel buffer

since audio samples are processed faster then video, we need to trim the video at the timestamp of the video track and not the audio to avoid extraneous static video frames