How to convert video into Frames

2 views (last 30 days)
Hi sir
I'm doing a project on histogram equalization of videos for that i need to convert videos into images(Frames) so that i can apply histogram techniques on images and again i convert back into video of avi format.
please help me sir i am using matlab version R2010a
Thankyou...
  2 Comments
Image Analyst
Image Analyst on 18 Feb 2014
That could give a very odd looking video. At the very least you'd want to do it only on the L or V channel, not on R, G, and B separately.
vijay chander
vijay chander on 24 Feb 2014
Edited: vijay chander on 25 Feb 2014
Thanks but the problem i'm facing is i cant able to read vido into matlab im getting the error saying that the following codec is missing on ur computer h 264 i cant understand whats this i cant able to figure it out im running out of time please help me about this Thank you

Sign in to comment.

Accepted Answer

David Young
David Young on 12 Feb 2014
Is it possible for you to upgrade to version 2010b or later? If so, you could use VideoReader.
vreader = VideoReader(vidfile);
frames = 1:vreader.NumberOfFrames;
for f = frames
try
im = vreader.read(f);
catch err
<error processing>
end
<image processing>
end
  5 Comments
David Young
David Young on 21 Feb 2014
I think MathWorks support is the best bet then. You might be able to work out how to download the missing codecs, but I can't really help with that, sorry.
David Young
David Young on 21 Feb 2014
I think MathWorks support is the best bet then. You might be able to work out how to download the missing codecs, but I can't really help with that, sorry.

Sign in to comment.

More Answers (1)

Urmila
Urmila on 12 Feb 2014
you can use mmreader(filemame) function. see matlab documentation on mmreader function.
  1 Comment
vijay chander
vijay chander on 12 Feb 2014
im getting this error
>> mmreader('C:\vijay\Wildlife.avi')'; ??? Undefined function or method 'mmreader' for input arguments of type 'char'.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!