Search code examples
ffmpegvideo-processingtimecodes

How do I get rid 'avformat.h' no such file or directory error while installing Video-ffmpeg?


I've been trying to install Video-ffmpeg but sudo make shows this error, FFmpeg.xs:7:22: fatal error: avformat.h: No such file or directory. compilation terminated.

I've libavformat53 installed on my m/c. Is there something I've to install?


Solution

  • you need the headers of libavformat, which in ubuntu/debian are called libavformat-dev.

    aptitude search libavformat
    sudo aptitude reinstall libavformat53 libavformat-dev libavcodec53