How to print motion vectors from a mp4 video

1,146 views
Skip to first unread message

hazlorealidad

unread,
Mar 11, 2012, 7:45:37 PM3/11/12
to xuggler-users
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

hazlorealidad

unread,
Apr 19, 2012, 9:51:39 PM4/19/12
to xuggler-users
I am still interested in the possibility of getting the motion vector
information using xuggler, can anyone tell me if it is possible, and
how to do it?

> I have searched on internet to printmotionvectorsand 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 extractmotionvectorsfrom 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 projecthttp://jmu.sourceforge.net/appears to do this.
>
> In the documents they state:
> As before, if you require to extractmotion, it is required to
> activatemotiondebug option:
Reply all
Reply to author
Forward
0 new messages