<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><font color="#741b47"><span style="font-family:arial,sans-serif;font-size:14px">Yes, there definitely is some amount of duplication with multiple</span><br style="font-family:arial,sans-serif;font-size:14px">

<span style="font-family:arial,sans-serif;font-size:14px">DLLs. You can easily find the amount of overhead, in a supported way.</span><br style="font-family:arial,sans-serif;font-size:14px"><span style="font-family:arial,sans-serif;font-size:14px">Build your project with static version of ffmpeg libraries, and</span><br style="font-family:arial,sans-serif;font-size:14px">

<span style="font-family:arial,sans-serif;font-size:14px">compare the size of your binary with the size of binary you have now</span><br style="font-family:arial,sans-serif;font-size:14px"><span style="font-family:arial,sans-serif;font-size:14px">(which is built with libavcodec.dll, libavformat.dll, etc.). For the</span><br style="font-family:arial,sans-serif;font-size:14px">

</font><div><font color="#741b47"><span style="font-family:arial,sans-serif;font-size:14px">latter, sum up all the DLLs that you need to deploy.</span> </font></div><div><font color="#c27ba0"><br></font></div><div><font color="#000000">>>> Thanks for all the response friends, you're really kind to me.</font></div>

<div><font color="#000000"><br></font></div><div><font color="#000000">Alex, our program uses dll and won't statically link with ffmpeg .a libs.</font></div><div>So the question simplified to, in each dll, is there any duplicate code, </div>
<div> (instead of if statically link my program with .a can save me space because </div><div>only those needed will be bundled)</div><div><br></div><div>-lm is an example, if only static library found, any dll uses math function will</div>

<div>include corresponding .o. But I think Michael is correct in his last mail, it's not likely</div><div>that libm dependency cause so much duplication.</div><div><br></div><div>I'm now using -Wl, -Map to dump the map file (configure with -Wl -Map). I only </div>
<div>build shared libraries and no executables. But I only get one map in root folder, instead of </div><div>separate map files in component folder. With different components enabled/disabled</div><div>the content of the map file does change. So I assume this map file contains all the info of </div>
<div>libraries built. Is it correct?</div></div></div></div>