从编码视频文件中提取运动矢量

问题描述 投票:2回答:1

我试图从编码的mp4文件中提取运动矢量数据。在之前的帖子中,我找到了答案http://www.princeton.edu/~jiasic/cos435/motion_vector.c。但我无法运行代码而没有错误。文件中必须包含哪些其他文件?我是新手。所以任何帮助将不胜感激。

ffmpeg video-processing motion-detection
1个回答
6
投票

我修改了mplayer(ffmpeg)的源代码来为任何压缩视频提取运动矢量,我已经上传了修改后的mplayer代码,可用于在这里提取运动矢量http://www.cs.umd.edu/~bharat/modmplayer.zip

如果使用mplayer的修改版本,则需要执行以下操作来提取运动矢量

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

输出文件夹中提供了预编译的可执行文件和一些有用的文件

© www.soinside.com 2019 - 2024. All rights reserved.