Extract motion vector from encoded video file

I am trying to extract motion vector data from an encoded mp4 file. In a previous post, I found the answer http://www.princeton.edu/~jiasic/cos435/motion_vector.c . But I can not run the code without errors. What other files should be included in the file? I'm new here. Therefore any help would be appreciated.

+2
source share
1 answer

I changed the source code of mplayer (ffmpeg) to extract motion vectors for any compressed video, I downloaded a modified mplayer code that can be used to extract motion vectors here http://www.cs.umd.edu/~bharat/modmplayer.zip

To extract motion vectors you need to do the following if you are using a modified version of mplayer

./mplayer -nosound -fps 200 -vo null -lavdopts vismv = 1 path_of_video_file 2> path_of_output_file.txt

A precompiled executable and some useful files are available in the output folder

+6
source

All Articles