如何启用libsrt编译ffmpeg [英] how to compile ffmpeg with enabling libsrt

查看:770
本文介绍了如何启用libsrt编译ffmpeg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照指南进行编译,显示了如何启用libsrt,我尝试了以下配置,但出现错误libavformat/libsrt.c:24:10: fatal error: srt/srt.h: No such file or directory.

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

./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:

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添加到配置行.

Then continue with the guide. When you get to the ffmpeg section make sure to add --enable-libsrt to the configure line.

这篇关于如何启用libsrt编译ffmpeg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