简体   繁体   English

将RTP流连接到Kurento Media Server并使用WebRTC进行广播

[英]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 RTPDirect RTPQuicktimeRTMP )中的流。

  • 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 . 到目前为止,我已经设法播放了从vlcKurento的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
  • Which of the above protocols does Kurento currently support? Kurento当前支持以上哪种协议?
  • Do I place some commands in the wrong order? 我会以错误的顺序放置一些命令吗?
  • What am I doing wrong? 我究竟做错了什么?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM