我只想从由 Wowza 服务器引擎管理的 Axis 摄像机流式传输视频/音频,并在 Firefox 浏览器上显示视频/音频。来自相机的流(H264,AAC 16000)在 ffmpeg 的帮助下被转码为 H264,AAC(48000)。这会产生 2 个音频通道(在 SDP 中可见),允许在 Wowza 转码为 VP8、OPUS 和 mpeg-ts 后由浏览器显示。在 Chrome 中它工作正常。在 Firefox(测试 49 和 50beta)中会出现一些错误。
控制台给出:
ICE failed, see about:webrtc for more details
当显示 about:webrtc 我有:
从 SDP 本地
a=candidate:0 1 UDP 2122252543 192.42.172.126 58085 typ host
从SDP遥远
a=candidate:0 1 TCP 50 192.42.172.189 6558 typ host generation 0
关于:webrtc 的日志:
(ice/WARNING) ICE(PC:1477400980285000 (id=110 url=<wowza/webrtc url>)): peer (PC:1477400980285000 (id=110 url=<wowza/webrtc url>):default) has no stream matching stream 0-1477400980285000 (id=110 url=<wowza/webrtc url>) aLevel=1
(ice/NOTICE) ICE(PC:1477400980285000 (id=110 url=<wowza/webrtc url>)): peer (PC:1477400980285000 (id=110 url=<wowza/webrtc url>):default) no streams with non-empty check lists
(ice/NOTICE) ICE(PC:1477400980285000 (id=110 url=<wowza/webrtc url>)): peer (PC:1477400980285000 (id=110 url=<wowza/webrtc url>):default) no streams with pre-answer requests
(ice/NOTICE) ICE(PC:1477400980285000 (id=110 url=<wowza/webrtc url>)): peer (PC:1477400980285000 (id=110 url=<wowza/webrtc url>):default) no checks to start
(ice/WARNING) ICE(PC:1477400980285000 (id=110 url=<wowza/webrtc url>)): Error parsing attribute: candidate:0 1 TCP 50 192.42.172.189 6558 typ host generation 0
(ice/INFO) ICE(PC:1477400980285000 (id=110 url=<wowza/webrtc url>)): peer (PC:1477400980285000 (id=110 url=<wowza/webrtc url>):default) Trickle grace period is over; marking every component with only failed pairs as failed.
(ice/INFO) ICE-PEER(PC:1477400980285000 (id=110 url=<wowza/webrtc url>):default)/STREAM(0-1477400980285000 (id=110 url=<wowza/webrtc url>) aLevel=0)/COMP(1): All pairs are failed, and grace period has elapsed. Marking component as failed.
(ice/INFO) ICE-PEER(PC:1477400980285000 (id=110 url=<wowza/webrtc url>):default): all checks completed success=0 fail=1
如果我在 VHost.xml 中更改 webrtcIceCandidateIpAddresses 的值以在 UDP 上工作(这意味着从 wowza IP 192.42.172.189,tcp,6558 到 192.42.172.189,udp):
<Property>
<Name>webrtcIceCandidateIpAddresses</Name>
<Value>192.42.172.189,udp</Value>
<Type>String</Type>
</Property>
我将在控制台中遇到相同的错误。在 about:webrtc 我将拥有:
SDP 本地
a=candidate:0 1 UDP 2122252543 192.42.172.126 50662 typ host
SDP 遥远
a=candidate:0 1 UDP 50 192.42.172.189 6974 typ host generation 0
关于:webrtc 的日志:
(ice/WARNING) ICE(PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html)): peer (PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html):default) has no stream matching stream 0-1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html) aLevel=1
(ice/NOTICE) ICE(PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html)): peer (PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html):default) no streams with non-empty check lists
(ice/NOTICE) ICE(PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html)): peer (PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html):default) no streams with pre-answer requests
(ice/NOTICE) ICE(PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html)): peer (PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html):default) no checks to start
(ice/INFO) ICE-PEER(PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html):default)/CAND-PAIR(uCnR): setting pair to state FROZEN: uCnR|IP4:192.42.172.126:50662/UDP|IP4:192.42.172.189:6974/UDP(host(IP4:192.42.172.126:50662/UDP)|candidate:0 1 UDP 50 192.42.172.189 6974 typ host generation 0)
(ice/INFO) ICE(PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html))/CAND-PAIR(uCnR): Pairing candidate IP4:192.42.172.126:50662/UDP (7e7f00ff):IP4:192.42.172.189:6974/UDP (32) priority=218992869886 (32fcfe01fe)
(ice/INFO) ICE-PEER(PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html):default)/ICE-STREAM(0-1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html) aLevel=0): Starting check timer for stream.
(ice/INFO) ICE-PEER(PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html):default)/CAND-PAIR(uCnR): setting pair to state WAITING: uCnR|IP4:192.42.172.126:50662/UDP|IP4:192.42.172.189:6974/UDP(host(IP4:192.42.172.126:50662/UDP)|candidate:0 1 UDP 50 192.42.172.189 6974 typ host generation 0)
(ice/INFO) ICE-PEER(PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html):default)/CAND-PAIR(uCnR): setting pair to state IN_PROGRESS: uCnR|IP4:192.42.172.126:50662/UDP|IP4:192.42.172.189:6974/UDP(host(IP4:192.42.172.126:50662/UDP)|candidate:0 1 UDP 50 192.42.172.189 6974 typ host generation 0)
(ice/NOTICE) ICE(PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html)): peer (PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html):default) is now checking
(generic/EMERG) Error in recvfrom: -5961
(ice/WARNING) ICE-PEER(PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html):default): no pairs for 0-1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html) aLevel=0
(generic/EMERG) Error in recvfrom: -5961
(generic/EMERG) Error in recvfrom: -5961
(generic/EMERG) Error in recvfrom: -5961
(generic/EMERG) Error in recvfrom: -5961
(generic/EMERG) Error in recvfrom: -5961
(ice/INFO) ICE(PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html)): peer (PC:1477402453964000 (id=114 url=https://192.42.172.189:6560/webrtc/play/index.html):default) Trickle grace period is over; marking every component with only failed pairs as failed.
(generic/EMERG) Error in recvfrom: -5961
我试图通过在网上搜索可能的原因来找到解决方案,但没有结果。有人可以帮忙吗?
谢谢,迭戈