stream - What will be RTMP URL for nginx -
can please tell me me stream url if using following code in nginx.conf
rtmp { server { listen 1935; # listen on standard rtmp port chunk_size 4000; application show { live on; pull rtmp://this_is_some_stream live=1; hls on; hls_path /mnt/hls/; hls_fragment 3; hls_playlist_length 60; } } } i tried didn't work: rtmp://my_server_ip/show
edit
rtmp { server { listen 1935; chunk_size 4000; application live2 { live on; pull rtmp://stream_ip app=vod/demo.mp4 name=okstr live=1; } } } and
rtmp { server { listen 1935; chunk_size 4000; application live2 { live on; pull rtmp://stream_ip/vod/demo.mp4 name=okstr live=1; } } } then tried following url in vlc didn't show video nor error.
http://my_ip/live2/okstr
the general format is: [rtmp://]host[:port][/app[/playpath]]
in case of pull if playpath empty uses current stream name.
you either didn't set play path, pull doesn't work or firewall blocks rtmp. check logs.
Comments
Post a Comment