<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi, <br>
<br>
I want to get the motion vectors and their reference frames. Unfortunately, the extract_mvs example gives only the direction of the reference frame +/- 1 direction as described in
<a href="https://ffmpeg.org/doxygen/4.0/motion__vector_8h_source.html#l00028" title="https://ffmpeg.org/doxygen/4.0/motion__vector_8h_source.html#l00028">
line28</a> in the AVMotionVector struct. I had to go through the code of the H264 decoder and I concluded that I can get this information from the
<a href="https://ffmpeg.org/doxygen/4.0/structH264Picture.html" title="https://ffmpeg.org/doxygen/4.0/structH264Picture.html">
H264Picture struct</a> from the motion_val, ref_index and ref_pocs data fields. But it seems like my conclusion is not right because I cannot interpret the values in these fields. Any help?<br>
<br>
Thanks<br>
</div>
</body>
</html>