I have searched on internet to print motion vectors and have found
that
Mplayer will display them like this:
mplayer -lavdopts vismv=1 -vo x11 motion_vector_video.avi
Also a c program that prints them from this page:
http://jiasi.blogspot.com/2011/05/motion-vector-extraction.html
I needed to extract motion vectors from videos...
Need to have ffmpeg, libavcodec-dev, libavformat-dev installed. Tested
on Linux Mint 9.
gcc -std=c99 -o motion_vector -I/usr/include motion_vector.c -
lavformat -lavcodec
(motion_vector.c can be downloaded from the link above)
Also another project
http://jmu.sourceforge.net/ appears to do this.
In the documents they state:
As before, if you require to extract motion, it is required to
activate motion debug option:
vsr.setDebugMV(true);
However I wanted to do this with xuggler as it seems that the project
is more advanced.
Can anyone tell me if its possible and if so a code fragment would be
great.
Thanks