Install libnginx-mod-rtmp by entering the following commands in the terminal:
sudo apt update sudo apt install libnginx-mod-rtmp
RTMP support for Nginx
The nginx RTMP module is a fully-featured streaming solution implemented in nginx. . It provides the following features: - Live streaming with RTMP, HLS and MPEG-DASH; - RTMP Video on Demand from local or HTTP sources; - Stream relay support via a push or pull model; - Integrated stream recording; - and more.