jpeg on real time video

hi... i want to extract frame from live came and then apply jpeg on that.. so that to compress it...i can extract frame from avi file which is store on disk....but how can i aaply jpeg on real time video coming from cam... some one help me please...

 Accepted Answer

Walter Roberson
Walter Roberson on 3 Oct 2011

0 votes

Frames extracted by mmreader() or aviread() or the VideoReader class are returned in to memory, not written on disk. Just take the frame in memory and imwrite() it in JPEG format.

More Answers (2)

wajid azam
wajid azam on 3 Oct 2011

0 votes

tanks for answer......... sir i want to make a surveillance system in matlab video coming from the cam should be store in JPEG format..and the JPEG should be apply on the video manually ...so i have to extract frame from live steaming video and apply JPEG on that frame...then store these frame in the form of video.....so how can i extract continuous frame from steaming video... thanks

1 Comment

Do you mean that you want to write your own JPEG encoder? Seems a little unusual but if so, then Fine, just substitute "apply your own JPEG encoder and fwrite() the file" for the "imwrite() it in JPEG format".

Sign in to comment.

Wayne King
Wayne King on 3 Oct 2011

0 votes

Do you mean mpeg video? If you have the Computer Vision Toolbox, you can use the System objects: vision.VideoFileReader and vision.VideoFileWriter to stream a video in and write to a file.

1 Comment

yes sir.....but sir i want to do it manually by code....any help

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!