I'm trying to compile ffmpeg from source, but when I try to compile a program dependent on it (from a tutorial), I get the error:
fatal error: ffmpeg/swscale.h: No such file or directory
I have cloned the github repository and followed the install instructions, but still get the same error.
I have also tried make install-libs
and make config.h
, but I'm kind of out of my depth here, because I'm not really a C programmer.
It's actually now located in
swscale/swscale.h
, so I guess the tutorial is just outdated.you can use
#include <libswscale/swscale.h>
if ffmpeg installed correctly (with sudo make install) and your makefile has these below:Note: I'm using/used ffmpeg API's too, this is tested. Oh and for c++ projects you may want to use
extern "C"
before include.Makefile (for c++):
For C, change
CXXFLAGS
toCFLAGS
.Hope that helps.