在编译FFMPEG之前,用命令行添加libsrt的库路径:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
之后再编译FFMPEG。
下载libsrt源码,编译并安装:
git clone https://github.com/Haivision/srt.git cd srt ./configure --prefix=/usr/local --enable-shared make && make install pkg-config --cflags --libs srt
然后再编译FFMPEG。
参考代码示例:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --prefix=/usr/local --enable-shared --enable-libsrt make && make install