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}}]}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章