基于nginx和nginx-rtmp-module搭建rtmp流媒体服务器

来源:互联网 发布:漂亮 知乎 编辑:程序博客网 时间:2024/05/22 10:59


编译m3u8-segmenter

下载地址:https://github.com/johnf/m3u8-segmenter.git

编译问题:

1.configure: error: Package requirements (libavformat libavcodec libavutil) were not met:

解决方法:

手动编译

gcc -Wall  m3u8-segmenter.c -o segmenter -L/usr/local/lib -lavformat -lavcodec -lavutil


2.

‘CODEC_ID_MP3’ undeclared (first use in this function)

解决方法:

宏名前加AV_

参考https://github.com/johnf/m3u8-segmenter/pull/39/commits/b349ae9748bec61cb15d8853edcd671039d36bc1

0 0
原创粉丝点击