title: How to extract motion vector from mpeg video
body: <p>I need motion vectors of a mpeg video in a text format.  I referred to the <a href="https://forum.doom9.org/showthread.php?t=172767" rel="nofollow noreferrer">link</a> which says extract_mvs.c can be used to do so. But I am not able to execute the program because of so many header file dependency errors. Visualization of MVs is pretty easy using ffmpeg command. Getting the actual MVs of each frame is my requirement. Could you please guide me to extract motion vectors in their raw format.</p>