<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ffmpeg linked to mll fails when calling avcodec_find_encoder in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6233867#M13353</link>
    <description>&lt;P&gt;Thanks for the prompt response Li!&lt;/P&gt;&lt;P&gt;I've created a module file with the&amp;nbsp;content:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;+ h264plugin 1.0 ..\plug-ins\h264plugin&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the plugin directory tree:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Program Files\Autodesk\Maya2016\plug-ins\h264plugin\plug-ins&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; |_ avcodec-57.dll&lt;BR /&gt;&amp;nbsp; &amp;nbsp; |_ avdevice-57.dll&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ avfilter-6.dll&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ avformat-57.dll&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ avutil-55.dll&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ ffmpeg.exe&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ ffplay.exe&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ ffprobe.exe&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ postproc-54.dll&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ swresample-2.dll&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ swscale-4.dll&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ &lt;SPAN&gt;h264plugin&lt;/SPAN&gt;.exp&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ &lt;SPAN&gt;h264plugin&lt;/SPAN&gt;.ilk&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ &lt;SPAN&gt;h264&lt;/SPAN&gt;&lt;SPAN&gt;plugin&lt;/SPAN&gt;.lib&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_&amp;nbsp;&lt;STRONG&gt;h264plugin.mll&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ &lt;SPAN&gt;h264&lt;/SPAN&gt;&lt;SPAN&gt;plugin&lt;/SPAN&gt;.pdb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the Module limitations described &lt;A href="http://help.autodesk.com/view/MAYAUL/2016/ENU/?guid=__files_GUID_E7B113F2_5AFD_4C05_A747_298C06586447_htm" target="_self"&gt;here&lt;/A&gt;, I placed duplicates of &lt;EM&gt;.dll&lt;/EM&gt; and &lt;EM&gt;.exe&lt;/EM&gt; files inside Maya's bin directory:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Program Files\Autodesk\Maya2016\bin&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; |_ avcodec-57.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; |_ avdevice-57.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ avfilter-6.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ avformat-57.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ avutil-55.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ ffmpeg.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ ffplay.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ ffprobe.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ postproc-54.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ swresample-2.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ swscale-4.dll&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I opened Maya and ran the following commands to make sure everything was correctly setup:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;getenv PATH&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;// Result: C:/Program Files/Autodesk/Maya2016/bin/Cg;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Program Files/Autodesk/Maya2016/bin;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Python27/;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Python27/Scripts;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Windows/system32;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Windows;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Program Files/Autodesk/Maya2016/bin;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Program Files/Autodesk/Maya2016/plug-ins/bifrost/bin;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Program Files/Autodesk/mentalrayForMaya2016/bin;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Program Files/Autodesk/Maya2016/plug-ins/substance/bin;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Program Files/Autodesk/Maya2016/plug-ins/xgen/bin //&lt;/PRE&gt;&lt;P&gt;... and I ran this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;getModulePath -moduleName "h264plugin"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;// Result: C:/Program Files/Autodesk/Maya2016/plug-ins/h264plugin// &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, loading and running the plugin still gives me: "&lt;EM&gt;Codec not found".&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is where I think the conflict is happening:&lt;/P&gt;&lt;P&gt;1) Maya's documentation says that dinamic libraries should be placed in Maya's bin directory.&lt;/P&gt;&lt;P&gt;2) According to this &lt;A href="http://stackoverflow.com/questions/11701635/use-ffmpeg-in-visual-studio" target="_self"&gt;post&lt;/A&gt;, I'm supposed to copy the FFMPEG .dlls and .exe to&amp;nbsp;the same directory of&amp;nbsp;my compiled binary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So where should I place those .dll and .exe files? Do I have to write code inside my &lt;STRONG&gt;.mll&lt;/STRONG&gt; file to call them from a hard coded&amp;nbsp;path?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's worth mentioning that when&amp;nbsp;I compiled the plugin&amp;nbsp;as an &lt;STRONG&gt;.exe&lt;/STRONG&gt;&amp;nbsp;everything works, because I place the FFMPEG dlls inside the same directory and this situation doesn't depend on Maya to load an &lt;STRONG&gt;.mll, &lt;/STRONG&gt;then make the calls. The &lt;STRONG&gt;.exe&lt;/STRONG&gt; spawns a new process and it is able to call the linked dlls with no problems.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Mar 2016 03:51:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-25T03:51:19Z</dc:date>
    <item>
      <title>ffmpeg linked to mll fails when calling avcodec_find_encoder</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6231995#M13351</link>
      <description>&lt;P&gt;I've been trying to use my own build of ffmpeg with my .mll plugin, but I keep getting NULL&amp;nbsp;when attempting to find the encoder by the codec ID. Here is part of the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#include &amp;lt;windows.h&amp;gt;&lt;BR /&gt;#include &amp;lt;Lmcons.h&amp;gt;&lt;BR /&gt;#include &amp;lt;maya/MSimple.h&amp;gt;&lt;BR /&gt;#include &amp;lt;maya/MGlobal.h&amp;gt;&lt;BR /&gt;#include &amp;lt;maya/MString.h&amp;gt;&lt;BR /&gt;&lt;BR /&gt;extern "C"&lt;BR /&gt;{&lt;BR /&gt; #ifndef __STDC_CONSTANT_MACROS&lt;BR /&gt; #define __STDC_CONSTANT_MACROS&lt;BR /&gt; #endif&lt;BR /&gt; #include &amp;lt;libavcodec\avcodec.h&amp;gt;&lt;BR /&gt; #include &amp;lt;libavformat\avformat.h&amp;gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;#pragma comment(lib, "avcodec.lib")&lt;BR /&gt;#pragma comment (lib, "avformat.lib")&lt;BR /&gt;&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;DeclareSimpleCommand(h264_test, "Autodesk", "2016");&lt;BR /&gt;&lt;BR /&gt;MStatus h264_test::doIt(const MArgList&amp;amp;)&lt;BR /&gt;{&lt;BR /&gt;    av_register_all();

    AVCodec *codec = avcodec_find_encoder(AV_CODEC_ID_H264);
    if (!codec) {
&amp;nbsp;     &amp;nbsp; MGlobal::displayInfo("Codec not found");&lt;BR /&gt;    } else {&lt;BR /&gt;        MGlobal::displayInfo("H264 codec was found");&lt;BR /&gt;    }&lt;BR /&gt;    return MS::kSuccess;&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;NOTES:&lt;/P&gt;&lt;P&gt;- I have tried the compiled ffmpeg from Zeranoe, tried my own compiled version of ffmpeg and the one provided by Autodesk &lt;A href="http://www.autodesk.com/company/legal-notices-trademarks/open-source-distribution" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;- I tried compiling with Microsoft Visual Studio 2013 and with Microsoft Visual Studio 2012 Update 4 (suggested by Autodesk on Maya 2016 SKD Documentation)&lt;/P&gt;&lt;P&gt;- I have placed my compiled .mll and ffmpeg dlls in "C:\Program Files\Autodesk\Maya2016\bin" and made sure the environment variable PATH includes that directory.&lt;/P&gt;&lt;P&gt;- When I compile the same code as a Windows executable (.exe), the program is able to find the codec and output the message "H264 codec was found", but for some reason Maya doesn't seem to allow my .mll plugin to execute the appropriate calls to ffmpeg dlls.&lt;/P&gt;&lt;P&gt;- This issue doesn't happen with h264 only, any other codec ID I try returns NULL, such as AV_CODEC_ID_MPEG2VIDEO.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 08:36:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6231995#M13351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-24T08:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: ffmpeg linked to mll fails when calling avcodec_find_encoder</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6233031#M13352</link>
      <description>&lt;P&gt;Hi Iclibardi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you to create a module file for your plug-in?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think it is better to have a module file when you have multiple files for your plugin.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, Bifrost is a plugin with Maya, you can find the bifrost.mod in maya\modules folder. You can use it as reference for your mod file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can check this &lt;A href="http://help.autodesk.com/view/MAYAUL/2016/ENU/?guid=__files_GUID_9E096E39_AD0D_4E40_9B2A_9127A2CAD54B_htm" target="_self"&gt;document &lt;/A&gt;for more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yours,&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 17:09:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6233031#M13352</guid>
      <dc:creator>cheng_xi_li</dc:creator>
      <dc:date>2016-03-24T17:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: ffmpeg linked to mll fails when calling avcodec_find_encoder</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6233867#M13353</link>
      <description>&lt;P&gt;Thanks for the prompt response Li!&lt;/P&gt;&lt;P&gt;I've created a module file with the&amp;nbsp;content:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;+ h264plugin 1.0 ..\plug-ins\h264plugin&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the plugin directory tree:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Program Files\Autodesk\Maya2016\plug-ins\h264plugin\plug-ins&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; |_ avcodec-57.dll&lt;BR /&gt;&amp;nbsp; &amp;nbsp; |_ avdevice-57.dll&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ avfilter-6.dll&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ avformat-57.dll&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ avutil-55.dll&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ ffmpeg.exe&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ ffplay.exe&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ ffprobe.exe&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ postproc-54.dll&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ swresample-2.dll&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ swscale-4.dll&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ &lt;SPAN&gt;h264plugin&lt;/SPAN&gt;.exp&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ &lt;SPAN&gt;h264plugin&lt;/SPAN&gt;.ilk&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ &lt;SPAN&gt;h264&lt;/SPAN&gt;&lt;SPAN&gt;plugin&lt;/SPAN&gt;.lib&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_&amp;nbsp;&lt;STRONG&gt;h264plugin.mll&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|_ &lt;SPAN&gt;h264&lt;/SPAN&gt;&lt;SPAN&gt;plugin&lt;/SPAN&gt;.pdb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the Module limitations described &lt;A href="http://help.autodesk.com/view/MAYAUL/2016/ENU/?guid=__files_GUID_E7B113F2_5AFD_4C05_A747_298C06586447_htm" target="_self"&gt;here&lt;/A&gt;, I placed duplicates of &lt;EM&gt;.dll&lt;/EM&gt; and &lt;EM&gt;.exe&lt;/EM&gt; files inside Maya's bin directory:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Program Files\Autodesk\Maya2016\bin&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; |_ avcodec-57.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; |_ avdevice-57.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ avfilter-6.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ avformat-57.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ avutil-55.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ ffmpeg.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ ffplay.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ ffprobe.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ postproc-54.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ swresample-2.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;|_ swscale-4.dll&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I opened Maya and ran the following commands to make sure everything was correctly setup:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;getenv PATH&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;// Result: C:/Program Files/Autodesk/Maya2016/bin/Cg;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Program Files/Autodesk/Maya2016/bin;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Python27/;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Python27/Scripts;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Windows/system32;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Windows;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Program Files/Autodesk/Maya2016/bin;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Program Files/Autodesk/Maya2016/plug-ins/bifrost/bin;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Program Files/Autodesk/mentalrayForMaya2016/bin;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Program Files/Autodesk/Maya2016/plug-ins/substance/bin;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C:/Program Files/Autodesk/Maya2016/plug-ins/xgen/bin //&lt;/PRE&gt;&lt;P&gt;... and I ran this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;getModulePath -moduleName "h264plugin"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;// Result: C:/Program Files/Autodesk/Maya2016/plug-ins/h264plugin// &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, loading and running the plugin still gives me: "&lt;EM&gt;Codec not found".&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is where I think the conflict is happening:&lt;/P&gt;&lt;P&gt;1) Maya's documentation says that dinamic libraries should be placed in Maya's bin directory.&lt;/P&gt;&lt;P&gt;2) According to this &lt;A href="http://stackoverflow.com/questions/11701635/use-ffmpeg-in-visual-studio" target="_self"&gt;post&lt;/A&gt;, I'm supposed to copy the FFMPEG .dlls and .exe to&amp;nbsp;the same directory of&amp;nbsp;my compiled binary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So where should I place those .dll and .exe files? Do I have to write code inside my &lt;STRONG&gt;.mll&lt;/STRONG&gt; file to call them from a hard coded&amp;nbsp;path?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's worth mentioning that when&amp;nbsp;I compiled the plugin&amp;nbsp;as an &lt;STRONG&gt;.exe&lt;/STRONG&gt;&amp;nbsp;everything works, because I place the FFMPEG dlls inside the same directory and this situation doesn't depend on Maya to load an &lt;STRONG&gt;.mll, &lt;/STRONG&gt;then make the calls. The &lt;STRONG&gt;.exe&lt;/STRONG&gt; spawns a new process and it is able to call the linked dlls with no problems.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2016 03:51:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6233867#M13353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-25T03:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: ffmpeg linked to mll fails when calling avcodec_find_encoder</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6235036#M13354</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am traveling now, I'll look into it next week.&lt;BR /&gt;&lt;BR /&gt;Yours,&lt;BR /&gt;Li</description>
      <pubDate>Fri, 25 Mar 2016 19:13:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6235036#M13354</guid>
      <dc:creator>cheng_xi_li</dc:creator>
      <dc:date>2016-03-25T19:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: ffmpeg linked to mll fails when calling avcodec_find_encoder</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6235430#M13355</link>
      <description>&lt;P&gt;No problem Li. Thanks for you support so far!&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2016 01:16:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6235430#M13355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-26T01:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: ffmpeg linked to mll fails when calling avcodec_find_encoder</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6240866#M13356</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did some tests with your code earlier and I was able to get the codec loaded.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/228050iD5A4734629237971/image-size/original?v=lz-1&amp;amp;px=-1" border="0" alt="ffmpeg.png" title="ffmpeg.png" /&gt;&lt;/P&gt;
