anyRTC RTSP转WebRTC方案

{"type":"doc","content":[{"type":"blockquote","content":[{"type":"bulletedlist","content":[{"type":"listitem","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"想要网页端无插件实时观看监控视频"}]}]},{"type":"listitem","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"对实时性有要求,1080P延迟在400m内"}]}]}]}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"一、为什么要转WebRTC"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong"}],"text":"RTSP公网效果不好"},{"type":"text","text":" RTSP使用udp传输容易花屏,所以一般都是走 tcp进行传输,但是tcp又受带宽和tcp自身的特点影响,很容易引起延迟。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong"}],"text":"网页端观看视频必须使用插件"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"RTSP对浏览器非常挑剔,也是RTSP没有被广泛推广的重要原因。直播行业的兴起,培养了用户在微信端,以及Web端观看直播的习惯,插件的方式已经不能够被人接受。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong"}],"text":"互动起来超级困难"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"由于该协议公网传输效果不好,在互动的时候更是让人难以忍受。互动延迟大、花屏、丢声音、容易卡顿。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"二、anyRTC 方案介绍"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"ArRtspTool是anyRTC开源的一款将rtsp流转为rtc的工具,这样rtsp的流可以不需要外网服务或IP地址,即可实现网页/H5无插件观看,小程序,APP等各种方式查看视频流。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"支持常见的Linux、Windows、树莓派、英伟达TX系列等等。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"支持Rtsp流,支持USB摄像头,支持窗口推流等等。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/00/0068da86b2e747498b83fcf9af4ebc90.png","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong"}],"text":"适用的场景:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"1,内网摄像头穿透到公网:使用网页,App或小程序进行观看,超低400ms内延时"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"2,远程驾驶:超低延时,远程操控,流程不卡顿"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"3,无人机:超低延时,精准控制,AI识别反馈"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"4,小区门禁:实时监看,双向对讲,远程操控"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"三、编译"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"下载代码到本地:git clone "},{"type":"link","attrs":{"href":"https://github.com/anyRTC-UseCase/ArRtspTool.git","title":null},"content":[{"type":"text","text":"github.com/anyRTC-UseC…"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"编译脚本对应的平台(已验证,其他平台或系统版本可联系我司进行确认):"}]},{"type":"codeblock","attrs":{"lang":null},"content":[{"type":"text","text":"Makefile.linux - Centos7.0及以上\nMakefile.pi - 树莓派4\nMakefile.tx - Nvidia TX2\n复制代码"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"以树莓派为例(以下命令均以root运行,非root可能会报权限错误):"}]},{"type":"codeblock","attrs":{"lang":null},"content":[{"type":"text","text":"***# cd ArRtspTool\n***# cp Makefile.pi Makefile\n***# make && make install\n复制代码"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"启动程序,运行之前记得先配置一下相关参数"}]},{"type":"codeblock","attrs":{"lang":null},"content":[{"type":"text","text":"***# chmod +x run.sh\n***# ./run.sh start ArRtspTool rtsp.conf \n复制代码"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"停止程序"}]},{"type":"codeblock","attrs":{"lang":null},"content":[{"type":"text","text":"***# ./run.sh stop ArRtspTool\n复制代码"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"四、如何配置"}]},{"type":"codeblock","attrs":{"lang":null},"content":[{"type":"text","text":"[rtsp]\nurl=你的Rtsp流的Url\n\n[nv]\ndev_id=设备ID(/dev/video0)\n\n[rtc]\napp_id=rtc的AppId,\nchan_id=频道ID,可设置任意值,web或App通过此ID可以观看rtsp的流\n复制代码"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"AppId的获取可以登录"},{"type":"link","attrs":{"href":"https://console.anyrtc.io/signin","title":null},"content":[{"type":"text","text":"anyRTC"}]},{"type":"text","text":"官网获取"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong"}],"text":"注意:"},{"type":"text","text":" Rtsp地址和设备ID二者选其一,优先Rtsp地址,若推本地摄像头则无需配置Rtsp地址"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"五、常见问题"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"详见"},{"type":"link","attrs":{"href":"https://docs.anyrtc.io/platforms/docs/platforms/FAQ/faq","title":null},"content":[{"type":"text","text":"常见问题"}]},{"type":"text","text":"。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong"}],"text":"anyRTC创业扶持计划"}]},{"type":"bulletedlist","content":[{"type":"listitem","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"30万免费分钟数,助力初创企业快速发展。"}]}]}]},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"https://www.anyrtc.io/","title":null},"content":[{"type":"text","text":"anyRTC"}]},{"type":"text","text":"初创企业扶持计划,只要通过企业审核,联系客服加入"},{"type":"link","attrs":{"href":"https://www.anyrtc.io/","title":null},"content":[{"type":"text","text":"anyRTC"}]},{"type":"text","text":"创业扶持计划,即可享受30万免费分钟数。获得分钟数可降低在实时音视频技术服务所产生的成本费用,零成本快速启动项目。"}]}]},{"type":"bulletedlist","content":[{"type":"listitem","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"专属技术指导支持"}]}]}]},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"https://www.anyrtc.io/","title":null},"content":[{"type":"text","text":"anyRTC"}]},{"type":"text","text":"为初创企业提供一对一专属客服,为客户提供专业、认真的服务,及时解答您的疑惑。并为客户提供专属技术指导,更快上手,轻松上线!"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}}]}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章