'Pull rtmp video in nginx server

I have some question about nginx server. Current I have a live 247 RTMP Stream demo URL, now I want pull this link in nginx server. My config:

worker_processes 1;
events {
    worker_connections 1024;
}

# RTMP configuration
rtmp {
    server {
        listen 1935;
        chunk_size 4000;
        application mypull {
            live on ;
            meta copy;
            allow play all;
            pull rtmp://62.113.210.250/medienasa-live/rbw_high name=channel1 live=1;
        }
        application stream {
            live on;
            hls on;
            hls_path /tmp/hls;
            hls_fragment 3;
            hls_playlist_length 60;
        }
    }
}

http {
    server {
        listen 8080;
        location /hls {
            alias /tmp/hls;
        }
    }
}

But nothing pulls into /tmp/hls. I try using ffmpeg to convert this URL to stream.m3u8, but nginx does not play my stream.m3u8 too. Please help me know what is wrong?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source