&lt;P&gt;Here are my steps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've created a ffmpegPlugin.mod in the modules folder of Maya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;+ ffmpegPlugin 1.0 ../plug-ins/ffmpegPlugin
PATH+:=bin
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, I've created a ffmpegPlugin folder in the plug-ins folder. The content is below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; Volume in drive C is System
 Volume Serial Number is 0C38-9B4F

 Directory of C:\Program Files\Autodesk\Maya2016\plug-ins\ffmpegPlugin

2016/03/30  14:16    &amp;lt;DIR&amp;gt;          .
2016/03/30  14:16    &amp;lt;DIR&amp;gt;          ..
2016/03/30  13:55    &amp;lt;DIR&amp;gt;          bin
2016/03/30  14:16                 0 folder.txt
2016/03/30  14:04    &amp;lt;DIR&amp;gt;          plug-ins
               1 File(s)              0 bytes

 Directory of C:\Program Files\Autodesk\Maya2016\plug-ins\ffmpegPlugin\bin

2016/03/30  13:55    &amp;lt;DIR&amp;gt;          .
2016/03/30  13:55    &amp;lt;DIR&amp;gt;          ..
2016/03/27  11:20        30,254,592 avcodec-57.dll
2016/03/27  11:20         1,429,504 avdevice-57.dll
2016/03/27  11:20         4,348,416 avfilter-6.dll
2016/03/27  11:20         5,353,472 avformat-57.dll
2016/03/27  11:20           591,872 avutil-55.dll
2016/03/27  11:20           492,544 ffmpeg.exe
2016/03/27  11:20           555,008 ffplay.exe
2016/03/27  11:20           162,816 ffprobe.exe
2016/03/27  11:20           121,856 postproc-54.dll
2016/03/27  11:20           357,888 swresample-2.dll
2016/03/27  11:20           916,480 swscale-4.dll
              11 File(s)     44,584,448 bytes

 Directory of C:\Program Files\Autodesk\Maya2016\plug-ins\ffmpegPlugin\plug-ins

