Hi all,<br><br>I'm using libavformat / libavcodec to extract motion vectors from files encoded by different codecs (MPEG-2, H.264,...).<br><br>Do I understand correctly that if motion vectors exist for macro-block or can be predicted, they are available in the motion_val field?<br>
<br>What happens when a macro-block contains several links to other blocks (the case of a B-frame; ability for weighted mixtures in H.264)? Is any kind of motion vector (say, to past reference frames for B-type blocks) inserted in the motion_val at all for such blocks?<br clear="all">
<br>If I'm misunderstanding something, please correct me. I've just started to dig in the topic.<br><br>Thanks,<br>-- <br>Vadim Kantorov<br>+33 (603) 292-769<br>