{"id":1137,"date":"2024-11-05T10:15:56","date_gmt":"2024-11-05T02:15:56","guid":{"rendered":"http:\/\/www.yh-vtec.com\/?p=1137"},"modified":"2024-11-05T10:15:56","modified_gmt":"2024-11-05T02:15:56","slug":"%e5%bc%80%e6%ba%90%e6%b5%81%e5%aa%92%e4%bd%93%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%bd%af%e4%bb%b6%e5%88%86%e4%ba%ab%ef%bc%88%e7%af%871%ef%bc%89","status":"publish","type":"post","link":"http:\/\/www.yh-vtec.com\/2024\/11\/%e5%bc%80%e6%ba%90%e6%b5%81%e5%aa%92%e4%bd%93%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%bd%af%e4%bb%b6%e5%88%86%e4%ba%ab%ef%bc%88%e7%af%871%ef%bc%89\/","title":{"rendered":"\u5f00\u6e90\u6d41\u5a92\u4f53\u670d\u52a1\u5668\u8f6f\u4ef6\u5206\u4eab\uff08\u7bc71\uff09"},"content":{"rendered":"\n
\u5728\u6570\u5b57\u5316\u6d6a\u6f6e\u6c79\u6d8c\u7684\u4eca\u5929\uff0c\u6d41\u5a92\u4f53\u670d\u52a1\u5668\u4f5c\u4e3a\u8fde\u63a5\u5185\u5bb9\u751f\u4ea7\u8005\u4e0e\u89c2\u4f17\u5ba2\u6237\u7684\u6865\u6881\uff0c\u5176\u91cd\u8981\u6027\u65e5\u76ca\u51f8\u663e\u3002\u4ece\u9ad8\u6e05\u5f71\u89c6\u76f4\u64ad\u5230\u5b9e\u65f6\u4e92\u52a8\u4f1a\u8bae\uff0c\u4ece\u89c6\u9891\u76d1\u63a7\u5230\u8fdc\u7a0b\u4e92\u52a8\uff0c\u6d41\u5a92\u4f53\u6280\u672f\u4ee5\u5176\u5f3a\u5927\u7684\u5b9e\u65f6\u4f20\u8f93\u80fd\u529b\u548c\u5e7f\u6cdb\u7684\u517c\u5bb9\u6027\uff0c\u6df1\u523b\u91cd\u5851\u5f53\u524d\u4fe1\u606f\u6570\u636e\u7684\u4f20\u64ad\u65b9\u5f0f\u3002<\/p>\n\n\n\n
\u6d59\u6c5f\u88d5\u701a\u6280\u672f\u56e2\u961f\u4ece\u5ba2\u6237\u957f\u671f\u6280\u672f\u9700\u6c42\u70b9\u51fa\u53d1\uff0c\u7acb\u8db3\u81ea\u8eab\u56e2\u961f\u957f\u671f\u5b9e\u8df5\u7ecf\u9a8c\uff0c\u4e3a\u5927\u5bb6\u5206\u4eab\u51e0\u6b3e\u5e38\u89c1\u5f00\u6e90\u6d41\u5a92\u4f53\u670d\u52a1\u8f6f\u4ef6\u3002<\/p>\n\n\n\n
1.1 \u7b80\u4ecb<\/p>\n\n\n\n
EasyRTSPServer\u662f\u7531EasyDarwin\u5f00\u6e90\u793e\u533a\u5f00\u53d1\u7684\u4e00\u5957\u975e\u5e38\u7a33\u5b9a\u3001\u6613\u7528\u3001\u652f\u6301\u591a\u79cd\u5e73\u53f0\uff08\u5305\u62ecWindows\/Linux 32&64\uff0cAndroid\uff0cARM hisiv100\/hisiv200\/hisiv300\/hisiv400\/hisiv500\/hisiv600\u7b49\u5e73\u53f0\uff09\u7684RTSP Server\u7ec4\u4ef6\u3002<\/p>\n\n\n\n
\u5730\u5740\uff1ahttps:\/\/github.com\/EasyDarwin\/EasyRTSPServer<\/p>\n\n\n\n
\u56fe1\uff1a\u5178\u578bRTSP\u76f4\u64ad\u4e2d\u670d\u52a1\u7aef-\u5ba2\u6237\u7aef\u4ea4\u4e92\u8fc7\u7a0b<\/p>\n\n\n\n
1.2 \u573a\u666f\u5e94\u7528<\/p>\n\n\n\n
\u9002\u7528\u4e8e\u76d1\u63a7\u5b89\u9632\u884c\u4e1aIPCamera\u3001NVR\u3001\u7f16\u7801\u5668\u3001\u5b89\u5353\u76d1\u63a7\u8bbe\u5907\u7b49\uff0c\u6b64\u5916\u652f\u6301\u5b9e\u65f6\u6027\u6781\u5f3a\u7684RTSP\u534f\u8bae\uff0c\u4e5f\u5728\u5728\u7ebf\u6559\u80b2\u3001\u8fdc\u7a0b\u4f1a\u8bae\u3001\u5b9e\u65f6\u8d5b\u4e8b\u76f4\u64ad\u7b49\u5373\u65f6\u89c6\u9891\u4f20\u8f93\u573a\u666f\u6709\u5e7f\u6cdb\u5e94\u7528\uff1b<\/p>\n\n\n\n
1.3 \u6027\u80fd\u4ecb\u7ecd<\/p>\n\n\n\n
1\uff09\u7b80\u5316\u7684RTSP\u6d41\u7a0b\uff1a\u76f8\u6bd4\u76f4\u63a5\u4f7f\u7528live555\u7b49\u590d\u6742RTSP\u5e93\uff0cEasyRTSPServer\u63d0\u4f9b\u4e86\u7b80\u5355\u7684SDK\u8c03\u7528\u63a5\u53e3\uff0c\u5927\u5927\u964d\u4f4e\u4e86\u5f00\u53d1\u96be\u5ea6\u3002<\/p>\n\n\n\n
2\uff09\u4e30\u5bcc\u7684\u793a\u4f8b\u4ee3\u7801\uff1a\u63d0\u4f9b\u4e86\u591a\u4e2a\u5e73\u53f0\u7684\u8c03\u7528\u793a\u4f8b\uff0c\u5982Android\u6444\u50cf\u5934\u91c7\u96c6\u3001Windows\u684c\u9762\u6293\u53d6\u7b49\uff0c\u52a0\u901f\u5f00\u53d1\u8fdb\u7a0b\u3002<\/p>\n\n\n\n
3\uff09\u9ad8\u6548\u7684\u6027\u80fd\uff1a\u7ecf\u8fc7\u5b9e\u6d4b\uff0c\u80fd\u7a33\u5b9a\u652f\u6301\u9ad8\u6e05\u6670\u5ea6\u89c6\u9891\u7684\u5e76\u53d1\u4f20\u8f93\uff0c\u6ee1\u8db3\u5927\u89c4\u6a21\u90e8\u7f72\u9700\u6c42\u3002<\/p>\n\n\n\n
4\uff09\u5468\u5168\u7684\u6587\u6863\u652f\u6301\uff1a\u8be6\u7ec6\u7684\u6280\u672f\u6587\u6863\u548c\u8c03\u7528\u6d41\u7a0b\u56fe\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u7406\u89e3\u548c\u5e94\u7528\u3002<\/p>\n\n\n\n
<\/p>\n\n\n\n
2.1 \u7b80\u4ecb<\/p>\n\n\n\n
SRS\u662f\u4e00\u4e2a\u7b80\u5355\u9ad8\u6548\u7684\u5b9e\u65f6\u89c6\u9891\u670d\u52a1\u5668\uff0c\u652f\u6301RTMP\u3001WebRTC\u3001HLS\u3001HTTP-FLV\u3001SRT\u7b49\u591a\u79cd\u5b9e\u65f6\u6d41\u5a92\u4f53\u534f\u8bae\u3002Oryx\u662f\u4e00\u4e2a\u4e00\u4f53\u5316\u3001\u5f00\u7bb1\u5373\u7528\u3001\u5f00\u6e90\u7684\u89c6\u9891\u89e3\u51b3\u65b9\u6848\uff0c\u53ef\u90e8\u7f72\u5728\u4e91\u4e0a\u6216\u81ea\u5efa\u673a\u623f\uff0c\u4ee5\u76f4\u64ad\u548cWebRTC\u7b49\u80fd\u529b\u8d4b\u80fd\u4f60\u7684\u4e1a\u52a1\u3002<\/p>\n\n\n\n
\u5730\u5740\uff1ahttps:\/\/www.ossrs.net\/lts\/zh-cn\/<\/p>\n\n\n\n
\u56fe2\uff1aSRS4.0 \u5355\u8282\u70b9\u670d\u52a1\u5668\u67b6\u6784<\/p>\n\n\n\n
2.2 \u5e94\u7528\u573a\u666f<\/p>\n\n\n\n
1\uff09\u5b89\u9632\u9886\u57df\uff1a\u97f3\u89c6\u9891\u7684\u5782\u76f4\u7ec6\u5206\u884c\u4e1a\u4e2d\u5e9e\u5927\u7684\u5e02\u573a\u4e4b\u4e00\uff0c\u5404\u79cd\u5d4c\u5165\u5f0f\u7684\u6444\u50cf\u5934\u6b63\u5728\u548c\u4e92\u8054\u7f51\u4ea7\u751f\u8fde\u63a5\uff0cSRS\u662f\u5176\u4e2d\u5173\u952e\u7684\u4e00\u73af\uff0c\u5b9e\u73b0\u4e86GB28181\u63a5\u5165\uff0c\u8f6c\u6362\u6210\u4e92\u8054\u7f51\u76f4\u64ad\u548cWebRTC\u534f\u8bae\u3002<\/p>\n\n\n\n
2\uff09\u5728\u7ebf\u6559\u80b2\uff1a\u652f\u6301\u5927\u89c4\u6a21\u5728\u7ebf\u8bfe\u7a0b\u76f4\u64ad\uff0c\u4fdd\u8bc1\u6559\u5b66\u8d28\u91cf\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n\n\n\n
3\uff09\u65b0\u95fb\u76f4\u64ad\uff1a\u5feb\u901f\u54cd\u5e94\u65b0\u95fb\u4e8b\u4ef6\uff0c\u5b9e\u73b0\u5b9e\u65f6\u8f6c\u64ad\u3002<\/p>\n\n\n\n
4\uff09\u7535\u7ade\u8d5b\u4e8b\uff1a\u4f4e\u5ef6\u8fdf\u4f20\u8f93\uff0c\u786e\u4fdd\u89c2\u4f17\u4e0d\u9519\u8fc7\u4efb\u4f55\u7cbe\u5f69\u77ac\u95f4\u3002<\/p>\n\n\n\n
5\uff09\u4f01\u4e1a\u534f\u4f5c\uff1a\u63d0\u4f9b\u9ad8\u6548\u7684\u8fdc\u7a0b\u529e\u516c\u89e3\u51b3\u65b9\u6848\uff0c\u5305\u62ec\u89c6\u9891\u4f1a\u8bae\u548c\u5c4f\u5e55\u5171\u4eab\u529f\u80fd\u3002<\/p>\n\n\n\n
6\uff09\u793e\u4ea4\u5a92\u4f53\uff1a\u6574\u5408\u5230\u793e\u4ea4\u5e94\u7528\u4e2d\uff0c\u8ba9\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u5206\u4eab\u5373\u65f6\u52a8\u6001\u3002<\/p>\n\n\n\n
2.3 \u6027\u80fd\u4f18\u52bf<\/p>\n\n\n\n
1\uff09\u57fa\u4e8e\u534f\u7a0b\u6280\u672f\uff0c\u65e0\u5f02\u6b65\u56de\u8c03\u96be\u4ee5\u7ef4\u62a4\u7684\u95ee\u9898\uff0cSRS\u652f\u6301\u4e91\u539f\u751f\u6807\u51c6\uff08Docker\u955c\u50cf\u3001K8s\u90e8\u7f72\u3001\u53ef\u89c2\u6d4b\u6027\u65e5\u5fd7\u548c\u76d1\u63a7\u6307\u6807\u7b49\uff09\uff0c\u63d0\u4f9bOryx\u65e0\u95e8\u69db\u5e94\u7528\uff1b<\/p>\n\n\n\n
2\uff09SRS\u805a\u7126\u4e8e\u5b9e\u65f6\u6d41\u5a92\u4f53\u7f51\u5173\uff0c\u5b9e\u73b0\u5b9e\u65f6\u6d41\u5a92\u4f53\u534f\u8bae\u7684\u63a5\u5165\u548c\u4e92\u76f8\u8f6c\u6362\u4ee5\u53ca\u4e0d\u65ad\u8fed\u4ee3\uff0c\u6bd4\u5982RTMP\u3001HLS\u3001WebRTC\u3001HTTP-FLV\u548cSRT\u7b49\uff1b<\/p>\n\n\n\n
3\uff09SRS\u662f\u9ad8\u6027\u80fd\u6d41\u5a92\u4f53\u670d\u52a1\u5668\uff0c\u662f\u540c\u7c7b\u670d\u52a1\u5668\u76842~3\u500d\u6027\u80fd\uff0c\u63d0\u4f9b\u975e\u5e38\u5b8c\u6574\u7684\u6982\u5ff5\u548c\u4e00\u81f4\u6027\u8bbe\u8ba1\uff0c\u5b9e\u73b0\u9ad8\u6548\u7684\u6d41\u5a92\u4f53\u5e94\u7528\u3002<\/p>\n\n\n\n
3.1 \u7b80\u4ecb<\/p>\n\n\n\n
ZLMediaKit\u662f\u4e00\u4e2a\u57fa\u4e8eC++\u5f00\u53d1\u7684\u5f00\u6e90\u6d41\u5a92\u4f53\u670d\u52a1\u5668\u3002\u5b83\u63d0\u4f9b\u4e86\u9ad8\u6027\u80fd\u7684\u97f3\u89c6\u9891\u5904\u7406\u80fd\u529b\uff0c\u652f\u6301\u5e38\u89c1\u7684\u6d41\u5a92\u4f53\u534f\u8bae\uff0c\u5982RTSP\u3001RTMP\u3001HLS\u548cHTTP-FLV\uff0c\u5e76\u4e14\u5177\u6709\u4f4e\u5ef6\u8fdf\u548c\u9ad8\u5e76\u53d1\u5904\u7406\u80fd\u529b\u3002<\/p>\n\n\n\n
\u5730\u5740\uff1ahttps:\/\/github.com\/ZLMediaKit\/ZLMediaKit<\/a><\/p>\n\n\n\n<\/figure><\/div>\n\n\n\n3.2 \u5e94\u7528\u573a\u666f<\/p>\n\n\n\n1\uff09\u89c6\u9891\u76f4\u64ad\uff1a\u89c6\u9891\u76f4\u64ad\u662fZLMediaKit\u6700\u5e38\u89c1\u7684\u5e94\u7528\u573a\u666f\u4e4b\u4e00\u3002\u65e0\u8bba\u662f\u5927\u578b\u6d3b\u52a8\u7684\u73b0\u573a\u76f4\u64ad\uff0c\u8fd8\u662f\u4e2a\u4eba\u4e3b\u64ad\u7684\u76f4\u64ad\u95f4\uff0cZLMediaKit\u90fd\u80fd\u591f\u63d0\u4f9b\u7a33\u5b9a\u3001\u4f4e\u5ef6\u8fdf\u7684\u6d41\u5a92\u4f53\u4f20\u8f93\u670d\u52a1\u3002<\/p>\n\n\n\n2\uff09\u89c6\u9891\u70b9\u64ad\uff1a\u9664\u4e86\u76f4\u64ad\uff0cZLMediaKit\u5728\u89c6\u9891\u70b9\u64ad\u65b9\u9762\u4e5f\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u901a\u8fc7\u652f\u6301HLS\u7b49\u534f\u8bae\uff0cZLMediaKit\u53ef\u4ee5\u4e3a\u7528\u6237\u63d0\u4f9b\u9ad8\u8d28\u91cf\u7684\u89c6\u9891\u70b9\u64ad\u670d\u52a1\uff0c\u6ee1\u8db3\u7528\u6237\u968f\u65f6\u968f\u5730\u89c2\u770b\u89c6\u9891\u7684\u9700\u6c42\u3002<\/p>\n\n\n\n3\uff09\u5b89\u9632\u76d1\u63a7\uff1a\u5728\u5b89\u9632\u76d1\u63a7\u9886\u57df\uff0cZLMediaKit\u4e5f\u6709\u7740\u91cd\u8981\u7684\u5e94\u7528\u3002\u901a\u8fc7\u652f\u6301RTSP\u534f\u8bae\uff0cZLMediaKit\u53ef\u4ee5\u63a5\u5165\u5404\u79cd\u76d1\u63a7\u8bbe\u5907\uff0c\u5b9e\u73b0\u89c6\u9891\u76d1\u63a7\u7684\u5b9e\u65f6\u4f20\u8f93\u548c\u5f55\u5236\u3002<\/p>\n\n\n\n4\uff09\u6559\u80b2\u57f9\u8bad\uff1a\u5728\u5728\u7ebf\u6559\u80b2\u548c\u57f9\u8bad\u9886\u57df\uff0cZLMediaKit\u53ef\u4ee5\u7528\u4e8e\u5b9e\u65f6\u8bfe\u5802\u7684\u76f4\u64ad\u548c\u5f55\u64ad\uff0c\u5e2e\u52a9\u6559\u5e08\u548c\u5b66\u751f\u5b9e\u73b0\u8fdc\u7a0b\u6559\u5b66\u548c\u4e92\u52a8\u3002<\/p>\n\n\n\n3.3 \u6027\u80fd\u4f18\u52bf<\/p>\n\n\n\n1\uff09\u9ad8\u6027\u80fd\uff1aZLMediaKit\u91c7\u7528C++\u7f16\u5199\uff0c\u5145\u5206\u5229\u7528\u4e86C++\u5728\u6027\u80fd\u548c\u8d44\u6e90\u63a7\u5236\u4e0a\u7684\u4f18\u52bf\u3002\u5176\u5185\u90e8\u5b9e\u73b0\u4e86\u9ad8\u6548\u7684\u7f51\u7edcIO\u6a21\u578b\uff0c\u652f\u6301\u591a\u7ebf\u7a0b\u548c\u5f02\u6b65IO\u64cd\u4f5c\uff0c\u80fd\u591f\u5728\u9ad8\u5e76\u53d1\u73af\u5883\u4e0b\u4fdd\u6301\u7a33\u5b9a\u8fd0\u884c\u3002\u4f7f\u7528\u591a\u8def\u590d\u7528\/\u591a\u7ebf\u7a0b\/\u5f02\u6b65\u7f51\u7edcIO\u6a21\u5f0f\u5f00\u53d1\uff0c\u5e76\u53d1\u6027\u80fd\u4f18\u8d8a\uff0c\u652f\u6301\u6d77\u91cf\u5ba2\u6237\u7aef\u8fde\u63a5\u3002<\/p>\n\n\n\n2\uff09\u4f4e\u5ef6\u8fdf\uff1a\u652f\u6301\u753b\u9762\u79d2\u5f00\u3001\u6781\u4f4e\u5ef6\u65f6(500\u6beb\u79d2\u5185\uff0c\u6700\u4f4e\u53ef\u8fbe100\u6beb\u79d2)\u3002 \u63d0\u4f9b\u5b8c\u5584\u7684\u6807\u51c6C API,\u53ef\u4ee5\u4f5cSDK\u7528\uff0c\u6216\u4f9b\u5176\u4ed6\u8bed\u8a00\u8c03\u7528\u3002<\/p>\n\n\n\n3\uff09\u7075\u6d3b\u6269\u5c55\uff1aZLMediaKit\u5177\u6709\u9ad8\u5ea6\u6a21\u5757\u5316\u7684\u8bbe\u8ba1\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\uff0c\u7075\u6d3b\u5730\u8fdb\u884c\u529f\u80fd\u6269\u5c55\u548c\u5b9a\u5236\u3002\u5176\u4e30\u5bcc\u7684API\u63a5\u53e3\u548c\u63d2\u4ef6\u673a\u5236\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u53ef\u4ee5\u65b9\u4fbf\u5730\u96c6\u6210\u7b2c\u4e09\u65b9\u529f\u80fd\u6216\u8fdb\u884c\u4e8c\u6b21\u5f00\u53d1\u3002<\/p>\n\n\n\n4\uff09\u670d\u52a1\u5b8c\u5584\uff1a\u63d0\u4f9b\u5b8c\u6574\u7684MediaServer\u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u514d\u5f00\u53d1\u76f4\u63a5\u90e8\u7f72\u4e3a\u5546\u7528\u670d\u52a1\u5668\u3002 \u63d0\u4f9b\u5b8c\u5584\u7684restful api\u4ee5\u53caweb hook\uff0c\u652f\u6301\u4e30\u5bcc\u7684\u4e1a\u52a1\u903b\u8f91\u3002 \u6253\u901a\u4e86\u89c6\u9891\u76d1\u63a7\u534f\u8bae\u6808\u4e0e\u76f4\u64ad\u534f\u8bae\u6808\uff0c\u5bf9RTSP\/RTMP\u652f\u6301\u90fd\u5f88\u5b8c\u5584\u3002\u5168\u9762\u652f\u6301H265\/H264\/AAC\/G711\/OPUS\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728\u6570\u5b57\u5316\u6d6a\u6f6e\u6c79\u6d8c\u7684\u4eca\u5929\uff0c\u6d41\u5a92\u4f53\u670d\u52a1\u5668\u4f5c\u4e3a\u8fde\u63a5\u5185\u5bb9\u751f\u4ea7\u8005\u4e0e\u89c2\u4f17\u5ba2\u6237\u7684\u6865\u6881\uff0c\u5176\u91cd\u8981\u6027\u65e5\u76ca\u51f8\u663e\u3002\u4ece\u9ad8\u6e05\u5f71\u89c6 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/posts\/1137"}],"collection":[{"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/comments?post=1137"}],"version-history":[{"count":1,"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/posts\/1137\/revisions"}],"predecessor-version":[{"id":1141,"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/posts\/1137\/revisions\/1141"}],"wp:attachment":[{"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/media?parent=1137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/categories?post=1137"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/tags?post=1137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
3.2 \u5e94\u7528\u573a\u666f<\/p>\n\n\n\n
1\uff09\u89c6\u9891\u76f4\u64ad\uff1a\u89c6\u9891\u76f4\u64ad\u662fZLMediaKit\u6700\u5e38\u89c1\u7684\u5e94\u7528\u573a\u666f\u4e4b\u4e00\u3002\u65e0\u8bba\u662f\u5927\u578b\u6d3b\u52a8\u7684\u73b0\u573a\u76f4\u64ad\uff0c\u8fd8\u662f\u4e2a\u4eba\u4e3b\u64ad\u7684\u76f4\u64ad\u95f4\uff0cZLMediaKit\u90fd\u80fd\u591f\u63d0\u4f9b\u7a33\u5b9a\u3001\u4f4e\u5ef6\u8fdf\u7684\u6d41\u5a92\u4f53\u4f20\u8f93\u670d\u52a1\u3002<\/p>\n\n\n\n
2\uff09\u89c6\u9891\u70b9\u64ad\uff1a\u9664\u4e86\u76f4\u64ad\uff0cZLMediaKit\u5728\u89c6\u9891\u70b9\u64ad\u65b9\u9762\u4e5f\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u901a\u8fc7\u652f\u6301HLS\u7b49\u534f\u8bae\uff0cZLMediaKit\u53ef\u4ee5\u4e3a\u7528\u6237\u63d0\u4f9b\u9ad8\u8d28\u91cf\u7684\u89c6\u9891\u70b9\u64ad\u670d\u52a1\uff0c\u6ee1\u8db3\u7528\u6237\u968f\u65f6\u968f\u5730\u89c2\u770b\u89c6\u9891\u7684\u9700\u6c42\u3002<\/p>\n\n\n\n
3\uff09\u5b89\u9632\u76d1\u63a7\uff1a\u5728\u5b89\u9632\u76d1\u63a7\u9886\u57df\uff0cZLMediaKit\u4e5f\u6709\u7740\u91cd\u8981\u7684\u5e94\u7528\u3002\u901a\u8fc7\u652f\u6301RTSP\u534f\u8bae\uff0cZLMediaKit\u53ef\u4ee5\u63a5\u5165\u5404\u79cd\u76d1\u63a7\u8bbe\u5907\uff0c\u5b9e\u73b0\u89c6\u9891\u76d1\u63a7\u7684\u5b9e\u65f6\u4f20\u8f93\u548c\u5f55\u5236\u3002<\/p>\n\n\n\n
4\uff09\u6559\u80b2\u57f9\u8bad\uff1a\u5728\u5728\u7ebf\u6559\u80b2\u548c\u57f9\u8bad\u9886\u57df\uff0cZLMediaKit\u53ef\u4ee5\u7528\u4e8e\u5b9e\u65f6\u8bfe\u5802\u7684\u76f4\u64ad\u548c\u5f55\u64ad\uff0c\u5e2e\u52a9\u6559\u5e08\u548c\u5b66\u751f\u5b9e\u73b0\u8fdc\u7a0b\u6559\u5b66\u548c\u4e92\u52a8\u3002<\/p>\n\n\n\n
3.3 \u6027\u80fd\u4f18\u52bf<\/p>\n\n\n\n
1\uff09\u9ad8\u6027\u80fd\uff1aZLMediaKit\u91c7\u7528C++\u7f16\u5199\uff0c\u5145\u5206\u5229\u7528\u4e86C++\u5728\u6027\u80fd\u548c\u8d44\u6e90\u63a7\u5236\u4e0a\u7684\u4f18\u52bf\u3002\u5176\u5185\u90e8\u5b9e\u73b0\u4e86\u9ad8\u6548\u7684\u7f51\u7edcIO\u6a21\u578b\uff0c\u652f\u6301\u591a\u7ebf\u7a0b\u548c\u5f02\u6b65IO\u64cd\u4f5c\uff0c\u80fd\u591f\u5728\u9ad8\u5e76\u53d1\u73af\u5883\u4e0b\u4fdd\u6301\u7a33\u5b9a\u8fd0\u884c\u3002\u4f7f\u7528\u591a\u8def\u590d\u7528\/\u591a\u7ebf\u7a0b\/\u5f02\u6b65\u7f51\u7edcIO\u6a21\u5f0f\u5f00\u53d1\uff0c\u5e76\u53d1\u6027\u80fd\u4f18\u8d8a\uff0c\u652f\u6301\u6d77\u91cf\u5ba2\u6237\u7aef\u8fde\u63a5\u3002<\/p>\n\n\n\n
2\uff09\u4f4e\u5ef6\u8fdf\uff1a\u652f\u6301\u753b\u9762\u79d2\u5f00\u3001\u6781\u4f4e\u5ef6\u65f6(500\u6beb\u79d2\u5185\uff0c\u6700\u4f4e\u53ef\u8fbe100\u6beb\u79d2)\u3002 \u63d0\u4f9b\u5b8c\u5584\u7684\u6807\u51c6C API,\u53ef\u4ee5\u4f5cSDK\u7528\uff0c\u6216\u4f9b\u5176\u4ed6\u8bed\u8a00\u8c03\u7528\u3002<\/p>\n\n\n\n
3\uff09\u7075\u6d3b\u6269\u5c55\uff1aZLMediaKit\u5177\u6709\u9ad8\u5ea6\u6a21\u5757\u5316\u7684\u8bbe\u8ba1\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\uff0c\u7075\u6d3b\u5730\u8fdb\u884c\u529f\u80fd\u6269\u5c55\u548c\u5b9a\u5236\u3002\u5176\u4e30\u5bcc\u7684API\u63a5\u53e3\u548c\u63d2\u4ef6\u673a\u5236\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u53ef\u4ee5\u65b9\u4fbf\u5730\u96c6\u6210\u7b2c\u4e09\u65b9\u529f\u80fd\u6216\u8fdb\u884c\u4e8c\u6b21\u5f00\u53d1\u3002<\/p>\n\n\n\n
4\uff09\u670d\u52a1\u5b8c\u5584\uff1a\u63d0\u4f9b\u5b8c\u6574\u7684MediaServer\u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u514d\u5f00\u53d1\u76f4\u63a5\u90e8\u7f72\u4e3a\u5546\u7528\u670d\u52a1\u5668\u3002 \u63d0\u4f9b\u5b8c\u5584\u7684restful api\u4ee5\u53caweb hook\uff0c\u652f\u6301\u4e30\u5bcc\u7684\u4e1a\u52a1\u903b\u8f91\u3002 \u6253\u901a\u4e86\u89c6\u9891\u76d1\u63a7\u534f\u8bae\u6808\u4e0e\u76f4\u64ad\u534f\u8bae\u6808\uff0c\u5bf9RTSP\/RTMP\u652f\u6301\u90fd\u5f88\u5b8c\u5584\u3002\u5168\u9762\u652f\u6301H265\/H264\/AAC\/G711\/OPUS\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u5728\u6570\u5b57\u5316\u6d6a\u6f6e\u6c79\u6d8c\u7684\u4eca\u5929\uff0c\u6d41\u5a92\u4f53\u670d\u52a1\u5668\u4f5c\u4e3a\u8fde\u63a5\u5185\u5bb9\u751f\u4ea7\u8005\u4e0e\u89c2\u4f17\u5ba2\u6237\u7684\u6865\u6881\uff0c\u5176\u91cd\u8981\u6027\u65e5\u76ca\u51f8\u663e\u3002\u4ece\u9ad8\u6e05\u5f71\u89c6 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/posts\/1137"}],"collection":[{"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/comments?post=1137"}],"version-history":[{"count":1,"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/posts\/1137\/revisions"}],"predecessor-version":[{"id":1141,"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/posts\/1137\/revisions\/1141"}],"wp:attachment":[{"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/media?parent=1137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/categories?post=1137"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.yh-vtec.com\/wp-json\/wp\/v2\/tags?post=1137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}