2016/03/30  14:04    &amp;lt;DIR&amp;gt;          .
2016/03/30  14:04    &amp;lt;DIR&amp;gt;          ..
2016/03/30  14:03            69,120 ffmpegPlugin.mll
               1 File(s)         69,120 bytes

     Total Files Listed:
              13 File(s)     44,653,568 bytes
               8 Dir(s)   6,381,305,856 bytes free
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've put ffmpeg library in the ffmpegPlugin/bin folder and plugin in the plug-ins folder. The ffmpeg library I've used is download from&amp;nbsp;&lt;A href="https://ffmpeg.zeranoe.com/builds/" target="_blank"&gt;https://ffmpeg.zeranoe.com/builds/&lt;/A&gt; . It is &lt;A href="https://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-20160326-git-8ff0f6a-win64-shared.7z" target="_self"&gt;shared-win64 &lt;/A&gt;build.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yours,&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 06:23:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6240866#M13356</guid>
      <dc:creator>cheng_xi_li</dc:creator>
      <dc:date>2016-03-30T06:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: ffmpeg linked to mll fails when calling avcodec_find_encoder</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6243452#M13357</link>
      <description>&lt;P&gt;Hi Li,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for taking the time to compile the&amp;nbsp;code and perform some tests!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I followed your steps and recreated the Visual Studio project 3 times in my Desktop and twice in my laptop. I used the Zeranoe shared-win64 ffmpeg build you provided. Unfortunately, none of the .mll plugins generated on my Windows machines could load the codec.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry to provide so much detail, but would you please confirm if your Visual Studio project matches this setup:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;General&lt;/STRONG&gt;
	&lt;U&gt;Target Extension&lt;/U&gt; = .mll
	&lt;U&gt;Configuration Type&lt;/U&gt; = Dynamic Library (.dll)

