Computer Vision System Toolbox™ provides algorithms and tools for video processing workflows. You can read and write from common video formats, perform common video processing algorithms such as deinterlacing and chroma-resampling, and display results with text and graphics burnt in to the video. Video processing in MATLAB® uses System objects, which avoids excessive memory use by streaming data to and from video files.
The link below provides an introduction video to a typical workflow
for motion estimation:
Video processing in MATLAB