【发布时间】:2020-02-11 08:03:55
【问题描述】:
实际上我是 Nginx RTMP 服务器的新手。我已经设置了我的 nginx.conf 文件来接受 hls 和 dash-mpeg。但现在的问题是我可以同时使用 hls 或 dash-mpeg。所以现在我的问题是可以同时为两个不同的视频提供 hls 和 dash-mpeg 吗?我正在从 OBS Studio 流式传输视频。
这是我在 nginx.conf 文件中的 MPEG 和 hls 代码
rtmp {
server {
listen 1935; # Listen on standard RTMP port
chunk_size 4000;
application show {
live on;
# Turn on HLS
hls on;
hls_path /nginx/hls/;
hls_fragment 3;
hls_playlist_length 60;
deny play all;
}
application dash {
live on;
dash on;
dash_path /nginx/dash;
}
}
}
谢谢你。
【问题讨论】:
标签: nginx ffmpeg http-live-streaming rtmp mpeg-dash