如何在启用 libsrt 的情况下编译 ffmpeg [英] how to compile ffmpeg with enabling libsrt

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

问题描述

我正在尝试按照 this 指南编译 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='文件,udp,rtp,srt' --enable-filter=overlay --enable-zlib --enable-libsrt --disable-doc

推荐答案

您似乎没有关注 编译指南,但如果您要这样做,那么 Haivision SRT 的编译说明可能如下所示:

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天全站免登陆