二. CentOS6 Linux上编译m3u8-segment:
1. 下载m3u8-segmenter-master.zip,下载地址:
2. 解压编译,但./configure时,始终报告:
checking for FFMPEG... no
configure: error: Package requirements (libavformat libavcodec libavutil) were not met:
No package 'libavformat' found
No package 'libavcodec' found
No package 'libavutil' found
所以,直接用命令行编译了:
gcc -Wall -g -I/usr/local/ffmpeg/include m3u8-segmenter.c -o segmenter -L/usr/local/ffmpeg/lib -lavformat
得到了:segmenter