我正在尝试按照this指南编译libavformat/libsrt.c:24:10: fatal error: srt/srt.h: No such file or directory,它没有显示如何启用libsrt,我尝试了以下配置,但得到了错误的ffmpeg。
./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
发布于 2018-06-22 02:55:30
您似乎没有遵循compile guide,但如果您这样做了,那么为海视SRT编译指令可能如下所示:
sudo apt-get install libssl-dev
cd ~/ffmpeg_sources
git clone --depth 1 https://github.com/Haivision/srt.git
mkdir srt/build
cd srt/build
cmake -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_C_DEPS=ON -DENABLE_SHARED=OFF -DENABLE_STATIC=ON ..
make
make install然后继续阅读该指南。当您到达ffmpeg部分时,请确保将--enable-libsrt添加到configure行。
https://stackoverflow.com/questions/50967706
复制相似问题