{"repo":"LukasBommes/mv-extractor","free":true,"listed":false,"github":"https://github.com/LukasBommes/mv-extractor","clone":"git clone https://github.com/LukasBommes/mv-extractor.git","description":"Extract frames and motion vectors from H.264 and MPEG-4 encoded video.","language":"C++","stars":404,"topics":["motion","motion-vectors","tracking","video","opencv","ffmpeg","computer-vision"],"license":"MIT","category":"media-processing","readme_excerpt":"Motion Vector Extractor This tool extracts motion vectors, frames, and frame types from H.264 and MPEG-4 Part 2 encoded videos. A replacement for OpenCV's VideoCapture that returns for each frame: - Frame type (I, P, or B) - motion vectors - Optional decoded frame as BGR image Frame decoding can be skipped for very fast motion vector extraction, ideal for, e.g., fast visual object tracking. Both a C++ and a Python API is provided. The image below shows a video frame with extracted motion vectors overlaid. Note on Deprecation of Timestamp Extraction Versions 1.x of the motion vector extractor additionally returned the timestamps of video frames. For RTSP streams, the UTC wall time of when the sender transmitted a frame was returned (rather than the more easily retrievable reception timestamp). Since this feature required patching FFmpeg internals, it became difficult to maintain and prevented compatibility with newer versions of FFmpeg. As a result, timestamp extraction was removed in the 2.0.0 release. If you rely on this feature, please use version 1.1.0 . News Recent Changes in Release 2.0.0 - New motion-vectors-only mode, in which frame decoding is skipped for better performance (thanks to @microa) - Dropped extraction of timestamps as this feature was complex and difficult to maintain. Note the breaking API change to the read and retrieve methods of the VideoCapture class - Added support for Python 3.13 and 3.14 - Moved installation of FFMPEG and OpenCV from script files ","default_branch":null,"files":null,"tree":[],"storefront":"/r/LukasBommes","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/LukasBommes/mv-extractor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}