title: How to set time for capturing video using python opencv?
body: <p>I have a code that capture video from camera from github <a href="https://gist.github.com/keithweaver/4b16d3f05456171c1af1f1300ebd0f12#file-save-video-w-opencv-py" rel="nofollow noreferrer">https://gist.github.com/keithweaver/4b16d3f05456171c1af1f1300ebd0f12#file-save-video-w-opencv-py</a>. </p>
  
  <p>But how to set time limit to this capture?.I want to capture multiple videos continuously with duration say 3 minutes without any frame drops.</p>
  
  <p>I m kind of new to programming can anyone help with the code. Thanks a lot</p>