is it possible to make frames to video

i have a video.... and when i convert it to frames i get 1000 frames.... now is it possible to select frames from 500 to 700 and save it in avi format..... so that i can open the video later without running the code as the video we gave for input...... please do reply...

댓글 수: 2

manoj saini
manoj saini 2013년 2월 26일
yes only read your matrix from b=a(500,700)\ now save your b variable
Image Analyst
Image Analyst 2013년 2월 26일
Is your video live/streaming, or has it already been captured and saved to a file (from which you wish to extract a subset of frames)?

댓글을 달려면 로그인하십시오.

 채택된 답변

manoj saini
manoj saini 2013년 2월 26일

1 개 추천

ya.........using getsnapshot

댓글 수: 4

Elysi Cochin
Elysi Cochin 2013년 2월 26일
please can u show me how to do it..... please reply sir....
manoj saini
manoj saini 2013년 2월 26일
FRAME = getsnapshot(v) immediately returns one single image frame, FRAME, from the video input object, v.
Elysi Cochin
Elysi Cochin 2013년 2월 26일
편집: Elysi Cochin 2013년 2월 26일
sir i got a code from the following link
and i edited it as below but i'm getting error
for frame = 60 : 100
outputBaseFileName = sprintf('%d.jpg', frame);
outputFullFileName = fullfile('Frames', outputBaseFileName);
I = imread(outputFullFileName);
data(:,:,:,i) = getsnapshot(I);
imshow(data(:,:,:,i));
drawnow;
end
my error is
??? Undefined function or method 'getsnapshot' for input arguments of type 'uint8'.
Error in ==> VideoMainTrial at 32
data(:,:,:,i) = getsnapshot(I);
please rectify it for me sir....
Walter Roberson
Walter Roberson 2013년 2월 26일
Your "I" is not a video input object.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by