How to capture and save the video based on time limits in opencvHow to install opencv 2.9 for python?Two...

NASA's RS-25 Engines shut down time

Does "Until when" sound natural for native speakers?

Doesn't allowing a user mode program to access kernel space memory and execute the IN and OUT instructions defeat the purpose of having CPU modes?

Hotkey (or other quick way) to insert a keyframe for only one component of a vector-valued property?

Meaning of ちはース as an exclamation

Are tamper resistant receptacles really safer?

Why doesn't this Google Translate ad use the word "Translation" instead of "Translate"?

What problems would a superhuman have whose skin is constantly hot?

Warn me when the equation number is pushed to the next line

How can I get players to stop ignoring or overlooking the plot hooks I'm giving them?

How to write ı (i without dot) character in pgf-pie

In the late 1940’s to early 1950’s what technology was available that could melt a LOT of ice?

How can The Temple of Elementary Evil reliably protect itself against kinetic bombardment?

Why would one plane in this picture not have gear down yet?

Was Luke Skywalker the leader of the Rebel forces on Hoth?

What are some noteworthy "mic-drop" moments in math?

Signed and unsigned numbers

Reverse string, can I make it faster?

Can Mathematica be used to create an Artistic 3D extrusion from a 2D image and wrap a line pattern around it?

How to draw cubes in a 3 dimensional plane

List elements digit difference sort

Why does liquid water form when we exhale on a mirror?

Grey hair or white hair

Is it necessary to separate DC power cables and data cables?



How to capture and save the video based on time limits in opencv


How to install opencv 2.9 for python?Two webcams of the same model are not workingprogram in not running completelyUbuntu 16.04 Opencv 3.1.0 Cannot open video sourcehow to capture video from webcam in MJPG opencvopencv Problem with using webcamHow to solve the error that comes out when installing opencv 3.1 on ubuntu 16.04?Where to install OpenCV (which directory, NOT from apt-get package)?VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV Unable to stop the stream: Device or resource busyAnalog video capture (Hauppauge Live USB) Error - vidioc_qbuf: message too long













-1















Using webcam capture the video for 20sec and save it to a folder.similarly, the next set of videos gets overwrite for the same time interval(2hrs) and then save the video to the new folder.Iam following this code,



        Mat frame;
vcap >> frame;
video.write(frame);
imshow("Frame", frame);
char c = (char)waitKey(33);
if (c == 27) break;

time(&end);
double dif = difftime(end, start);
if (dif==25)
{
std::cout << "DONE" << dif<< std::endl;
break;
}
}
return 0;









share|improve this question









New contributor




karthika s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    -1















    Using webcam capture the video for 20sec and save it to a folder.similarly, the next set of videos gets overwrite for the same time interval(2hrs) and then save the video to the new folder.Iam following this code,



            Mat frame;
    vcap >> frame;
    video.write(frame);
    imshow("Frame", frame);
    char c = (char)waitKey(33);
    if (c == 27) break;

    time(&end);
    double dif = difftime(end, start);
    if (dif==25)
    {
    std::cout << "DONE" << dif<< std::endl;
    break;
    }
    }
    return 0;









    share|improve this question









    New contributor




    karthika s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      -1












      -1








      -1








      Using webcam capture the video for 20sec and save it to a folder.similarly, the next set of videos gets overwrite for the same time interval(2hrs) and then save the video to the new folder.Iam following this code,



              Mat frame;
      vcap >> frame;
      video.write(frame);
      imshow("Frame", frame);
      char c = (char)waitKey(33);
      if (c == 27) break;

      time(&end);
      double dif = difftime(end, start);
      if (dif==25)
      {
      std::cout << "DONE" << dif<< std::endl;
      break;
      }
      }
      return 0;









      share|improve this question









      New contributor




      karthika s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      Using webcam capture the video for 20sec and save it to a folder.similarly, the next set of videos gets overwrite for the same time interval(2hrs) and then save the video to the new folder.Iam following this code,



              Mat frame;
      vcap >> frame;
      video.write(frame);
      imshow("Frame", frame);
      char c = (char)waitKey(33);
      if (c == 27) break;

      time(&end);
      double dif = difftime(end, start);
      if (dif==25)
      {
      std::cout << "DONE" << dif<< std::endl;
      break;
      }
      }
      return 0;






      c++ opencv






      share|improve this question









      New contributor




      karthika s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      karthika s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 14 secs ago







      karthika s













      New contributor




      karthika s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 17 hours ago









      karthika skarthika s

      11




      11




      New contributor




      karthika s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      karthika s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      karthika s is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          karthika s is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1124767%2fhow-to-capture-and-save-the-video-based-on-time-limits-in-opencv%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          karthika s is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          karthika s is a new contributor. Be nice, and check out our Code of Conduct.













          karthika s is a new contributor. Be nice, and check out our Code of Conduct.












          karthika s is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1124767%2fhow-to-capture-and-save-the-video-based-on-time-limits-in-opencv%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

          Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

          Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...