[英]Connect a RTP stream to Kurento Media Server and broadacast using WebRTC
I am trying to create a WebRtc stream using Kurento
Media Server and a hardware video encoder. 我正在尝试使用
Kurento
Media Server和硬件视频编码器创建WebRtc流。
The video source is coming from Haivision Makito DVI
. 视频源来自
Haivision Makito DVI
。 Makito
is a hardware encoder which captures a FHD display using DVI cable, compresses using h.264 codec and streams in number of protocols options ( TS over UDP
, TS over RTP
, Direct RTP
, Quicktime
, RTMP
). Makito
是一种硬件编码器,可以使用DVI电缆捕获FHD显示,使用h.264编解码器进行压缩以及多种协议选项( TS over UDP
TS over RTP
, Direct RTP
, Quicktime
和RTMP
)中的流。
So far I have managed to play a RTSP stream from vlc
to Kurento
I have implemented a RtpEndpoint -> WebRtc example which is published in this repository . 到目前为止,我已经设法播放了从
vlc
到Kurento
的RTSP流,我实现了一个RtpEndpoint-> WebRtc示例,该示例已在此存储库中发布。 (This proves Kurento
works) (这证明了
Kurento
作品)
The encoder's sdp
can be accessed here - SDP . 可以在此处访问编码器的
sdp
- SDP 。
At first Kurento
had crashed and throw an error saying "Could not join Multicast group: No such Device" which I solved using this post . 起初
Kurento
崩溃并抛出一个错误,说“无法加入多播组:没有这样的设备”,我使用这篇文章解决了这个问题。
Now, my server side and client side are working and communicating perfectly but no video can be seen. 现在,我的服务器端和客户端都可以正常工作并且可以正常通信,但是看不到任何视频。 Currently I don't have a clue what is the problem.
目前我不知道这是什么问题。
This is the SDP answer generated by Kurento after using rtpEndpoint.processOffer()
: 这是Kurento在使用
rtpEndpoint.processOffer()
之后生成的SDP答案:
` `
v = 0
o =- 3718280759 3718280759 IN IP4 192.168.6.20
s = Kurento Media Server
c = IN IP4 192.168.6.20
t = 0 0
m = video 58116 RTP/AVP 96
a = fmtp: 96 packetisation-mode=1; sprop=parameter-sets=Z0IAKYxoB4ifl/8AAQABEAAAAMAQAAADyEAAAAAAA=,aM48gAAAAA=
a = ssrc:3106833799 cname:user3165393302@host-52028916
m = audio 34338 RTP/AVP
a = ssrc:396556932 cname:user3165393302@host-52028916
Please help, 请帮忙,
Thanks 谢谢
The problem was that Makito
transmits video to a predefined fixed udp port. 问题在于
Makito
视频传输到预定义的固定udp端口。
To solved it I am extracting the udp port from the sdp answer generated by Kurento
and configuring Makito
's destination udp port at runtime using a simple script. 为了解决这个问题,我从
Kurento
生成的sdp答案中提取udp端口,并在运行时使用简单的脚本配置Makito
的目标udp端口。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.