Jump to content

H.264 Motion Vector Extractor - Examples - File motion vector extraction

From RidgeRun Developer Wiki

🚧 Documentation is under development

The H.264 Motion Vector Extractor guide is currently under active development. Some sections may be incomplete or change without notice.

Questions? Contact RidgeRun or email to support@ridgerun.com.


Previous: Examples Index Next: Performance




Example usage

The example executable will be located in your build directory, in the folder tests/examples with the name vectorextractor_example. Its usage is the following:

./vectorextractor_example <input video>

This example supports reading any container compatible with GStreamer with an H.264 stream inside or a raw H.264 file. It will output the extracted motion vectors to stdout in the following format:

mbWidth,mbHeight,srcX,srcY,dstX,dstY

Example output

16,16,24,962,24,968
16,16,40,962,40,968
16,16,56,962,56,968
16,16,73,962,72,968
16,16,89,962,88,968
16,16,105,963,104,968
16,16,122,962,120,968
16,16,138,962,136,968
16,16,154,962,152,968
16,16,169,962,168,968
16,16,185,962,184,968
16,16,201,962,200,968
16,16,217,962,216,968
16,16,233,962,232,968
16,16,249,962,248,968
16,16,266,962,264,968
16,16,281,962,280,968
16,16,297,962,296,968
16,16,314,962,312,968
16,16,330,962,328,968
16,16,345,962,344,968
16,16,361,962,360,968
16,16,377,962,376,968
16,16,393,962,392,968
16,16,409,962,408,968
16,16,424,962,424,968


Previous: Examples Index Next: Performance



Cookies help us deliver our services. By using our services, you agree to our use of cookies.