下载地址: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