【发布时间】:2017-09-12 13:33:41
【问题描述】:
如果我在 nginx.conf 中使用以下代码,你能告诉我流 URL 是什么
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;
}
}
}
我试过了,但没用:
rtmp://My_Server_Ip/show
编辑
rtmp {
server {
listen 1935;
chunk_size 4000;
application live2 {
live on;
pull rtmp://Stream_IP app=vod/demo.mp4 name=okstr live=1;
}
}
}
与
rtmp {
server {
listen 1935;
chunk_size 4000;
application live2 {
live on;
pull rtmp://Stream_IP/vod/demo.mp4 name=okstr live=1;
}
}
}
然后我尝试在 VLC 中跟踪 URL,但它没有任何显示视频或任何错误。
http://My_IP/live2/okstr
【问题讨论】: