I am trying to understand the basics of video compression. I have found many resources addressing this particular subject, but somehow, I haven't clarified it yet on my mind.
How does motion estimation/compensation work? I realize that there is some redundancy in successive frames and so, by encoding only their "difference" we can get some compression, but how is that connected with motion vectors?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 4 of 4
Thread
-
-
Sometimes portions of the picture move from place to place between frames -- a car moving across the screen, a panning shot, etc. Motion vectors allow the codec to copy those parts of the picture from one frame to another. That is more efficient (in terms of compression) than encoding them as "new" pixels. Motion vectors usually work on small rectangular blocks, 8x8 pixels, 4x8 pixels, etc. If you want to get a feel for how it works -- some programs have the ability to display the motion vectors as little arrows. Here's ffdshow displaying the vectors (overlaid onto the video) of a guy's head moving on a fairly static background:
Wider search distances, and with more accuracy, increase compressibility, but they also take longer to encode. -
Thank you very much for your reply.
So, if I understand you correctly, the compressing sequence is by firstly using motion vectors in order to determine the motion between frames (so we achieve a first level of compression by "copying" the blocks) and then, after we have estimated this new frame, we encode the difference between that and the reference frame (2nd level of compression). Am I right? -
Yes. Note that there can be several reference frames from which to copy blocks, depending on the codec and settings.
Similar Threads
-
Avisynth - What's Wrong with this Script. (FPS Convert/Motion Estimation)
By RAB78 in forum Video ConversionReplies: 41Last Post: 25th May 2015, 13:06 -
Motion estimation range, and subpixel motion estimationto & more
By DrDeceit in forum Video ConversionReplies: 16Last Post: 19th Dec 2014, 04:25 -
GPU accelerated motion estimation in x265.Will it be possible in the future
By Stears555 in forum Video ConversionReplies: 4Last Post: 26th Nov 2013, 10:47 -
Deinterlacing: Edge Detecting Interpolation Versus Motion Compensation
By NY2LA in forum Video ConversionReplies: 2Last Post: 30th Jun 2012, 08:06 -
Diamond Search for motion estimation
By bijo911 in forum ProgrammingReplies: 2Last Post: 10th May 2011, 18:26