jishnujayakumar / MV-Tractus

A simple tool to extract motion vectors from h264 encoded videos.
108 stars 27 forks source link

Meaning of the Json file #21

Closed SIJIEJI closed 3 years ago

SIJIEJI commented 3 years ago

Hi, Thank you for providing such a wonderful tool. May I know the fields of the generated JSON file mean? Say source/ width/ height and etc. I google it and try understanding by myself but I fail.

{
    "source" : 1,
    "width" : 8,
    "height" : 8,
    "src_x" : 172,
    "src_y" : 604,
    "dst_x" : 158,
    "dst_y" : 627,
    "dx" : -14,
    "dy" : 23
}

Thanks a lot!

wabisabit commented 3 years ago

You can find the meaning of most here: https://ffmpeg.org/doxygen/3.1/motion__vector_8h_source.html dx and dy are the distance from source to destination.

SIJIEJI commented 3 years ago

You can find the meaning of most here: https://ffmpeg.org/doxygen/3.1/motion__vector_8h_source.html dx and dy are the distance from source to destination.

Thanks a lot!!