[x264-devel] motion estimation

Jason Garrett-Glaser darkshikari at gmail.com
Mon Sep 29 09:35:13 CEST 2008


On Mon, Sep 29, 2008 at 12:16 AM, Oleg Terner <olegt at numeri.co.il> wrote:
> Hello,
>
> Is it possible to make use of the motion estimation part of the x264?
>
> We have looked at the h->mb.mv  values just after the call to
>
>    x264_macroblock_analyse( h );
>
> in the routine  x264_slice_write( x264_t *h ) in the file encoder.c.
>
> Sometimes this gives the correct values, and sometimes not.
>
> We understand that mv are computed in two stages, prediction and
> difference, but we can not
> guess how this is done.

The MVs at that point are not necessarily correct because not all
macroblocks are necessarily inter macroblocks.  If you want to get
motion vectors from x264, you will want to disable intra analysis, or
at least detect which blocks are intra and not take motion vectors
from them.

Dark Shikari


More information about the x264-devel mailing list