<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:NSimSun;
        panose-1:2 1 6 9 3 1 1 1 1 1;}
@font-face
        {font-family:NSimSun;
        panose-1:2 1 6 9 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ZH-CN link="#0563C1" vlink="#954F72" style='text-justify-trim:punctuation'><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi, all!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>  I’m trying to extract motion vector in the H.264 video using Zeranoe's FFmpeg Builds.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>  FFmpeg version: 2013-06-23 git-c329713<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  libavutil      52. 37.101 / 52. 37.101<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  libavcodec     55. 16.100 / 55. 16.100<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  libavformat    55.  9.100 / 55.  9.100<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  libavdevice    55.  2.100 / 55.  2.100<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  libavfilter     3. 77.101 /  3. 77.101<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  libswscale      2.  3.100 /  2.  3.100<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  libswresample   0. 17.102 /  0. 17.102<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  libpostproc    52.  3.100 / 52.  3.100<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>This FFmpeg build was configured with:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  I </span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white'>refered to the method in this blog </span><span lang=EN-US><a href="http://jiasi.blogspot.com/2011/05/motion-vector-extraction.html">http://jiasi.blogspot.com/2011/05/motion-vector-extraction.html</a> and compiled the code in VS 2012 under windows 7.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>  I’ve set the </span><span lang=EN-US style='font-size:9.5pt;font-family:NSimSun;color:red;background:white;mso-highlight:white'>debug_mv</span><span lang=EN-US style='font-size:9.5pt;font-family:NSimSun;color:red'> </span><span lang=EN-US style='font-size:9.5pt;font-family:NSimSun'>of <span style='color:#2B91AF;background:white;mso-highlight:white'>AVCodecContext</span><span style='color:#2B91AF'> </span>as <span style='color:black;background:white;mso-highlight:white'>FF_DEBUG_VIS_MV_P_FOR | FF_DEBUG_VIS_MV_B_FOR</span><span style='color:black'>, </span></span><span lang=EN-US>and get the result as followed. But the </span><span lang=EN-US style='font-size:9.5pt;font-family:NSimSun;color:red;background:white;mso-highlight:white'>motion_val</span><span lang=EN-US style='font-size:9.5pt;font-family:NSimSun;color:red'> </span><span lang=EN-US style='font-size:9.5pt;font-family:NSimSun'>in <span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'>AVFrame </span></span><span lang=EN-US>did’t have the corresponding value. Have you guys meet with this problem?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><img border=0 width=568 height=240 id="_x56fe__x7247__x0020_1" src="cid:image001.jpg@01CE9C05.2A791170"></span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Gao Yuan </span><span lang=EN-US style='font-family:Wingdings'>J</span><span lang=EN-US><o:p></o:p></span></p></div></body></html>