&lt;STRONG&gt;VC++ Directories&lt;/STRONG&gt;
	&lt;U&gt;Include Directories&lt;/U&gt; = C:\Program Files\Autodesk\Maya2016\include;$(ProjectDir)\ffmpeg\dev\include\
	&lt;U&gt;Library Directories&lt;/U&gt; = C:\Program Files\Autodesk\Maya2016\lib;$(ProjectDir)\ffmpeg\dev\lib\

&lt;STRONG&gt;C/C++&lt;/STRONG&gt; 
	&amp;gt;&lt;U&gt; General&lt;/U&gt;
		Additional Include Directories = C:\Program Files\Autodesk\Maya2016\include;$(ProjectDir)\ffmpeg\dev\include\

	&amp;gt; &lt;U&gt;Optimization&lt;/U&gt;
		Optimization: Disabled (/Od)

	&amp;gt; &lt;U&gt;Preprocessor&lt;/U&gt; 
		Preprocessor Definitions:
		_WINDLL;_DEBUG;WIN32;_WIN64;NDEBUG;_WINDOWS;_USRDLL;NT_PLUGIN;REQUIRE_IOSTREAM

	&amp;gt; &lt;U&gt;Code Generation&lt;/U&gt;
		Runtime Library = Multi-threaded Debug DLL (/MDd)

	&amp;gt; &lt;U&gt;Language&lt;/U&gt;
		Enable Run-Time Type Information = Yes (/GR)

	&amp;gt; &lt;U&gt;CommandLine&lt;/U&gt;
		Additional Options:
			/I "C:\Program Files\Autodesk\Maya2016\include" 
			/I $(ProjectDir)\ffmpeg\dev\include\ 

