Visualizing mpeg4 motion compensation vectors using mplayer
The MPEG4 video encoding process makes use of block motion compensation to achieve compression. The motion compensation process serves to produce the intra frames which are the frames between keyframes. I’ve always been fascinated by this process and was delighted to find out that my favorite video player, mplayer, allows one to visualize this process.
mplayer -lavdopts vismv=1 -vo x11 motion_vector_video.avi