Compile m3u8-segmenter
Download address: https://github.com/johnf/m3u8-segmenter.git
Compilation problem:
1.configure: error: Package requirements (libavformat libavcodec libavutil) were not met:
Solution:
Compile manually
gcc -Wall m3u8-segments.c -o segments -L / usr / local / lib -lavformat -lavcodec -lavutil
2.
‘CODEC_ID_MP3’ undeclared (first use in this function)
Solution:
Add AV_ before the macro name
Reference https://github.com/johnf/m3u8-segmenter/pull/39/commits/b349ae9748bec61cb15d8853edcd671039d36bc1