[英]Streaming from obs to Nginx
I'm trying to stream from obs to nginx server.我正在尝试从 obs 流式传输到 nginx 服务器。 I'm using videojs as a player.
我正在使用 videojs 作为播放器。 In OBS Settings I'm using custom Streaming server and the url is rtmp://localhost/live.
在 OBS 设置中,我使用自定义流媒体服务器,网址为 rtmp://localhost/live。 this is the configuration file for nginx:
这是nginx的配置文件:
rtmp {
server {
listen 1935;
chunk_size 4096;
application live {
live on;
record off;
}
}
}
and this is the html part:这是 html 部分:
<video id="player" class="video-js vjs-default-skin" height="360" width="640" controls autoplay preload="none">
<source src="rtmp://localhost/live" type="rtmp/mp4" />
</video>
https://github.com/DigiSkyOps/knife this is a obs stream server https://github.com/DigiSkyOps/knife这是一个 obs 流服务器
nginx/config nginx/配置
rtmp {
server {
listen 1935;
chunk_size 4000;
application live {
live on;
}
application hls {
live on;
hls on;
hls_path /data/hls;
hls_fragment 5s;
hls_playlist_length 10s;
hls_continuous on;
hls_cleanup on;
hls_nested on;
}
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.