A simple tool to extract motion vectors from H264 encoded video sources.
NOTE: This was a side project and never intended to be open sourced which is basically the reason behind the inappropriate coding style and project structure. However, at the time of starting this project there weren't any easy to use open source implementations for motion-vector extraction. MV-tractus was the outcome of an experiment to build a tool to extract motion-vectors by building a wrapper around FFmpeg. This tool only supports motion-vector extraction. If you are intending to use it in any other context then I am afraid this is not the right tool that you are looking for. FFmpeg core libraries have not been altered.
Disclaimer: The authors don't claim anything regarding the performance of the tool.
Jishnu P, & Singh, Praneet. (2018, October 21). MV-Tractus: A simple tool to extract motion vectors from H264 encoded video sources (Version 2.0). Zenodo.
@software{jishnu_p_2018_4422613,
author = {Jishnu P and
Singh, Praneet},
title = {{MV-Tractus: A simple tool to extract motion
vectors from H264 encoded video sources}},
month = oct,
year = 2018,
publisher = {Zenodo},
version = {2.0},
doi = {10.5281/zenodo.4422613},
url = {https://doi.org/10.5281/zenodo.4422613}
}
git clone https://github.com/jishnujayakumar/MV-Tractus.git
cd MV-Tractus
./install_ffmpeg.sh
(You can also install FFmpeg using the link here)sudo cp ffmpeg.conf /etc/ld.so.conf.d/ffmpeg.conf && sudo ldconfig
./compile
OR You can use the compile_command.txt to generate the binary file../extract_mvs <video-file-path> <output-path>
.<output-path>
. If this parameter is not specified, then the output is saved in './output/mv/'.pip install mv-tractus
(Coming Soon).
Coming Soon...