0

hello I am trying to steam using HLS and rtmp which worked when I was using IP address and default configuration file /var/www/html for nginx but now I setup a domain name with ssl certificate for nginx and I want to stream from this domain

this is the configuration file

rtmp {
        server {
                listen 1935;
                chunk_size 4096;
                allow publish 127.0.0.1;
                deny publish all;
            application live {
                    live on;
                    record off;  

            }
    }

}

when I run the command

 ffmpeg -re -i sample.mp4 -c:v copy -c:a aac -ar 44100 -ac 1 -f flv rtmp://localhost/live/stream

I get the following error

rtmp://localhost/live/stream: Input/output error

the new structure for files where my domain is loading is

/var/www/englishsociety/html
islam
  • 11

0 Answers0