【发布时间】:2020-07-03 08:53:32
【问题描述】:
这是我在这里的第一篇文章,尽管这个平台已经帮助了我很多。
所以,我正在尝试创建一个流并将其显示在浏览器中。我已经为 NGINX 配置了 rtmp 模块,并且我的流与 HLS 配合得很好(延迟在 5 到 10 秒之间)。
现在我想设置一个低延迟的流,这就是为什么我安装了 janus-gateway webRTC 服务器,它允许输入一个 RTP 流并在输出中提供一个 webRTC 流。
这是我想遵循的架构:
OBS -> RTMP -> Nginx-rtmp-module -> ffmpeg -> RTP -> Janus -> webRTC -> 浏览器
但这部分我有一个问题:“nginx-rtmp-module -> ffmpeg -> janus”
事实上,我的 janus 的服务器正在运行,并且演示流在 localhost 中运行良好,但是当我尝试提供 RTP 流时,Janus 没有检测到演示中的流(它显示“没有可用的远程视频”) .
有人可以帮帮我吗?
资源:
- 我的 janus.plugin.streaming.jcfg 配置:
rtp-sample: {
type = "rtp"
id = 1
description = "Opus/VP8 live stream coming from external source"
metadata = "You can use this metadata section to put any info you want!"
audio = true
video = true
audioport = 5002
audiopt = 111
audiortpmap = "opus/48000/2"
videoport = 5004
videopt = 100
videortpmap = "VP8/90000"
secret = "adminpwd"
}
- 我的 nginx.conf 应用程序:
application test {
deny play all;
live on;
on_publish http://localhost/test/backend/sec/live_auth.php;
exec ffmpeg -i rtmp://localhost/test/$name -an -c:v copy -flags global_header -bsf dump_extra -f rtp rtp://localhost:5004;
}
如果您需要更多帮助我,请不要犹豫!提前谢谢你,对不起我的英语不好:)
【问题讨论】:
-
你在 janus 上做了什么设置来完成这项工作......我被卡住了
-
@dinindu 对不起,已经一年了,我不记得了,从那以后我已经卸载了所有东西
-
感谢您的更新。
标签: nginx ffmpeg webrtc rtmp janus-gateway