<div dir="ltr">Hi x264 developers,<br><br>I want to get the Motion Vector(MV) during x264 encodes the video. After tracing the source code, I felt this line(*) in encoder\analyse.c could be the thing I want. For validation, I generated a video with one black dot moving from top left to top right on a pure white background. After that, I get the raw video and encoded it with x264. When I get the printed MV values(**), it doesn't make sense. Can somebody shed some light on what is going on? I want to get the MVs just after the motion estimation during the x264 encoding process.<br><br>The following three steps are the command I executed in the experiment.<br><br>1. ffmpeg -pattern_type glob -i '*.jpg' dot_move.mp4<br>2. ffmpeg -i dot_move.mp4 dot_move.yuv<br>3. ./x264 --log-level debug --input-res 64x64 -b 0 --partitions none --ref 1 -o /path/to/the/video/dot_move.264 /path/to/the/video/dot_move.yuv<br><br>Here(***) are the pictures and generated video I used for the experiment. Thank you!<br><br>*: <a href="https://gist.github.com/dmvictor/8d60eac9962fb762c74128f18fa57ec8#file-analyse-c-L40" target="_blank">https://gist.github.com/dmvictor/8d60eac9962fb762c74128f18fa57ec8#file-analyse-c-L40</a><br>**: <a href="https://gist.github.com/dmvictor/cb4f33c6296ce6d49e74ce5f991b8946" target="_blank">https://gist.github.com/dmvictor/cb4f33c6296ce6d49e74ce5f991b8946</a><br><div>***: <a href="https://drive.google.com/drive/folders/19a3p7pPoUXx_31eU5zzGGilIo-miwfEe?usp=sharing" target="_blank">https://drive.google.com/drive/folders/19a3p7pPoUXx_31eU5zzGGilIo-miwfEe?usp=sharing</a></div></div>