# VTK Requested modules not available vtkIOFFMPEG

**URL:** https://discourse.vtk.org/t/vtk-requested-modules-not-available-vtkioffmpeg/1335
**Category:** Support
**Created:** [July 15, 2019, 2:32pm UTC](https://discourse.vtk.org/t/vtk-requested-modules-not-available-vtkioffmpeg/1335 "2019-07-15T14:32:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![aneeshikmat](https://discourse.vtk.org/user_avatar/discourse.vtk.org/aneeshikmat/32/651_2.png) [@aneeshikmat](https://discourse.vtk.org/u/aneeshikmat)
#### Post date: [July 15, 2019, 2:32pm UTC](https://discourse.vtk.org/t/vtk-requested-modules-not-available-vtkioffmpeg/1335/1 "2019-07-15T14:32:44Z")

</div>

> <https://stackoverflow.com/questions/57028802/vtk-requested-modules-not-available-vtkioffmpeg>

Im try to execute this [example](https://lorensen.github.io/VTKExamples/site/Cxx/Video/FFMPEG/) from VTK, and to do that I most install ffmpeg from this [url](https://vtk.org/download/) and all is good, but when I try to build project I get this error:

/Downloads/VTK-8.2.0/CMake/vtkModuleAPI.cmake:140 (message):  
Requested modules not available:

```auto
vtkIOFFMPEG

```

I do all step in ffmpeg zipped file which I installed it from VTK download [url](https://vtk.org/download/), and if press ccmake on **VTK-build** directory I can see these option is enabled

> VTK\_FFMPEG\_INCLUDE\_DIR /tmp/ffmpeg\_inst/include  
> VTK\_FFMPEG\_avcodec\_LIBRARY /tmp/ffmpeg\_inst/lib/libavcodec.so  
> VTK\_FFMPEG\_avformat\_LIBRARY /tmp/ffmpeg\_inst/lib/libavformat.so  
> VTK\_FFMPEG\_avutil\_LIBRARY /tmp/ffmpeg\_inst/lib/libavutil.so VTK\_USE\_FFMPEG\_ENCODER ON

and all files/directory is found and located under /tmp/ffmpeg\_inst, Also I run make -j4 after VTK\_USE\_FFMPEG\_ENCODER is set on.

Why vtkIOFFMPEG module not found now? is there any mistake in configuration or is there any specific configuration for FFMPEG example before build? thanks.

Additional Note:

1. VTK version: 8.2.0
2. cmake version 3.13.2

---

<div class="post-metadata">

### Author: ![aneeshikmat](https://discourse.vtk.org/user_avatar/discourse.vtk.org/aneeshikmat/32/651_2.png) [@aneeshikmat](https://discourse.vtk.org/u/aneeshikmat)
#### Post date: [July 15, 2019, 5:05pm UTC](https://discourse.vtk.org/t/vtk-requested-modules-not-available-vtkioffmpeg/1335/2 "2019-07-15T17:05:28Z")

</div>

I found an answer for this question, Simply its by go to VTK-build directory, and then set `Module_vtkIOFFMPEG = ON`

Also in this version You need to set path like this:

```auto
 FFMPEG_LIBAVCODEC_INCLUDE_DIRS /ffmpeg_inst/include                                                                           
 FFMPEG_LIBAVCODEC_LIBRARIES /ffmpeg_inst/lib/libavcodec.so                                                                 
 FFMPEG_LIBAVDEVICE_INCLUDE_DIR /ffmpeg_inst/include                                                                           
 FFMPEG_LIBAVDEVICE_LIBRARIES /ffmpeg_inst/lib/libavdevice.so                                                                
 FFMPEG_LIBAVFORMAT_INCLUDE_DIR /ffmpeg_inst/include                                                                           
 FFMPEG_LIBAVFORMAT_LIBRARIES /ffmpeg_inst/lib/libavformat.so                                                                
 FFMPEG_LIBAVUTIL_INCLUDE_DIRS /ffmpeg_inst/include                                                                           
 FFMPEG_LIBAVUTIL_LIBRARIES /ffmpeg_inst/lib/libavutil.so                                                                  
 FFMPEG_LIBSWRESAMPLE_INCLUDE_D /ffmpeg_inst/include                                                                           
 FFMPEG_LIBSWRESAMPLE_LIBRARIES /ffmpeg_inst/lib/libswresample.so                                                              
 FFMPEG_LIBSWSCALE_INCLUDE_DIRS /ffmpeg_inst/include                                                                           
 FFMPEG_LIBSWSCALE_LIBRARIES /ffmpeg_inst/lib/libswscale.so 

```

Good luck all.
