Build rtmp streaming media server based on nginx and nginx-rtmp-module


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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325951388&siteId=291194637