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...

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 3 Okt. 2011

0 Stimmen

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.

Weitere Antworten (2)

wajid azam
wajid azam am 3 Okt. 2011

0 Stimmen

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 Kommentar

Walter Roberson
Walter Roberson am 4 Okt. 2011
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".

Melden Sie sich an, um zu kommentieren.

Wayne King
Wayne King am 3 Okt. 2011

0 Stimmen

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 Kommentar

wajid azam
wajid azam am 4 Okt. 2011
yes sir.....but sir i want to do it manually by code....any help

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by