I'm trying to compile ffmpeg following this guide, it doesn't show how to enable libsrt, I tried the following configuration, but got error libavformat/libsrt.c:24:10: fatal error: srt/srt.h: No such file or directory
.
./configure --prefix=/home/hao/repo/Transcoder/Release/ffmpeg --enable-shared --enable-demuxer='mpegts,mpegvideo,image2' --enable-muxer=mpegts --enable-protocol='file,udp,rtp,srt' --enable-filter=overlay --enable-zlib --enable-libsrt --disable-doc
It does not appear you are following the compile guide, but if you were to do so then compiling instructions for Haivision SRT could look like:
Then continue with the guide. When you get to the
ffmpeg
section make sure to add--enable-libsrt
to the configure line.