Motion Vector extraction from encoded video file

限于喜欢 提交于 2019-12-06 09:49:03

问题


I am trying to extract motion vector data from an encoded mp4 file. In a previous post I found an answer http://www.princeton.edu/~jiasic/cos435/motion_vector.c . But I am not able to run the code without errors . What are the other files that have to be included in the file ? I am a newbie here . So any help would be appreciated .


回答1:


I had modified the source code of mplayer (ffmpeg) to extract motion vectors for any compressed video, I have uploaded the modified mplayer code which can be used for extracting motion vectors here http://www.cs.umd.edu/~bharat/modmplayer.zip

You need to do the following to extract motion vectors if you use the modified version of mplayer

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

Pre-compiled executable and some useful files are available in the outputs folder



来源:https://stackoverflow.com/questions/19993733/motion-vector-extraction-from-encoded-video-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!