&lt;STRONG&gt;Linker&lt;/STRONG&gt;
	&amp;gt; &lt;U&gt;General&lt;/U&gt;
		Aditional Library Directories:
		    C:\Program Files\Autodesk\Maya2016\lib;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\x64;$(ProjectDir)\ffmpeg\dev\include\
		
		Enable Incremental Linking = Yes (/INCREMENTAL)

	&amp;gt; &lt;U&gt;Input&lt;/U&gt;
		Additional Dependencies:
		    kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;
		    Foundation.lib;OpenMaya.lib;OpenMayaUI.lib;OpenMayaAnim.lib;OpenMayaFX.lib;OpenMayaRender.lib;Image.lib;OpenGL32.Lib;avcodec.lib;avdevice.lib;avfilter.lib;avformat.lib;avutil.lib;postproc.lib;swresample.lib;swscale.lib

	&amp;gt; &lt;U&gt;System&lt;/U&gt;
		SubSystem = Windows (/SUBSYSTEM:WINDOWS)
	
	&amp;gt; &lt;U&gt;Advanced&lt;/U&gt;
		Randomized Base Address = No (/DYNAMICBASE:NO)
	
	&amp;gt; &lt;U&gt;CommandLine&lt;/U&gt;
		Additional Options:
		    /LIBPATH:"C:\Program Files\Autodesk\Maya2016\lib;$(ProjectDir)\ffmpeg\dev\include\"
		    /export:initializePlugin /export:uninitializePlugin&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thank you for all your support so far!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;BR /&gt;Lucas&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 10:07:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6243452#M13357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-31T10:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: ffmpeg linked to mll fails when calling avcodec_find_encoder</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6243658#M13358</link>
      <description>&lt;P&gt;Hi Iclibardi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I pasted your sample code into the helloWorldCmd sample for testing. I've added addtional include path and library path for FFMpeg and changed nothing else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you followed my method&amp;nbsp;of creating plug-in module and it still doesn't work, could you please send me your plug-in project (both solution and binary), module file and the whole plug-in module folder itself?&amp;nbsp;I would like to test it on my computer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yours,&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 12:00:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6243658#M13358</guid>
      <dc:creator>cheng_xi_li</dc:creator>
      <dc:date>2016-03-31T12:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: ffmpeg linked to mll fails when calling avcodec_find_encoder</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6245014#M13359</link>
      <description>&lt;P&gt;Hi Li,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using the &lt;EM&gt;helloWorldCmd&lt;/EM&gt; as a template as well. I had the &lt;EM&gt;ffmpegPlugin.mod&lt;/EM&gt; file in Maya's modules directory for all tests I performed.&lt;/P&gt;&lt;P&gt;Still no luck on loading the codec, unfortunately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached the Visual Studio project with binaries and libraries, as well as all&amp;nbsp;the content in my modules folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Lucas&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 20:48:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6245014#M13359</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-31T20:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: ffmpeg linked to mll fails when calling avcodec_find_encoder</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6245531#M13360</link>
      <description>&lt;P&gt;Hi Iclibardi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having the same issue on my home computer. I did test on my work computer yesterday and it was fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I think the path isn't the issue here. I tried to LoadLibrary in the runtime, and it worked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;//-
