problem with frame adding
1 view (last 30 days)
Show older comments
Hi everybody
this is my first calling for help here, where I am interested with Matlab programming (Image Process),
after reading a video file (using mmreader or VideoReader),I try to add a frame (addframe) to this video, but the Matlab (R2010a,R2011a) respond the following error:
??? Undefined function or method 'addframe' for input arguments of type 'mmreader'.
everything Okey with me else this problem
Any Help pleeeeeeeeeeease!
my greeting
Bilal
[Information merged from duplicate post]
valued Walter Roberson, thank you for quick responding I read a video file(Vid) using mmreader or VideoReader,apply
F1.cdata = read(Vid,No)
then apply image(F1) to pick up frame (FRM) using getframe, just to test and ensure the same size of video frames, I add the FRM frame onto Vid using new_Vid = addframe(Vid,FRM), the error is: Undefined function or method 'addframe' for input arguments of type 'mmreader'.
briefly, I want to read video, then pick up a frame from this video, convert the frame to image (could be frame2im), go back to convert the modificated image to video (could be im2frame) and reset it to the video .
I will be happy and thankful for you.
Bilal
1 Comment
Answers (1)
Walter Roberson
on 28 Jan 2012
mmreader / Videoreader is only for reading videos; it does not allow you to add frames.
You will probably have to read frames from the video and write them out (VideoWriter) until you get to the point you want, and then add the frames you want.
0 Comments
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!