源码下载:
https://github.com/johnf/m3u8-segmenter
执行:
aclocal
automake -ac
autoconf /*我在执行这步的时候报错了,后来我又下载了autoconf-2.69,后来提示有冲突,即安装了多个版本的autoconf,所以要删除原来的版本,我的删除方法是 find / -name autoconf,然后删除旧版本*/
编译:
./configure FFMPEG_CFLAGS=-I./ffmpeg-1.1.3 FFMPEG_LIBS='-L ./ffmpeg-1.1.3/libavformat -L./ffmpeg-1.1.3/libavcodec -L./ffmpeg-1.1.3/libavutil -pthread -lavformat -lavcodec -lavutil -lm -lz -liconv -libz2'
make
make install
搞了两天终于搞定了!