// ==========================================================================
// Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk
// license agreement provided at the time of installation or download,
// or which otherwise accompanies this software in either electronic
// or hard copy form.
// ==========================================================================
//+

// Example Plugin: helloWorldCmd.cpp
//
// This plugin uses DeclareSimpleCommand macro
// to do the necessary initialization for a simple command
// plugin.
//
// Once this plugin is loaded by the Plugin Manager,
// it can be run from the Maya command line (i.e. script
// editor) like this:
//
//    helloWorld
//
// which will simply print the following message
// in the Output Window:
//
//    Hello World

#include &amp;lt;windows.h&amp;gt;
#include &amp;lt;maya/MSimple.h&amp;gt;
#include &amp;lt;maya/MGlobal.h&amp;gt;
#include &amp;lt;maya/MString.h&amp;gt;

extern "C"
{
#ifndef __STDC_CONSTANT_MACROS
#define __STDC_CONSTANT_MACROS
#endif
#include &amp;lt;libavcodec\avcodec.h&amp;gt;
#include &amp;lt;libavformat\avformat.h&amp;gt;
}

#pragma comment(lib, "avcodec.lib")
#pragma comment (lib, "avformat.lib")

using namespace std;

DeclareSimpleCommand(ffmpegPlugin, "Autodesk", "2016");

typedef void (__cdecl *lib_av_register_all)(void);
typedef AVCodec* (__cdecl *lib_avcodec_find_encoder)(AVCodecID);

MStatus ffmpegPlugin::doIt(const MArgList&amp;amp;)
{
	// Path shouldn't be the problem, following code works

	auto hAVCodec = LoadLibrary(TEXT("avcodec-57.dll"));
	auto hAVFormat = LoadLibrary(TEXT("avformat-57.dll"));
	auto my_register_all = (lib_av_register_all)GetProcAddress(hAVFormat, TEXT("av_register_all"));
	auto my_avcodec_find_encoder = (lib_avcodec_find_encoder)GetProcAddress(hAVCodec, TEXT("avcodec_find_encoder"));
	my_register_all();

	AVCodec *codec = my_avcodec_find_encoder(AV_CODEC_ID_H264);
	if (!codec) {
		MGlobal::displayInfo("Codec not found");
	} else {
		MGlobal::displayInfo("H264 codec was found");
	}
	FreeLibrary(hAVCodec);
	FreeLibrary(hAVFormat);
	return MS::kSuccess;
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There maybe some system environment factors inside of it(e.g. Home computer is Windows 10, Work is Windows 7, etc...) which I can not make sure of it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yours,&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 05:48:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6245531#M13360</guid>
      <dc:creator>cheng_xi_li</dc:creator>
      <dc:date>2016-04-01T05:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: ffmpeg linked to mll fails when calling avcodec_find_encoder</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6245823#M13361</link>
      <description>&lt;P&gt;Thank you so much for that solution Li, it works here!&lt;/P&gt;&lt;P&gt;I will try explicit linking for now. I really wish I could initiate&amp;nbsp;the library functions during load-time, but it's hard to determine if it's an issue coming from the way Maya loads the .mll or something missing during the compilation in Visual Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My computers are also running Windows 7. Could you please confirm which version of the .NET Framework you have installed in your Work Computer?&lt;/P&gt;&lt;P&gt;I have these:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Microsoft .NET Framework 4.5 Multi-Targeting Pack&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Microsoft .NET Framework 4.5 SDK&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Microsoft .NET Framework 4.6.00081&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, which version of Visual Studio?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Microsoft Visual Studio Ultimate 2012&amp;nbsp;Version 11.0.61030.00 Update 4&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 10:15:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6245823#M13361</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-01T10:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: ffmpeg linked to mll fails when calling avcodec_find_encoder</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6245824#M13362</link>
      <description>&lt;P&gt;Accidentally repeated the post.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 10:18:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6245824#M13362</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-01T10:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: ffmpeg linked to mll fails when calling avcodec_find_encoder</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6245991#M13363</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am not in office now, I'll confirm the .Net version on Tuesday. But I think it should be .Net 4.0 and .Net 4.5.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am using Visual Studio Update 4 like you.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Yours,&lt;BR /&gt;&lt;BR /&gt;Li</description>
      <pubDate>Fri, 01 Apr 2016 12:01:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/ffmpeg-linked-to-mll-fails-when-calling-avcodec-find-encoder/m-p/6245991#M13363</guid>
      <dc:creator>cheng_xi_li</dc:creator>
      <dc:date>2016-04-01T12:01:45Z</dc:date>
    </item>
  </channel>
</rss>

