User Tools

Site Tools


This is an old revision of the document!

Writing your own plugins, Visual C++ 2015 or 2017

You dont need to compile avidemux yourself to write your own plugins.
What you need is :

  • Avidemux installed on your system
  • SDK component activated
  • CMake > 3.x
  • A demo/sample video filter, available here

Make sure you have selected the SDK component during install


You will need to install cmake version 3.x
Make sure the cmake “bin” folder is in your path

Cli : Compile the sample using MSYS2/MinGW

It is best to start here to make sure you have a working environment

Start a MSYS2 shell, go where you unzipped the demo code (i.e. c:\tmp\videoFilterDemo for example )
Create a build folder

 mkdir build && cd build

then generate the makefile

 cmake -G "MSYS Makefiles" -DCMAKE_MAKE_PROGRAM=mingw32-make -DCMAKE_INSTALL_PREFIX="c:\Program Files\Avidemux 2.6 - 64 bits" ..

The CMAKE_INSTALL_PREFIX should point to the place where avidemux is

Look for error, it should go without problem.


Upon success, copy the dll in c:\Program Files\Avidemux 2.6 - 64 bits\plugins\videoFilters\
Start avidemux and you should see a logo_sample filter in the menu list

Important/Common problem

If the C++ library used by mingw is more recent than the one used by avidemux itself you'll run into two problem :

  • If you have error undefined symbol _imp_xxxxstdcxx11xxxxbasic_stringxxx when compiling , add one line at the very top of CMakeLists.txt


  • If you have error at startup “Cannot locate xyz in libsdtc+++”, Overwrite the libstdc++-6.dll in the avidemux folder with the one from mingw, e.g. c:\Mingw64\mingw64\bin\libstdc++-6.dll

Do the fixes above, erase the build folder (build/*) and do it all over again (it takes 5 sec)

Using Netbeans

You'll need the same requirement as above (i.e. cmake, msys,…)
You *MUST* add msys make, mingw make will not work with netbeans
Open a msys2 shell, and enter

 pacman -S make  
Configure Netbeans

There are two parts :

  • Configure the toolchain
  • Configure the project

The toolchain should be configured as follow :
The important part is to select the make from msys64/usr/bin

Everything is coming from msys, the screenshot is a bit old

Last step is to setup the project :
Step 1
Step 3

The important part are :

  • At step2 select custom
  • At step3, add

-G “MSYS Makefiles” -DCMAKE_INSTALL_PREFIX=“c:/Program Files/Avidemux 2.6 - 64 bits”“

Note that the path separator are ”/“ and not “\”!

You can build the sample now.

In case you made a mistake, dont forget to delete the CMakeCache.txt file before retrying

build/devel_2.6_msvc.1514804958.txt.gz · Last modified: 2018/01/01 12:09 by mean