Hi, I wrote a program which input video stream into a video object in Matlab. Here is the code:
vidObj = videoinput('winvideo');
Then i preview the video by:
preview(vidObj);
I capture the video file using:
capturedData = getsnapshot(vidObj);
getsnapshot() only returens one frame. But i need to save the hole video in avi format. I have planned to have a capture button in GUI which will have a start and end duration. For the entire duration the video will be saved. How can i do this. Please help!
vidObj = videoinput('winvideo');
Then i preview the video by:
preview(vidObj);
I capture the video file using:
capturedData = getsnapshot(vidObj);
getsnapshot() only returens one frame. But i need to save the hole video in avi format. I have planned to have a capture button in GUI which will have a start and end duration. For the entire duration the video will be saved. How can i do this. Please help!
Last edited: